views:

55

answers:

2

I', using GL_FOG, but it really only fogs up my geometry, I would like a way for the fog to feel like it encumbers an area, not just fog up my geometry, sort of like a box of fog...

Is there a way to do this? Or possibly another way to give a smooth draw distance transition?

Thanks

+1  A: 

The built-in fog is pretty simple, and you only get pretty simplistic control over it. If you don't like how it works, chances are you're going to have to do the job on your own in a fragment shader.

Jerry Coffin
+1  A: 

If you have a skybox/sphere you can apply the fog to that, the only downside is that it will be there if you look straight up as well.

Your best bet is to dive into shaders as Jerry mentioned. Don't worry though they aren't that bad to work with. If you apply the fog to the scene based on distance AND vertical position in space you can create a nice fog effect without taking over your entire skyshape. You can also use a similar method to give yourself some clouds n' the like if you're feeling bold.

Hope this helps!

Lunin