netpenthe Posted December 8, 2018 Share Posted December 8, 2018 Hi I'm new to Babylon and would love to be able to replicate the look (lighting/background) of a model when I load it into the Sandbox here: https://sandbox.babylonjs.com/ This is my attempt: https://dash.makersempire.com/watch2/rhys-battle-strife The model is here if so you can try it in the Sandbox: https://www.dropbox.com/s/rn4yuz3qg5m3rrx/cloud.babylon?dl=0 I've tried adding the env file used in the Sandbox, but it seems to be a city street or something. I saw an old post in here about doing this, but I couldn't follow what they did :/ I'd love to see how it is done in the Playground: https://www.babylonjs-playground.com/#7ZHXP1 Any help would be greatly appreciated. Thanks Jon Quote Link to comment Share on other sites More sharing options...
Guest Posted December 8, 2018 Share Posted December 8, 2018 Hello! all the code you need is here: https://github.com/BabylonJS/Babylon.js/blob/master/sandbox/index.js#L180 Quote Link to comment Share on other sites More sharing options...
netpenthe Posted December 9, 2018 Author Share Posted December 9, 2018 Thanks Deltakosh One thing I noticed - When I load the .babylon file into the scene the colors are flat and don't look very nice. When I load the .glb file of the same model (that I exported using the Babylon GTLF2Export function) the model has some really nice lighting around it. Is this because the .glb file was exported with better lighting? Is it possible to get this on the .babylon file too? (i've tried for a couple of hours with no luck) Appreciate your time! Quote Link to comment Share on other sites More sharing options...
Guest Posted December 9, 2018 Share Posted December 9, 2018 This is because glrf is using PBR which support image based lighting where non PBR scene (like the one exported in babylonjs file format) requires light setup(multiple lights) 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.