Game Development Community

Fog Issues

by Howard Dortch · in Torque 3D Professional · 04/29/2013 (3:49 pm) · 7 replies

Why is the fog reversed? I want fog at a distance and clear near me. I set the fog density and the clear space and all I get is fog on my character and clear at a distance...
Scattersky using level info to set fogs...

#1
04/29/2013 (4:04 pm)
ScatterSky has always been funny about fog - there is a resource that provides a shader which fixes the fog with ScatterSky, but I don't recall where it is. I'll try to look it up later today.
#2
04/29/2013 (5:00 pm)
Isn't fog a standard part of Direct X why do we need a shader?
#3
04/29/2013 (7:39 pm)
Why? Because DirectX is now rendering in software - everything is a shader. That's what happened when they eliminated the old fixed-function pipeline and went to programmable GPUs....

As for how - Here's the resource. I haven't tested with any version of T3D since 1.2, but it should work.
#4
04/29/2013 (7:40 pm)
NOTE: This is a known issue and the community resource will be STOCK in the upcoming T3D 3.0.... in fact I JUST did the pull request about an hour ago.

Ron
#5
04/29/2013 (8:01 pm)
Rendering in software? I think or I hope Torque uses HAL mode. As for native fogs MSDN link = http://msdn.microsoft.com/en-us/library/windows/desktop/bb173398(v=vs.85).aspx

I tried that shader and frame rate falls off fast. Thanks....

@Ron any ETA on 3.0 ? I have some classes to teach and I would like to use Torque.
#6
04/29/2013 (10:14 pm)
"Native" doesn't mean what you think it means, I think. There is a reason that DirectX 9 started requiring your hardware to support minimum pixel and vertex shader versions - because the "native" functionality is constructed using stock shaders.

You're welcome.
#7
04/29/2013 (10:23 pm)
Howard,

We started QA on 3.0 this week. With luck and NO issues, we are looking at sometime Monday 06 May for release. If we run into a problem with testing and QA it will take longer but, look for it next week! We do our best but, we don't always catch everything ;-)

Ron