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.
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.
#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
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. :)
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. :)
Torque Owner Chris "Dark" Evans