Game Development Community

Fog and Haze begone!

by Anders Jacobsen · in Torque Game Engine · 11/24/2004 (6:32 am) · 13 replies

I removed the terrain in my "game" but now there's
a lot of fog or haze where the terrain used to be.
I want it gone too. Where, what, how?

All and any help appreciated :)

#1
11/24/2004 (6:45 am)
Go into the Editor(F11) and click on the sky object. In the properties, disable all the fog settings, and that should be it...
#2
11/24/2004 (7:30 am)
Had to turn on noRenderBans, but there's still a small strip of fog in the horizon. Got everything disabled tho, so this strikes me as quite odd..
Any ideas?
#3
11/26/2004 (3:38 pm)
No one has any ideas? I can post a link to a screen shot if required.
#4
11/26/2004 (3:42 pm)
I got rid of mine by setting the distance really far. I don't remember how far it was before Torque crashed though
#5
11/26/2004 (3:56 pm)
I think I set my view distance to around 2000 and my fog distance to 1900 or so. There is a limit on how close those have can be to each other and how far you can go with your distance but I'm still trial and error. I know you can't go more then 6000.
#6
11/26/2004 (4:04 pm)
Does your skybox cover the entire surrounding?
#7
11/26/2004 (4:07 pm)
Actually. Im doing it with flattened terrain. I want to remove the terrain but I can't remember the line to remove
#8
11/26/2004 (4:15 pm)
@ Cameron
Yes and No. Im pretty sure the skybox is smoke and mirrors, as it were. yes, it APPEARS to extend as far as you can see, but in actuality its just a small box that is centered around your vision. Everything else in the engine is merely rendered in front of it.

@Charlie
To remove the terrain, just delete it in the mission editor or open your .mis file and delete the Terrain instance.
#9
11/26/2004 (4:59 pm)
Make sure the scene is relit. Delete any .ml files (same place as .mis) or press Alt-L in the editor.
#10
11/27/2004 (2:59 pm)
@Cameron, yes my skybox covers the entire thing.

There is a fog or clouds in the horizon.
They don't seem to bleed onto the bottom texture tho.
The line of fog is thin and only covers the horizon.

This is the residue left after I removed everything that had to do with fogs.
Pressing Alt-L in the editor didn't help. There doesn't seem to be any
.ml files with the mis file.
#11
11/27/2004 (4:08 pm)
I did set my fog and visible distance to both 2000 and that crashed Torque for me.

Charlie, is the fog not used anywhere in your application? If not, then just rip out the fog rendering part in RenderWorld();
#12
11/27/2004 (4:11 pm)
Which code has RenderWorld() in it?
#13
11/27/2004 (5:05 pm)
Now I feel really stupid. One of the textures used on the skybox caused the "fog" effect. But in any case, which code has the RenderWorld() in it?
(Just curious)