Shadows
by Syllus · in Torque Game Engine · 04/11/2007 (10:26 am) · 3 replies
I'm not a programmer i'm a designer but i do understand how to make changes .. I can get shadows to appear in TGE on DIF & DTS but they look horrible like blobs .. I just d/l TGE is there somthing that has to be done in order to get shadows working correctly...
www.blackskullstudios.com/bss/pics/shadow.jpg
www.blackskullstudios.com/bss/pics/shadow1.jpg
www.blackskullstudios.com/bss/pics/shadow.jpg
www.blackskullstudios.com/bss/pics/shadow1.jpg
#2
04/11/2007 (11:09 am)
The one in the middle of shadow1.jpg is lit in constructor the one one the left is the same but with no lighting in constructor and expoted to dif the shadows are being created by the sunlight ingame.
#3
Also, check your sun's ambient light settings, i have found many times when there are no terrain shadows it is because the ambient color is close to the light color, try setting the ambient color darker.
04/11/2007 (11:35 am)
DIF shadows are generated from a LIGHTMAP, what is like a texture blended into the DIF textures, its the ILLUSION of light/dark(One of the Constructor render display modes will show you the light map...). There is no REAL light generating that shadow, so how could it shadow onto the terrain from the unless you make a real light? (this may not be what your talking about?)Also, check your sun's ambient light settings, i have found many times when there are no terrain shadows it is because the ambient color is close to the light color, try setting the ambient color darker.
Employee David Montgomery-Blake
David MontgomeryBlake
1. I think that the problem is that you are casting shadows against the sun which is at a distance from the object. Have you tried creating a dynamic light and seeing if it defines the shadow more?
2. I believe the problem with the second image is that DIF's have portals and the shadows are being restricted to the portals. How did you set up your lighting? Did you use static lights on the DIF? Are you using the direct-to-DIF export with models baked in out of Constructor or are you placing the models in the World Editor? Does using dynamic lights change anything?