Khaled Sabri Posted March 16, 2016 Share Posted March 16, 2016 Hello All, I have issue with a big obj file chrome and firfox will be crashed. i try to investigate more but i have no clu why this issue happen? any one can help me please? Quote Link to comment Share on other sites More sharing options...
Carharttguy Posted March 16, 2016 Share Posted March 16, 2016 What is big? Any possibility to share the obj for testing? Khaled Sabri 1 Quote Link to comment Share on other sites More sharing options...
Khaled Sabri Posted March 16, 2016 Author Share Posted March 16, 2016 Hello Carharttguy, Kindly find the attached obj file,please tell me if you need any else. best regards result.obj Quote Link to comment Share on other sites More sharing options...
RaananW Posted March 17, 2016 Share Posted March 17, 2016 Hi Khaled, a 4.1 MB OBJ file is not a large OBJ file I also wonder why your browser crashes. Want to share the way you load it? Just a BTW - there are missing textures in the obj file, maybe this is the reason? (thou i doubt it) Quote Link to comment Share on other sites More sharing options...
dbawel Posted March 17, 2016 Share Posted March 17, 2016 I took a look at your .obj file, and the problem appears to be the # of individual objects you are trying to parse. There don't appear to be any limits you're currently exceeding, but I've run into this problem before trying to load a large # of simple square buildings into a scene - which usually crashes before they can all load. And if you are able to load a large # of seperate objects, the time to do so is generally beyond acceptable. Unless you need to move each cube individually, then mering these into a single mesh or less meshes to simplify the loading process should/will allow you to load all of the faces in your current .obj file. However, if you merge these cubes into fewer or into a single mesh, you might want to remove any back faces (polygons) which the user won't see. But I doubt you will ever be able to load the # of meshes from a single file into any browser using most any framework. From my experience, thi isn't a limitation of babylon.js, but a processing issue running the various threads to load so many objects. I haven't tried, but I'm certain you would have beeter luck if you seperated these cubes into more than one file - and you can find this threshold by test a specific # of seperate objects such as 20 or 30 in a single file, and then load multiple .obj files each containing a portion of the total amount of objects - in your case cubes. DB 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.