joshcamas Posted November 6, 2014 Share Posted November 6, 2014 I'm wondering... would it be possible to make "Real" Fog? This comes in two parts: Fog for CameraMoving/Fancy Fog Basically, I'm wanting to use fog as not only a "decoration" but to smooth the "render distance" of the camera. Think of how Minecraft has fog that makes it so you cant see where the world has stopped rendering. FAR more fancy that's more like an idea for the far feature would be moving fog - this would be used close to the camera, to make the game more realistic. Maybe something could be done with sprites? So yea! Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted November 6, 2014 Share Posted November 6, 2014 I do not get the difference between fog that we already have and real fog:( Quote Link to comment Share on other sites More sharing options...
joshcamas Posted November 6, 2014 Author Share Posted November 6, 2014 From what I'm seeing you cannot have fog when your looking at "nothing" (no meshes) Reason being when you have fog it makes a starry-night skybox look like crap. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted November 6, 2014 Share Posted November 6, 2014 I set clearColor = fogColor Quote Link to comment Share on other sites More sharing options...
macguyvok Posted November 7, 2014 Share Posted November 7, 2014 Josh, is what you're talking about any different from the first screenshot in the Environmental Tutorial? https://github.com/BabylonJS/Babylon.js/wiki/13-Environment Looks like Minecraft's fog to me... Quote Link to comment Share on other sites More sharing options...
joshcamas Posted November 8, 2014 Author Share Posted November 8, 2014 it does... until you remove the skybox. The skybox looks foggy. Quote Link to comment Share on other sites More sharing options...
Dinkelborg Posted November 9, 2014 Share Posted November 9, 2014 What if you would immitate the fog with a particle system, using relatively large particles with some noise on them (or an actual fog texture) and some alpha channels? Quote Link to comment Share on other sites More sharing options...
joshcamas Posted November 9, 2014 Author Share Posted November 9, 2014 Guess that could work, actually! Only problem is that sad glitch with transparent sprites.... D: Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted November 10, 2014 Share Posted November 10, 2014 You should use the same technique I used there: http://www.babylonjs.com/Scenes/Clouds/index.html 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.