Jump to content

IndexedDB Chrome & Textures


Xeonzinc
 Share

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?

Link to comment
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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...