enver90 Posted October 19, 2016 Share Posted October 19, 2016 Hello, I am trying to recreate a faded / foggy scene such as the attached fade image. My current setup is here: http://babylonjs-playground.com/#1UFGZH#89 As you can see from the playground, my grid is not faded as the distance increases. Does anyone know a good way of approaching this? Thanks for the help. Quote Link to comment Share on other sites More sharing options...
adam Posted October 19, 2016 Share Posted October 19, 2016 https://doc.babylonjs.com/tutorials/Environment edit: I tried to get that to work in your scene, but failed. Quote Link to comment Share on other sites More sharing options...
enver90 Posted October 19, 2016 Author Share Posted October 19, 2016 7 minutes ago, adam said: https://doc.babylonjs.com/tutorials/Environment edit: I tried to get that to work in your scene, but failed. Same problem I had, I tried fog and it doesn't give me the effect seen in the screenshot. Quote Link to comment Share on other sites More sharing options...
max123 Posted October 19, 2016 Share Posted October 19, 2016 Is this not what you're after? Quote Link to comment Share on other sites More sharing options...
jerome Posted October 19, 2016 Share Posted October 19, 2016 maybe the legacy demo example ? http://playground.babylonjs.com/?13 Quote Link to comment Share on other sites More sharing options...
enver90 Posted October 19, 2016 Author Share Posted October 19, 2016 the problem seems to be with ground / gridmaterial - the fog does nothing when applied to it. Quote Link to comment Share on other sites More sharing options...
enver90 Posted October 19, 2016 Author Share Posted October 19, 2016 Seems like GridMaterial is the culprit, see this example: http://playground.babylonjs.com/#OFOBH#1 The grid material doesn't seem to respect the fog, anyone know how to work around that? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted October 19, 2016 Share Posted October 19, 2016 The gridMaterial does not currently support fog but it is really easy to add Pinging (again him!) @Sebavan to see if he has some cycle to do it. I'll do it else Quote Link to comment Share on other sites More sharing options...
enver90 Posted October 19, 2016 Author Share Posted October 19, 2016 29 minutes ago, Deltakosh said: The gridMaterial does not currently support fog but it is really easy to add Pinging (again him!) @Sebavan to see if he has some cycle to do it. I'll do it else That would be great! Quote Link to comment Share on other sites More sharing options...
Sebavan Posted October 19, 2016 Share Posted October 19, 2016 Another one for this week end and yes it should be ok to add :-) GameMonetize and NasimiAsl 2 Quote Link to comment Share on other sites More sharing options...
Sebavan Posted October 20, 2016 Share Posted October 20, 2016 PR is in: https://github.com/BabylonJS/Babylon.js/pull/1443 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.