How do i get a full skybox without fog?
by Tom Spilman · in Torque Game Engine · 12/28/2004 (1:44 am) · 5 replies
This has me stumped and i won't get time to walk thru the code to figure it out until late tomorrow. So maybe someone here has seen the problem before and can point out the obvious fix that i'm totally missing. This is the problem:

After disabling all the fog and cloud layers i would assume that black area would show my full skybox image... yet it doesn't. I know this is fog because if i change fog color to green that black area turns out green. Here is the sky object from my mission file:
I don't see what else i can do to get the full skybox image short of hacking the sky render code.

After disabling all the fog and cloud layers i would assume that black area would show my full skybox image... yet it doesn't. I know this is fog because if i change fog color to green that black area turns out green. Here is the sky object from my mission file:
new Sky(Sky) {
position = "336 136 0";
rotation = "1 0 0 0";
scale = "1 1 1";
materialList = "~/data/skies/space.dml";
cloudText[0] = "";
cloudText[1] = "";
cloudText[2] = "";
cloudHeightPer[0] = "0";
cloudHeightPer[1] = "0";
cloudHeightPer[2] = "0";
cloudSpeed1 = "0";
cloudSpeed2 = "0";
cloudSpeed3 = "0";
visibleDistance = "2000";
fogDistance = "12000";
fogColor = "0.000000 0.000000 0.000000 1.000000";
fogStorm1 = "0";
fogStorm2 = "0";
fogStorm3 = "0";
fogVolume1 = "0 0 0";
fogVolume2 = "0 0 0";
fogVolume3 = "0 0 0";
fogVolumeColor1 = "0.000000 0.000000 0.000000 1.000000";
fogVolumeColor2 = "0.000000 0.000000 0.000000 1.000000";
fogVolumeColor3 = "0.000000 0.000000 0.000000 1.000000";
windVelocity = "1 1 0";
windEffectPrecipitation = "0";
SkySolidColor = "0.000000 0.000000 0.000000 0.000000";
useSkyTextures = "1";
renderBottomTexture = "1";
noRenderBans = "0";
skyGlow = "0";
skyGlowColor = "0.010000 0.010000 0.040000 2.000000";
locked = "true";
};I don't see what else i can do to get the full skybox image short of hacking the sky render code.
About the author
Tom is a programmer and co-owner of Sickhead Games, LLC.
#2
12/28/2004 (7:54 am)
Bans are the "sky box fog." Set noRenderBans = 1;.
#3

The sides of the skybox have the wrong texture coords top to bottom... causes those streaks. I'm investigating it now... seems like a TSE bug, but i'll try it on TGE too.
12/28/2004 (1:24 pm)
That seems worse... or maybe it's a bug in TSE (i posted it here because it seemed like the TSE code was unchanged from TGE):
The sides of the skybox have the wrong texture coords top to bottom... causes those streaks. I'm investigating it now... seems like a TSE bug, but i'll try it on TGE too.
#4
12/28/2004 (1:31 pm)
Yep... TSE bug. I'll post it over there.... thanks Ben.
#5
12/28/2004 (2:17 pm)
Posted and i found a fix. www.garagegames.com/mg/forums/result.thread.php?qt=24411.
Associate Tom Spilman
Sickhead Games