Sign in to follow this  
Xeonzinc

IndexedDB Chrome & Textures

Recommended Posts

1)  I was looking to implement indexedDB for my project but quickly realised chrome doesn't support textures yet, however after a bit of searching I found this:

 

http://updates.html5rocks.com/2014/07/Blob-support-for-IndexedDB-landed-on-Chrome-Dev

 

So support is now in the dev version, and looks to be coming to the stable version soon. Does this need any changes to babylon or will it automatically work when chrome gets the updated? I amusing the dev version but can't tell if it's working or not!

 

 

2) A lot of my textures are brought in at run-time (not from within a scene), such as with the skybox example. Is there anyway to get these retained in indexedDB? If not is this something that can be added to the roadmap?

Share this post


Link to post
Share on other sites

Hi,

Yes, I have written the code in order to become compatible the day Chrome will support it by using a feature detection like approach. I've updated my article to mention it a couple of weeks ago: http://blogs.msdn.com/b/davrous/archive/2013/09/24/using-indexeddb-to-handle-your-3d-webgl-assets-sharing-feedbacks-amp-tips-of-babylon-js.aspx

So, to answer your question, yes it now works with the latest version of Chrome :) You can verify it by using the F12 of Chrome and check the content of the IDB. It should now contain your textures.

You can use IDB by code if not using a manifest. I need to write a little sample to show how.

Bye,

David

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.