Game Development Community

Shadow Strangeness MS4

by Mike Kuklinski · in Torque Game Engine Advanced · 09/20/2006 (11:47 pm) · 5 replies

Well, I've been working with a Kuiper fighter model, and I've been noticing that the shadows were acting... strange, like, not appearing on the self-shadow.

So, naturally, I increased the sphere adjust -- but that made the shadows disappear entirely!

So, when I decreased it... suddenly all the shadows were there!

My settings:
shadowEnable = "1";
shadowCanMove = "1";
shadowSelfShadow = "1";
shadowCanAnimate = "0";
shadowSize = "512";
shadowMaxVisibleDistance = "100";
shadowProjectionDistance = "10";
shadowSphereAdjust = "0.6";

Images of it at 0.6 -- at 1.0 or higher, there are no shadows.

kuattech.net/sphere1.jpgkuattech.net/sphere2.jpg

#1
09/21/2006 (4:58 am)
How large is the model? It looks like the shadows are fading at the edge of the object. The shadows normally do this to avoid harsh transitions at their edges - if the object is large the fade could start to be noticeable on the object itself. Try cranking the shadowProjectionDistance to a higher number.

Also try disabling HDR/DRL/Bloom to compare the shadows - the extra exposure can wash out shadows.
#2
09/21/2006 (7:56 am)
At a higher number, shadowProjectionDistance causes the shadows to disappear.

The model is around 20 meters long.

They are not being 'washed out', when the value is 1 or higher, they are simply not rendering -- 0.5 makes them all render well.
#3
09/21/2006 (8:33 am)
Hmm, with shadowBias = 0.00001; (the default is 0.0005, I beleve), they render again...
#4
09/21/2006 (9:27 am)
Using DTS objects that large you'll need to play around with the shadow controls a lot - the base values are setup for meter sized objects.
#5
09/21/2006 (6:05 pm)
Ah... well, I plan on scaling everything down anyways, still strange.