Game Development Community

Shadows on Terrain

by Danner Jones · in Torque Game Engine · 11/03/2003 (11:43 am) · 2 replies

In the racing game (mod) there are some inconsistencies in the shadows from objects. The sun in the level is casting shadows on the terrain correctly for some objects and from other terrain, but gives no shadows and backwards shadows sometimes. I've tried deleteing the ML files and also pressing F11 to go into edit mode and then Alt-L to relight with no luck.

It appears as though objects that are blocked from the sun by terrain are being lit as if they were not blocked, and nice versa. To see what I mean, press Alt-C to go into free camera mode and look at the two "towers" in the racing game/mod. The one inside of the main oval track has shadows as do some of the "pylons". These objects appear to be blocked from the sun by a big hill. The tower on the outside of the track has no shadows cast at all.

Also, next to the tower outside of the track are two concrete-looking barriers. They appear to be casting shadows *towards* the sun.

-Nerseus

PS This was posted in the Terrain forum, but I've deleted it as it got no response and seems to fit better in the SDK Bugs forum.

#1
11/03/2003 (1:04 pm)
Torque's lighting is a bit messsed up... You might ask Hobbiticus about some of the fixes he's done for Legends.
#2
11/05/2003 (10:51 am)
Actually, I've still seen buildings that cast no shadows on Legends maps. One of the main bases on Sol, for example, does this. We did nothing to the pre-lighting - only fiddled with the realtime stuff. The biggest problem with Torque is that all of the lights are clamped to [0,1], but lights should be able to go past that, so everything looks dark and washed out. That's the only thing we "fixed."