Game Development Community

!! Fog Problems !!

by Shay Casey · in Torque Game Engine · 04/29/2004 (8:18 pm) · 2 replies

I have read through most of the forums and resources on fog. Is it me or are the fog effects from Tribes 2 still not working in TGE?

I cannot change the depth, the opacity or the color of the fog. Absolutely nothing changes. I can't even turn it all off. I didn't try the SpecialFog flag yet, but what Im reading is that is causes weird display errors on a lot of systems anyway. Less than ideal.

Can someone from GG please put this to rest for me. I REALLY need to turn the fog opacity way down. Some fogging might help for depth effects but I cannot ever see the horizon line. The horizon is ALWAYS 100% filled with fog.

thx

#1
04/29/2004 (9:09 pm)
I'm doing this from memory, so please bear with me:

Turn off the USeRenderBans option (under Sky?) to turn off the distance fog.

Color should be straightforward. It's a 0.0 - 1.0 number in Red Green Blue (fourth is Alpha, but I don't think that's used--just leave at 1). To figure out the appropriate number for each, divide it by 255 and get a decimal. One color for all fog, including the render band distance fog.

Foglayers are pretty straightforward when you see how it works. First number is the distance from the character (like opacity), the second is the starting point, and the third number is the ending point. So, 15 0 60 on the first layer would be a rather dense fog that the player can see for approximately 15 meters (or whatever), and the fog starts at 0 (which is usually far below the terrain) and ends at 60. The next layer can start above there and be less opaque (or more, for whatever reason).

Dunno what SpecialFog is... or FogStorm, for that matter.

-Eric F
#2
04/30/2004 (5:53 am)
Thanks Eric. I can see the horizon and my maginificently crafted skybox in all of its glorious detail. haha.

I guess I never found that toggle because its under Misc, not fog in the sky settings and the naming makes no sense to me. =) SpecialFog is a flag that *supposedly* allows the colors of the fogstorms to show up. ie more than one color of fog. I believe that it was intended to be used with wheather fx or something. I will check it out sometime.

thanks for your help.