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 ?
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 ?
About the author
Contact: torque [AT] ohmtal [DOT] com
Torque Owner Duncan Gray
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.