Hagop Posted September 19, 2016 Share Posted September 19, 2016 Dear all This question might seem naive and is the following. I have a created a scene using createScene = function() and I import hundreds of meshes (.babylon) into the scene (using AJAX PHP MySQL call -- but this is irrelevant). Do I need to create a manifest file for each babylon file that I import to use the IndexedDB feature? Reading the tutorials on the internet, I came to the conclusion that there is one manifest file for an imported scene using BABYLON.SceneLoader.Load , which includes all meshes and hence multiple calls to BABYLON.SceneLoader.ImportMesh is not taken into consideration. Quote Link to comment Share on other sites More sharing options...
RaananW Posted September 19, 2016 Share Posted September 19, 2016 manifest file is optional. you don't have to add it at all. there will be an error when the engine tries downloading it, but it won't hurt the user's experience. In general, you need a manifest per .babylon file. Quote Link to comment Share on other sites More sharing options...
Hagop Posted September 19, 2016 Author Share Posted September 19, 2016 isn't the manifest file mandatory to utilize indexedDB? isn't there a way to create one manifest file and type in all babylon files to be imported? Quote Link to comment Share on other sites More sharing options...
RaananW Posted September 19, 2016 Share Posted September 19, 2016 * yes * not at the moment (or better - not as far as I know) Quote Link to comment Share on other sites More sharing options...
Hagop Posted September 19, 2016 Author Share Posted September 19, 2016 So please clarify, isn't there a contradiction since you stated manifest file is optional. you don't have to add it at all. there will be an error when the engine tries downloading it Quote Link to comment Share on other sites More sharing options...
RaananW Posted September 19, 2016 Share Posted September 19, 2016 not , it is not contradicting. You dont have to use indexeddb, you dont have to offer offline support. if you dont need that, you dont need a manifest at all. Quote Link to comment Share on other sites More sharing options...
Hagop Posted September 19, 2016 Author Share Posted September 19, 2016 I understand, thanks, but is indexedDB only for offline use? Wouldn't it give a heavily loaded web site a performance boost? Raanan, I sent you a personal tweet. Please reply Quote Link to comment Share on other sites More sharing options...
RaananW Posted September 19, 2016 Share Posted September 19, 2016 if you would check you'd see I already answered and no, indexeddb won't give you any boost. it will only store assets and allow you to use them when the user is offline. Quote Link to comment Share on other sites More sharing options...
davrous Posted September 19, 2016 Share Posted September 19, 2016 Hi! I've written the IDB layer mainly for offline usage indeed. I was also expecting a bit of performance boost thinking that loading from the local DB would be faster than going through the local cache but I've never seen that occuring. Caching the resources is manifest based and can be disactivated via: engine.enableOfflineSupport = false; to prevent having 404. I could imagine adding a flag like "forceOfflineSupport" to download all assets and store them in IDB without .manifest files but how would you manage files versions then? Bye, David 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.