GameMonetize Posted November 28, 2016 Share Posted November 28, 2016 Hello team! I'm glad to announce the availability of Version Builder: http://www.babylonjs.com/versionBuilder/ Now that we have a lot of satellite services, you can use this page to build a custom merged version of babylon.js! Vousk-prod., jerome, davrous and 14 others 17 Quote Link to comment Share on other sites More sharing options...
Vousk-prod. Posted November 28, 2016 Share Posted November 28, 2016 Nice! Quote Link to comment Share on other sites More sharing options...
gaelbeltran Posted November 28, 2016 Share Posted November 28, 2016 Thank you! Really useful Quote Link to comment Share on other sites More sharing options...
jerome Posted November 28, 2016 Share Posted November 28, 2016 yyyeeeaaaaaahhhhhh ! I would call it BJS Pizza ! Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted November 29, 2016 Author Share Posted November 29, 2016 lol Quote Link to comment Share on other sites More sharing options...
Dad72 Posted November 29, 2016 Share Posted November 29, 2016 Woaw, that's cool. On the other hand is it normal that it lacks things in material? Like the water and terrain. Otherwise it's cool. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted November 29, 2016 Author Share Posted November 29, 2016 Nope pinging @Meulta Quote Link to comment Share on other sites More sharing options...
NinjaMark Posted November 29, 2016 Share Posted November 29, 2016 Few additions that would be nice to see in the future: Optional AudioEngine, for projects that don't require audio. Remove other post processes that aren't needed (blackandwhite, fxaa etc) Choose which camera(s) to include, so related dependencies such as gamepad input and VR don't need to be included. Option to remove debug (for prod builds) This is a great to see as a start though : ) Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted November 29, 2016 Author Share Posted November 29, 2016 Not everything is a module yet (And this is a desired outcomee, we want bjs to be simple to use out of the box) @Dad72: Actually they are here. You can scroll down the content of the boxes Quote Link to comment Share on other sites More sharing options...
Meulta Posted November 29, 2016 Share Posted November 29, 2016 @Dad72 Do you mean that it lacks them in the choice list or in the result file? In the choice list you can scroll in each category (it is not easy to see though :p) Quote Link to comment Share on other sites More sharing options...
Dad72 Posted November 29, 2016 Share Posted November 29, 2016 @Meulta and @Deltakosh Yes, I was talking about the list of choices. I did not see that we could scroll. Can be an arrow could help to indicate it or something else. Thanks for this builder. Quote Link to comment Share on other sites More sharing options...
Temechon Posted November 29, 2016 Share Posted November 29, 2016 I'm on it tonight ! Quote Link to comment Share on other sites More sharing options...
Pierre Glibert Posted November 29, 2016 Share Posted November 29, 2016 Nice work ! It's a really good idea to make a lighter version. Quote Link to comment Share on other sites More sharing options...
Nabroski Posted November 29, 2016 Share Posted November 29, 2016 YES! Quote Link to comment Share on other sites More sharing options...
Gugis Posted November 29, 2016 Share Posted November 29, 2016 Is it possible to build Babylon without rendering engine? I mean just physics and other functions. That would be handy for multiplayer games to share same API for server and client. ozRocker 1 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted November 30, 2016 Author Share Posted November 30, 2016 Not at that time. The engine is the core of babylon.js Quote Link to comment Share on other sites More sharing options...
cricket Posted December 2, 2016 Share Posted December 2, 2016 On 11/29/2016 at 10:44 PM, Deltakosh said: Not everything is a module yet (And this is a desired outcomee, we want bjs to be simple to use out of the box) @Dad72: Actually they are here. You can scroll down the content of the boxes @Deltakosh Is it possible to use gulp to remove modules that are not required (remove audio, remove certain cameras) via a custom build? If yes, how would one go about doing so? If I am not mistaken, this link regarding instructions before submitting PR (taken from github README), used to recommend adding script tags for all .js files produced by gulp. Thus indicating that Babylon can work by including multiple smaller files and not just one large file. This multiple .js file build suggests that one can create a dependency tree for the .ts/.js files and subsequently remove extraneous branches in a custom build via gulp. Thoughts? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted December 2, 2016 Author Share Posted December 2, 2016 I agree. But this need to be tested. But I like the idea. Quick way to do it for now: just change this file and remove the unwanted files: https://github.com/BabylonJS/Babylon.js/blob/master/Tools/Gulp/config.json#L17 Here is what we can do: - Add a new custom.config.json where eveyone can decide what should be included - Do intense testing to ensure that engine works well when so module are not included (Like if audio not referenced it should not crash :)) Quote Link to comment Share on other sites More sharing options...
cricket Posted December 2, 2016 Share Posted December 2, 2016 @Deltakosh I can try editing the gulp config file and report results. However, it will be useful to have a dependency graph of .ts/.js files/modules. Do you have such a document? What is the best way to preliminarily test this? Test suite? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted December 2, 2016 Author Share Posted December 2, 2016 So I did a first try here: https://github.com/BabylonJS/Babylon.js/blob/master/Tools/Gulp/custom.config.json Just run "gulp build-custom" and it will generate a babylon.custom.js file in the /dist/preview release folder There is no tests suite per se. For every update/version I'm running the new version with all demos here: https://github.com/BabylonJS/Website Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted December 2, 2016 Author Share Posted December 2, 2016 I would suggest to work module per module. For instance, remove all audio files and see if this still works. If not, we need to add more checks in bjs code. Quote Link to comment Share on other sites More sharing options...
cricket Posted December 3, 2016 Share Posted December 3, 2016 @Deltakosh Since you have authored multiple javascript libraries, would you know if there is a way to determine what parts of code have not been utilised/interpreted/run/executed until a given point of time in client side execution? Something that can start of with all lines as unused and marking them as used as when lines are executed/run. For example. consider an application that does not require PBR material for the first 5 seconds of execution, this technique should be able to inform the dev that lines related to PBR material have not been used until 5 seconds. I do not mean an unimported code predictor like rollup / webpack work. Will a test coverage tool help? I am motivated to try lazy loading of modules/scripts since reducing babylon.js size was not very successful. (Reduced babylon.js from 1.3MB to 1001KB and babylon.max.js from 2.8MB to 2.3MB. Note: Very little testing. Worked with my use case). I am not looking for definitive answers. just a sanity check on the thought process and advice. Thanks for the quick reply and also putting together a command to for custom builds. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted December 5, 2016 Author Share Posted December 5, 2016 This is tough with JS as it is not a strongly typed nor compiled language Quote Link to comment Share on other sites More sharing options...
Nabroski Posted December 6, 2016 Share Posted December 6, 2016 @Gugis a long time ago, a guy log in, and post, he made a hack, babylonjs headless.this was his only post here. Quote Link to comment Share on other sites More sharing options...
chicagobob123 Posted February 21, 2018 Share Posted February 21, 2018 This thing is AWESOME 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.