Override ScatterSky fog with LevelInfo fog
by Raster Ron · in Torque 3D Beginner · 07/18/2013 (7:09 am) · 5 replies
Hi,
Newbie here. I just noticed that the ScatterSky fog is always applied whenever I restart my level. I would prefer using the LevelInfo fog as it looks much fuller and dense with the atmosphere I'm trying to create for my demo.
Any ideas on how to fix this?
Newbie here. I just noticed that the ScatterSky fog is always applied whenever I restart my level. I would prefer using the LevelInfo fog as it looks much fuller and dense with the atmosphere I'm trying to create for my demo.
Any ideas on how to fix this?
About the author
Artist/Gamer/Developer/Full Stack Web Developer
#2
Harder option - modify ScatterSky to allow disabling of fog.
07/18/2013 (10:02 am)
Easy option - replace ScatterSky with Skybox.Harder option - modify ScatterSky to allow disabling of fog.
#3
Yes, I did notice that. I'm trying to apply the same fog color but I still see a better fogging with LevelInfo than Scattersky. When I save the mission and restart it, the scattersky fog first takes over and when I click the level fog color, this fog now becomes active.
@Richard Ranft
Any ideas where to start with the Harder option?
Also, I've been using a custom build by Adam here:
www.garagegames.com/community/blogs/view/22265
which enables the ScatterSky and Skybox to work at the same time. I'm not sure if this makes any difference, but I need both features on my demo game.
Thank you guys.
07/18/2013 (7:23 pm)
@shenwenqingYes, I did notice that. I'm trying to apply the same fog color but I still see a better fogging with LevelInfo than Scattersky. When I save the mission and restart it, the scattersky fog first takes over and when I click the level fog color, this fog now becomes active.
@Richard Ranft
Any ideas where to start with the Harder option?
Also, I've been using a custom build by Adam here:
www.garagegames.com/community/blogs/view/22265
which enables the ScatterSky and Skybox to work at the same time. I'm not sure if this makes any difference, but I need both features on my demo game.
Thank you guys.
#4
Personally, I tend to use no sky at all. Just throw in a sun and some clouds and nobody will be any wiser. Unless they read this post.
07/19/2013 (3:17 am)
I tried this a long time ago, but unfortunately my memory isn't what it used to be. If I recall though, you can set the scatterSky fog colour to black, a height of 0 and a falloff of 0 and a density of 0. That may allow the levelinfo fog to override that of the scatterSky. I'm not in Torque right now though, so I'm guesstimating here.Personally, I tend to use no sky at all. Just throw in a sun and some clouds and nobody will be any wiser. Unless they read this post.
#5
07/20/2013 (7:55 am)
Thanks Dan, will definitely try this one.
shenwenqing
so just change it to what you want.(here just same to theLevelInfo's fog color)
In the ScatterSky's inspector find the tag:
ScatterSky
there have a:
fogScale
just modify it to what you want.
If you dont want the ScatterSky's feature, you can change the ScatterSky to Sky Box.
Sky Box have no fog.
If you mean when you restart the change disappeared.
Just go to the level file you saved.(\game\levels)
open it ,find the same property change it manually!