problem with sky
by Christian Weber · in Torque Game Engine · 06/14/2003 (11:18 am) · 1 replies
I have strange problem with my sky, it just gets cut. Any ideas why? Sorry for my bad english.
www.ghostgames.net/screenshot1.png
Thx for any help.
Chris
www.ghostgames.net/screenshot1.png
Thx for any help.
Chris
About the author
Torque Owner Alex Baaklini
Inside of sky.cc, there's these 2 constants called HORIZON and OFFSET_HEIGHT. These are for the default fog in a given level. The skybox is always clipped to that HORIZON height (at least that height). The clipping happens every frame in case the camera moves into a fog volume, in which case the clipping height will be slightly higher than the HORIZON.
Anyway, that screenshot, looks a lot like the results I'd get either if -- OFFSET_HEIGHT is set to zero (and my camera is above all the fog volumes) or for some reason, renderBans() isn't being called. renderBans actually draws the gradient above the fogline. If it's not being called, you'll just see that hard clipping rather than the hard clipping with a gradient above it.
- Parashar K.