Visam Posted January 15, 2017 Share Posted January 15, 2017 Hi it is not a problem to load model files up to 200 MB. But if I need to load 500 MB, 1GB or even more, of course I have a problem: "google chrome ran out of memory while trying to display this web page". I need to load whole model of a vessel or even oil platform. Any ideas? May be there is an "optimization" of babylon files? May be encreasing RAM help me? Quote Link to comment Share on other sites More sharing options...
Visam Posted January 15, 2017 Author Share Posted January 15, 2017 15 minutes ago, iTekVR said: I have a problem: "google chrome ran out of memory while trying to display this web page" but some time I can see another message for the same model in the "debug" window: "importMesh of undefined from undefined version" Quote Link to comment Share on other sites More sharing options...
Temechon Posted January 16, 2017 Share Posted January 16, 2017 Hello, Keep in mind webgl has a limited context and memory... I'm not sure you can load a model of 500Mb all at once without doing any optimization. Visam 1 Quote Link to comment Share on other sites More sharing options...
davrous Posted January 16, 2017 Share Posted January 16, 2017 You will have problem before hitting memory issues trying to load such big models. Indeed, it will fail most of the time at the network level. We had several issues in the past trying to do XHR requests higher than 100 MB and it's a browser limitation we can't override. That's why we've been working on the incremental format also which helps you to move the problem later on. Our Espilit demo: https://github.com/BabylonJS/Website/tree/master/Scenes/Espilit / http://www.babylonjs.com/demos/espilit uses incremental + binary format. You should have a look to check if the incremental mode could help you: http://doc.babylonjs.com/tutorials/Using_the_Incremental_Loading_System Quote Link to comment Share on other sites More sharing options...
Visam Posted January 16, 2017 Author Share Posted January 16, 2017 57 minutes ago, davrous said: You will have problem before hitting memory issues trying to load such big models. Indeed, it will fail most of the time at the network level. We had several issues in the past trying to do XHR requests higher than 100 MB and it's a browser limitation we can't override. That's why we've been working on the incremental format also which helps you to move the problem later on. Our Espilit demo: https://github.com/BabylonJS/Website/tree/master/Scenes/Espilit / http://www.babylonjs.com/demos/espilit uses incremental + binary format. You should have a look to check if the incremental mode could help you: http://doc.babylonjs.com/tutorials/Using_the_Incremental_Loading_System Thank you so much! Quote Link to comment Share on other sites More sharing options...
Visam Posted January 23, 2017 Author Share Posted January 23, 2017 On 16/01/2017 at 2:35 PM, davrous said: You will have problem before hitting memory issues trying to load such big models. Indeed, it will fail most of the time at the network level. We had several issues in the past trying to do XHR requests higher than 100 MB and it's a browser limitation we can't override. That's why we've been working on the incremental format also which helps you to move the problem later on. Our Espilit demo: https://github.com/BabylonJS/Website/tree/master/Scenes/Espilit / http://www.babylonjs.com/demos/espilit uses incremental + binary format. You should have a look to check if the incremental mode could help you: http://doc.babylonjs.com/tutorials/Using_the_Incremental_Loading_System @davrous Quote Link to comment Share on other sites More sharing options...
georage Posted January 23, 2017 Share Posted January 23, 2017 On a semi-related topic, how would one go about delaying javascript functions. I can't find anything like sleep and all the stuff I googled doesn't seem to delay the function at all. I was trying "async await" and even timeout wrappers but it doesn't seem to block anything. Or perhaps this is too off-topic. I have a JS script populating a DB and was wanting to throttle it a bit. 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.