Fog

I’m wondering how to make fog or mist in the GE. I run 2.41. Sorry I didn’t write more, but it isn’t a complicated question :slight_smile: But my game is fairly high poly, so I’d love for it not to kill my framerate. If it’s as simple as putting an alpha mapped plane in front of the camera, then, well, I’ll feel pretty stupid. But thanks in advance.

here one of these is a demo
9 Tech demos for download and study…

damn, that’ll take me forever to download, thanks though.

Just enable mist in the world buttons then play around with the distance setting to get the affect you want. The colour of the mist will be that of the horizon colour.

wait a min, the fog uses particles from what i read. dude, particles don’t work in the GE i don’t think…maybe im wrong about both things.

Well I know for sure that fog works in the game engine (just tried it), the best way to tell how far you can see is to turn “Mist” on the camera your looking through, although nothing will show up until you turn the Mist on in the world buttons with DI (depth) turn up a bit.

I hope I helped

Hi, those ‘demos’ belong to me and I am sorry if what I wrote caused any confusion:

The easiest way to achieve fog with almost no performance impact is by enabling FOG in the world panel. But in the stone henge demo, i also used alpha textured ‘halos’ that move across the screen to create a subtle sand storm effect.

oh cool… not like im gonna use fog, but yeah. cool.

the fog makes the vertexed after a certin distance transpatent so the background color shows thruogh

thats why if you subdivide you mesh the fog looks way better

It’s not QUITE right, fog sets the vertex color to the "background’ color specified in the ‘world’ panel. It doesn’t alter the alpha value of the pixels. :wink:

close enough

Can you apply a texture with the “Fog” setting in the world buttons?

you mean use a texture as fog? No, not in teh game engine.