Game Development Community

Large shadows problem

by Thomas Huehn · in Torque Game Engine · 07/13/2008 (8:21 am) · 1 replies

When setting the sun elevation low (under 60) large shadows don't get rendered if the object is behind the camera. This looks strange if you see a shadow with the end about 10 meters ahead and step one step forward and the shadow disapear.

Unfortually the shadow is only rendered when the object is rendered. I broke the problem down to
PotentialRenderList::insertObject where i did tweak the radius to get the object into the potential render list. But i stuck on Shapebase::prepRenderImage where isObjectRendered get called and fail.

Did anybody fix this problem or have an idea ?

#1
07/27/2008 (10:12 pm)
Thomas, they don't get rendered because the object from which the shadow gets rendered is out of scope.

The only fix is to make the shadow a separate scene object with its own bounding box, which is hardly a simple task. I did a resource on it many moons ago but it does not work with TGE 1.5.