ian Posted June 28, 2016 Share Posted June 28, 2016 Does Babylon has any compression of .babylon file and assets? Or it doesn't. And we should enable gzip compression on server settings. Is this the only solution to compress assets and all other resources to server client our babylon.js game? greetings ian Quote Link to comment Share on other sites More sharing options...
ian Posted June 28, 2016 Author Share Posted June 28, 2016 If anybody know how to enable this in apache server or any other it would be fine to see this. (All what we have to configure). Or configuration for another servers. Quote Link to comment Share on other sites More sharing options...
davrous Posted June 28, 2016 Share Posted June 28, 2016 Hello, The best option is to enable gzip server side. We don't really have compression mechanism in babylon.js. gzip is really efficient and more than enough on our json file format. All our scenes on babylonjs.com are compressed using gzip and put on ou CDN (hosted by Azure). Coupled with jpeg or DDS, it can cover a lot of scenarios. Still, we have another option that may interest you, our incremental binary format, from: "The binary format is the evolution of the .incremental format. All meshes data are not store using json but binary format hence a great size optimization and a faster loading time." Bye, David Quote Link to comment Share on other sites More sharing options...
ian Posted June 28, 2016 Author Share Posted June 28, 2016 Can bayblon import/load scene from any other format than .babyon file? ( incremental binary format Don't understand???) I enabled apache server gzip for .babylon. From one scene from 45MB -> 12MB. 1/4 less. Good working. Quote Link to comment Share on other sites More sharing options...
davrous Posted June 28, 2016 Share Posted June 28, 2016 Babylon can also load glTF format (created by the Kronos Group), STL & OBJ file format via specific extensions: http://doc.babylonjs.com/extensions/STL & http://doc.babylonjs.com/extensions/OBJ Incremental is a way to split the scene into several small files which allows incremental loading based on what the camera is currently looking at: http://doc.babylonjs.com/tutorials/Using_the_Incremental_Loading_System 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.