Shadow
by Temasek Polytechnic · in Torque Game Engine · 01/16/2007 (3:05 am) · 6 replies
I saw that there were shadows on the default player in Torque Tutorial.Base.
However, when I replaced the default player with my own, there wasn't any shadows ON the object. (i had to texture the shadows).
Why is this so and how can I fix it without touching the c++ code?
However, when I replaced the default player with my own, there wasn't any shadows ON the object. (i had to texture the shadows).
Why is this so and how can I fix it without touching the c++ code?
About the author
#2
01/30/2007 (10:23 pm)
Is there anyone that can help me out on this? I'm really stuck..
#3
I believe TGE-A supports self shadowing.
01/31/2007 (1:06 am)
In TGE dts shapes do not self shadow, so there's no real problem here. I believe TGE-A supports self shadowing.
#4
And the shadow was not textured...
Does the level of detail affect it?
[edit - on the level of detail]
01/31/2007 (1:56 am)
But, i saw shadows on the default player(alien)...And the shadow was not textured...
Does the level of detail affect it?
[edit - on the level of detail]
#5
You should see the same shading on all characters in TGE 1.5 - to make sure it's there place a gray texture (color 127, 127, 127) on the object and run the mission. If the shading is still missing try reducing the sun's ambient lighting.
01/31/2007 (9:27 am)
You're seeing shading not shadows - shading is the attenuation of lighting based on the light's relationship to the object surface, which in this case is being affected by how much the surface faces the sun.You should see the same shading on all characters in TGE 1.5 - to make sure it's there place a gray texture (color 127, 127, 127) on the object and run the mission. If the shading is still missing try reducing the sun's ambient lighting.
#6
02/01/2007 (6:08 pm)
Yes! It was the ambient that affected the shading...thank you!
Torque Owner Temasek Polytechnic
On the first image, there is shadow appearing ON the player model.
The second image is the same as the first but at a different angle.
I suspect that the shadows are created based on the sun. Now, in my game, there is sun, but there is no shadow appearing on my model. I have to texture the shadow onto my player.
Can someone please help me solve this. Thank you.