Game Development Community

dif shadows?

by Desmond Fletcher · in Torque Game Engine · 02/16/2002 (10:19 am) · 4 replies

I got no response from the mappers so I'm reposting here:

Would anybody have an idea why I'm getting shadows in two different directions?
holodeck.st.usm.edu/vrcomputing/vrc_t/tutorials/editing/img/shadows.jpg

These are difs that touch or are embedded in the terrain. It seems that if they are tall, the shadows are cast correctly (to the right in the image). If they are short, they are cast to the left.

#1
02/17/2002 (12:44 am)
Just a thought, but it looks like your sun might be in-between the gas-station, and the road. Try moving it somewhere far away, see if that works.
#2
02/17/2002 (9:37 am)
Thanks for the suggestion Chris -- but it didn't change anything. hmmm I've tried to duplicate it in another world, but haven't been able to yet. curious
#3
02/22/2002 (10:35 am)
Could this be an issue of how the shadowVolume masks the terrain; that is, the location of the shadowVolume plane with respect to the dif object versus the plane of the terrain?

Here is another pic with four tests of a dif object (cube:w=128, d=128) at different sizes and heights in or above the terrain.

1.
cubesize: h=128; slightly buried in terrain
shadow points toward sun

2.
cubesize: h=256; slightly buried in terrain
shadow toward and away from sun
3.
cubesize: h=384; slightly buried in terrain
shadow toward and longer away from sun
4.
cubesize: h=384; moved above terrain slightly
shadow away from sun

holodeck.st.usm.edu/vrcomputing/vrc_t/tutorials/editing/img/shadowVolumes.png

This effect occurs no matter what the terrain squareSize is; I've checked 2, 4, 8, 16. The lightDir is the default.

Any ideas/help would be appreciated. :)
#4
05/08/2002 (12:57 am)
Errm, any news on this? Our mapping guy has some weird problems at the moment, too... the interior difs are casting shadows in different directions than the player or than vehicles... Here is a screenshot....