Game Development Community

Sky becoming un-fogged

by Spencer Boomhower · in Artist Corner · 06/28/2006 (11:14 pm) · 4 replies

I'm playing with the visible distance in my level, and I'm having a strange problem: I start with a visibleDistance of 120 and a fogDistance of 80. When I reduce the Visible Distance to any number lower than 110, the fogging that affects the skybox switches off. It's the same effect you get if you either make visibleDistance lower than fogDistance, or if you switch on noRenderBans - the sky becomes crystal clear near the bottom of the skybox. Really odd.

The only weird thing I've got going on in this level is the square size, it's one.

Any thoughts?

#1
06/29/2006 (7:00 am)
Try set fogvolume1 to "10 0 1200" ofcourse depending of how high up you are .
#2
06/29/2006 (5:18 pm)
I tested it out, and the fogging on the sky works at visibleDistance 104.5, then breaks at 104.3.

Does anyone know why that might happen?

@Billy: Good idea, but it didn't help in this case. I kept raise that fogvolume1 altitude, and it still had a hard edge where the skybox met the fog.
#3
06/30/2006 (11:32 am)
Really strange that does not happen to me .
If i lower the fogvolume1 i get what you get , but if i set the above settings it works fine.
Try with the stormfog, type sky.stormfog(1,50) in console.
#4
07/01/2006 (8:09 pm)
@Billy

You should be able to have fog on your sky without setting the fogvolume1 to anything. I usually have fogvolume1 set to 0 0 0. The only reason you should see a hard edge on the bottom of the sky is if: 1) you have the visibleDistance set lower than the fogDistance, 2) you have noRenderBans turned on, or 3) if you're getting the same (what I think is a) bug that I'm seeing.

Personally, I only use fogVolume1 if I want low-lying fog in a valley - it's a layer of volumetric fog.

I'm not too familiar with the stormfog command, but my impression is that it's a command to activate the volumetric fog to roll in (that's what the 1 refers to, fogvolume1) over a given time (that's the 50, time in seconds). So it just turns on the volumetric fog. I don't need that because I can see the volumetric fog just fine without the stormfog command.

Stop me if I'm explaining stuff you already know :). Other people might find it useful though.

Anyway, thanks for the good suggestions, but I still don't see an answer to the question of why my main fog is ceasing to affect the sky at that exact fogDistance.

-Spencer