Game Development Community

The sky is not very punctual...

by Chris \"Hobbiticus\" Weiland · in Torque Game Engine · 08/10/2003 (10:23 am) · 2 replies

I've been noticing that the sky never renders on the first frame of gameplay. I've also heard that this is because of a Torque hack for voodoo cards somehow. I've been searching the code a little bit, and I can't figure out what in the code is causing the sky not to render on the first frame. Our game does not support voodoos, so such a hack is no longer necessary. So, I'd like to remove it.

Has anybody else looked into this or know why exactly this is happening? I've checked over sky.cc/h, sceneState.cc/h and sceneGraph.cc/h pretty thoughly, but I can't turn up anything.

#1
08/10/2003 (11:40 am)
I'd like to officially note this is silly, given that I live with you right now, however for the benefit of the Torque community:

There are a number of preference variables that control this behaviour:

ts\tsShapeInstance.cc(127): Con::addVariable("$pref::TS::skipFirstFog", TypeBool, &smSkipFirstFog);

Change it as needed. Note that some parts of the code also manipulate it, so you may want to grep to be sure your changes are really going to take effect. Hint: You probably want to set this to false.
#2
08/10/2003 (1:02 pm)
Well, then you lied to me. You said that the sky doesn't render - but that's fog! Augh! I feel cheated an abused!