NasimiAsl Posted August 4, 2015 Share Posted August 4, 2015 How Can Enable IndexedDb For Babylonjs Scene . Quote Link to comment Share on other sites More sharing options...
RaananW Posted August 4, 2015 Share Posted August 4, 2015 I have created a prototype for an indexeddb backend for babylon js, which is located here - https://github.com/BabylonJSX/IndexedDB-BackendI haven't updated it lately, but it should still work with babylon 2.1. Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted August 4, 2015 Author Share Posted August 4, 2015 Dear RaananW I want Make a class for this and cache the texture(image ) and shader material instance and createdMesh to Indexed Db so in Babylonjs 2.1 do like that? Quote Link to comment Share on other sites More sharing options...
RaananW Posted August 4, 2015 Share Posted August 4, 2015 Babylon 2.1 does use indexedDB to cache textures and other assets, it is done automatically when a scene's manifest has the offline mode set to true. the code is here - https://github.com/BabylonJS/Babylon.js/blob/master/src/Tools/babylon.database.tsTo index created meshes, you will need to either implement it yourself or use the plugin I created, which caches meshes. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.