Shadow Overlapping Problem
by Viren Thambidorai · in Torque Game Engine Advanced · 09/17/2008 (5:39 am) · 4 replies
I have Orc mounted on car, but its' shadow overlaps with the car shadow.
Image location:
http://img34128.pictiger.com/images/16796124/
One solution would be turning off orc shadow while orc is mounted on car, but I've car model without top.
that's why I need Orc shadow too.
so somehow I need to make the mounted object(orc) as a part of car object when shadow is casted.It should consider both objects as a whole mesh geometry.
Also, I'm casting shadow on dts terrain object.
Any suggestion on how to do this ?
Thanks
Image location:
http://img34128.pictiger.com/images/16796124/
One solution would be turning off orc shadow while orc is mounted on car, but I've car model without top.
that's why I need Orc shadow too.
so somehow I need to make the mounted object(orc) as a part of car object when shadow is casted.It should consider both objects as a whole mesh geometry.
Also, I'm casting shadow on dts terrain object.
Any suggestion on how to do this ?
Thanks
#2
You would need to make sure this also renders the mounted player at the same time.
09/19/2008 (12:07 am)
If you look in sgShadowProjector::sgRenderShadowBuffer() you'll see that it has some special code for rendering the WheeledVehicle Wheels as part of the Vehicle's shadow map. You would need to make sure this also renders the mounted player at the same time.
#4
It just looks better.
09/19/2008 (12:21 pm)
Yeah I changed my code so it rendered all mounted object shadows when it renders the vehicle. It just looks better.
Torque 3D Owner Viren Thambidorai