DezOnlyOne Posted November 6, 2015 Share Posted November 6, 2015 Is there a limit to the size of a babylon file? I am in the 270MB range and it appears that the file is not loading. It is really large because there is a great deal of animation in the file. Have I reached the limit? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted November 6, 2015 Share Posted November 6, 2015 There is no official limit Quote Link to comment Share on other sites More sharing options...
davrous Posted November 6, 2015 Share Posted November 6, 2015 But we had issues with files larger than 90 MB due to browsers' limits on XHR requests. In this case, turn the scene into incremental.David Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted November 6, 2015 Share Posted November 6, 2015 Also, you can break out with multiple .babylons, especially for non-3ds sources. You might create your scene yourself, so then you can use Append() on multiple .babylons, instead of use Load() . You might have a .babylon with camera / lights & base structures like floors & walls. If you wish to "decorate" a room with all elements of another .babylon. If you have a .babylon where you only want meshes, or specific meshes, then use importMesh(). All of these are async. You have to decide when to start your RenderLoop and put in checking the callbacks (or even start it before), but not that tough. Having one massive .babylon must be a major pain to build. I, myself, do not use .babylons or incrementals, but in-line, synchronous Javascript. Might also look into the AssetManager. I do not know what that is though. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted November 6, 2015 Share Posted November 6, 2015 And as David mentioned, just turn your .babylon files into multiple smaller files with https://github.com/BabylonJS/Babylon.js/tree/master/Tools/MakeIncremental Quote Link to comment Share on other sites More sharing options...
DezOnlyOne Posted November 9, 2015 Author Share Posted November 9, 2015 Nevermind. I got it built, but I am getting Fatal error encountered:Exception of type 'System.OutOfMemoryException' was thrown. I may need to just export the file in separate pieces. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted November 9, 2015 Share Posted November 9, 2015 If you are using 3dsmax you can check the "generate binary format" 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.