Game Development Community

TSStatic Bug

by Matt Huston · in Torque Game Engine Advanced · 08/14/2007 (10:50 am) · 0 replies

My TSStatic's aren't rendering properly.

It is related to my Sky object and their visibleDistance and forDistance.

If I set the Sky objects variables to the following: my TSStatic is rendered correctly, with texture, however the terrain being that its visible and fog distance are the same, is drawn as the player moves across it (something that is hidden when you have the fog at a lower value.
visibleDistance = "500";
         fogDistance = "500";

However when I set the variables to the following: my TSStatics render gray until I am only a couple meters next to them. The terrain renders fine here, as it is drawn behind the fog this time.
visibleDistance = "500";
         fogDistance = "300";