Game Development Community

No Fog

by Toby W. Allen · in Torque Game Engine · 04/26/2005 (12:46 am) · 20 replies

Heya,
I was curious to know if anyone had a way of removing the fog, or really extending the visibility. I can't see to get anything right to pushes the visibility far, so you see more.

Toby.

#1
04/26/2005 (3:23 am)
In the world editor.
Under sky
Visibility and fog.
Just increase the numbers in the varibles.
#2
04/26/2005 (7:32 am)
Umm I tired that, but it just crashs Torque and, if you have the fog as a full color, then you it doesn't work that well.

Toby.
#3
04/26/2005 (7:55 am)
There is a way to remove fog completely in the sky variables... i did it for my game. Just look under the rollouts (F3) it might be a renderFog checkbox

Wait... i think its render skybands...
#4
04/26/2005 (10:09 am)
Note that you can't make Torque render "infinitely" far out. That's beyond the capabilities of even the hardware itself, without trickery. Fog is just a convenient way to hide the edge of the world...
#5
04/26/2005 (11:12 am)
I thought that was obvious... The edge of my world is water, so I just created a skybox that made the water appear to extend to the horizon
#6
04/26/2005 (11:44 am)
Ben,
That's not what I want.. but i want to be able to see a large part of the map, which for the moment as stupid as it sounds I can't.

I change the distance to something like 8000 and it keeps crashing.

Toby.
#7
04/26/2005 (11:47 am)
8000 is a LOT of polys... Why do you need it so big??? Mine is set to 3725 and it is starting to slow down quite a bit...
#8
04/26/2005 (11:56 am)
8000 is a bit much... righty I've settled for 1500-2000 which works in most cases.

Forget this post now, it's me having a blond moment! Cheers for the help :D

Toby.
#9
04/26/2005 (11:57 am)
I can see almost all the way to the other side of hte default sized terrain with no fog and a distance of 4000... If its necessary for you to have so much ditance try something in the 3000 range.. Just make sure you have really good LOD set up.
#10
04/27/2005 (11:31 am)
Just to be clear...

Toby is talking about DISTANCE IN METERS.

Chris is talking about NUMBER OF POLYGONS.

With the default terrain properties, 2000 meters is a pretty reasonable upper limit for visibility.

For models, much higher polycount limits are in effect.
#11
04/27/2005 (11:41 am)
I think the max mission area size is 2048 with the standard settings for the terrain, etc. So, I set the numbers to something like 1024 or 2048 for both fogDistance and visibleDistance and it seems to work fine for me. It helps a lot when trying to use the terrain editor to actually edit your terrain and see what's going on. Note: the terrain will be repeated "off into the distance" so once you get close to the edge of the "world" it can be difficult to tell unless your in a terrain-edit mode (and can see the red mission area box).
#12
04/27/2005 (11:44 am)
I dont think youre right about that...

I implemented the resource that stops the terrain from showing up when it is repeated... I am at one side of my map and can't see the other side unless I up my viewDistance to somewhere in the 4000 range.. I also stretched my mission box to be just slightly less then the terrain size.

I haven't changed my terrain size (that I can recall, Im pretty sure anyways)
#13
04/27/2005 (12:40 pm)
Which part don't you think is right?
#14
04/27/2005 (12:44 pm)
Oh.. sorry... the max mission size of 2048... My terrain is at least 4000, and the mission size is about the same size...
#15
04/27/2005 (12:59 pm)
Oh... okay. I was talking about the default terrain size (like when you create a new mission in the World Editor), with the default settings on the terrain object. I think that gives you a green box that extends from -1024,-1024 to 1024,1024. This means that a setting of 2048 for visibleDistance and fogDistance should allow you to just enough range to see across the entire map...
#16
04/27/2005 (1:00 pm)
Oh... i used tutorial.base, and it must have used a larger terrain.
#17
04/27/2005 (1:11 pm)
I'm not sure why it should be. If you press F11 to go into the World Editor and then press F5 to go to the Mission Area Editor, what coordinates are displayed in the mini-map in the upper right corner?
#18
04/27/2005 (1:14 pm)
I just tried it here... looks like if I expand the red box in the Mission Area Editor, I get 2048x2048 max size.

Did you change any of the settings manually in your mission file for tutorial.base by chance?
#19
04/27/2005 (1:26 pm)
The mission area is just a convenience that marks an area for you. It's got no relationship to any real limits in the engine, nor to the position of the terrain.
#20
04/27/2005 (1:40 pm)
Right... but the maximum mission area ("green box" area) is the area in which you can edit the terrain... outside of that area it's just repeating copies of the terrain that's inside the "green box" area... right? This is just straight TGE (i.e. no TSE, etc.).