Game Development Community

Shadows not casting with scaled shapebase

by Andy Schatz · in Torque Game Engine · 10/22/2008 (10:27 am) · 1 replies

I have some Player objects that I want to cast shadows, but when I scale them up, to say 40 times, their shadow disappears. The shadow's intensity appears directly related to its size. Is this because the center of the bounding box is rising off the ground when I scale it up? Does anyone have a solution for this, or even just some thoughts as to why it's happening?

#1
01/08/2009 (10:05 am)
That would be my guess, but I'm not sure. I crashed the engine a number of times when I began scaling models way up. I could get to about 15x and still see a hint of a shadow. It is as if the shadow's size is pre-calculated since the shadow volume did not get larger; it just showed less since the object got larger. But after a certain size, the bounding box of the player ended up overpowering the shadow. The shadow volume did not seem to scale with the box.

At least that's what I've noticed. Not sure how to help, though. I'm looking through the shadow code to see if I can find anything that looks promising.