Rodrix3 Posted April 8, 2018 Share Posted April 8, 2018 I love how my model looks in Babylon Sandbox: http://sandbox.babylonjs.com/ I would like to replicate the same code, with exactly the same setting, same environment, and rendering pipeline. Could anyone replicate it into a Babylon Playground? Thank you so much. Quote Link to comment Share on other sites More sharing options...
waverider Posted April 9, 2018 Share Posted April 9, 2018 Yippee!! I just reproduced the source code right here: https://jsfiddle.net/ozy2fv0h/3/embedded/result/ Quote Link to comment Share on other sites More sharing options...
Rodrix3 Posted April 9, 2018 Author Share Posted April 9, 2018 3 hours ago, waverider said: Yippee!! I just reproduced the source code right here: https://jsfiddle.net/ozy2fv0h/3/embedded/result/ @waverider, very nice! Thanks so much. However, this is not what I was asking. I want to replicate the Sandbox environment with plain Babylon code. No drag and drop enabled, no user interface, no "Sandbox" user interface related code. I want to know how to create a scene with that default lightbox, that default lighting, and those render settings. Anyone have any idea? Thanks so much Quote Link to comment Share on other sites More sharing options...
Guest Posted April 9, 2018 Share Posted April 9, 2018 So for skybox: https://github.com/BabylonJS/Babylon.js/blob/master/sandbox/index.js#L138 Camera: https://github.com/BabylonJS/Babylon.js/blob/master/sandbox/index.js#L102 Quote Link to comment Share on other sites More sharing options...
Rodrix3 Posted April 13, 2018 Author Share Posted April 13, 2018 Thanks so much @Deltakosh! Do you happen to know if the Sandbox has the default or standard pipeline enabled, or antialising? I don't see anything of that in the code you referenced.. but just to make sure! Thanks so much! Quote Link to comment Share on other sites More sharing options...
Vikas Kundu Posted April 13, 2018 Share Posted April 13, 2018 On 09/04/2018 at 10:13 PM, Deltakosh said: So for skybox: https://github.com/BabylonJS/Babylon.js/blob/master/sandbox/index.js#L138 Camera: https://github.com/BabylonJS/Babylon.js/blob/master/sandbox/index.js#L102 Deltakosh, if you don't mind can you replicate for me as well or better tell me the process or share any reference so I can do it myself. Quote Link to comment Share on other sites More sharing options...
Guest Posted April 13, 2018 Share Posted April 13, 2018 @Rodrix3: the sandbox has no postprocess enabled. Only canvas AA @Vikas Kundu: Not sure to understand what you want me to replicate Quote Link to comment Share on other sites More sharing options...
Rodrix3 Posted April 22, 2018 Author Share Posted April 22, 2018 Thanks @Deltakosh! How about the beautiful sky with the sun skybox? How is that done? I am using scene.createDefaultEnvironment(); Thanks! Quote Link to comment Share on other sites More sharing options...
Guest Posted April 25, 2018 Share Posted April 25, 2018 We are doing it like this: https://github.com/BabylonJS/Babylon.js/blob/master/sandbox/index.js#L178 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.