Game Development Community

[T3D 1.1 B1 Bug] levelinfo.fogColor not applied when reloading mission - RESOLVED

by JANR · in Torque 3D Professional · 07/29/2010 (11:09 am) · 5 replies

To reproduce in FPS Example
- under theLevelInfo, change fogColor to a new color.
- save the level
- restart the game
The new fogColor is not used even though it has been saved.

#1
07/29/2010 (10:35 pm)
Does your level have a ScatterSky element in it? If so, the ScatterSky 'fogScale' field overrides the LevelInfo 'fogColor' field.
#2
07/29/2010 (11:58 pm)
Well that would explain it, apart from two things.
The fogcolor is applied when set in the levelinfo, so then that shouldn't happen.

And most importantly.. I can find no Scattersky fogScale field in T3D 1.1 B1.
Neither in the C code nor the TS code.
#3
07/30/2010 (3:23 am)
Ah - my bad. That field is only in the upcoming release (beta2). I believe even in 1.1 b1 ScatterSky controls the fog color though (see ScatterSky::_getFogColor).

Quote:The fogcolor is applied when set in the levelinfo, so then that shouldn't happen.

Agree.
#4
08/20/2010 (9:53 pm)
Logged as TQA-841
#5
09/02/2010 (9:34 pm)
I'm going to go ahead and mark this as resolved. I've created a new ticket though to address the documentation of ScatterSky.fogScale to add a note that it overrides LevelInfo.fogColor.