Player Shadows in DIF Interiors
by Ian Dale · in Torque Game Engine · 01/03/2005 (4:57 am) · 8 replies
I'm using Torque 1.3 with lighting pack 1.2. I've noticed, even without the lighting pack, that the main character casts a shadow inside DIF interiors based on the direction of the sun. This occurs in the demo's as well.
Is this a default behaviour? Can it be modified so that any character shadows in DIF interiors are based upon the lighting within the DIF and not the sun? Or is this just one of the quirks of using Torque?
Any insights would be appreciated.
Regards,
Is this a default behaviour? Can it be modified so that any character shadows in DIF interiors are based upon the lighting within the DIF and not the sun? Or is this just one of the quirks of using Torque?
Any insights would be appreciated.
Regards,
About the author
#2
Funny you should mention it, updating the dynamic DTS projected shadows is slated for a future Lighting Pack for TGE release. The shadow direction is based on the local lights and will morph to a blended direction of the most significant two lights (including the sun if it's most significant). Even more importantly the system uses the object's containing zone to create the ideal default or ambient shadow direction (which is not the sun's direction when indoors :).
Here's a video of the beta tests I've been running:
Synapse Gaming Lighting Pack updated player projected shadows
-John
01/03/2005 (9:13 pm)
Hey guys,Funny you should mention it, updating the dynamic DTS projected shadows is slated for a future Lighting Pack for TGE release. The shadow direction is based on the local lights and will morph to a blended direction of the most significant two lights (including the sun if it's most significant). Even more importantly the system uses the object's containing zone to create the ideal default or ambient shadow direction (which is not the sun's direction when indoors :).
Here's a video of the beta tests I've been running:
Synapse Gaming Lighting Pack updated player projected shadows
-John
#4
01/04/2005 (3:02 am)
Way cool, John!
#5
01/04/2005 (3:25 am)
Very impressive work, John! :)
#6
01/04/2005 (5:15 am)
Indeed, just sold me on the lighting pack. :)
#7
The demo looks good. Could I be a pain in the arse and ask what's your estimated date of release?
Also, any ideas on how to stop my avatar from casting a shadow based on sun direction when inside a DIF interior?
Regards,
01/04/2005 (8:15 am)
John,The demo looks good. Could I be a pain in the arse and ask what's your estimated date of release?
Also, any ideas on how to stop my avatar from casting a shadow based on sun direction when inside a DIF interior?
Regards,
#8
Ian,
Try poking around in ShapeBase::renderShadow, from there you can get creative with the shadow properties.
01/04/2005 (2:43 pm)
Thanks guys!Ian,
Try poking around in ShapeBase::renderShadow, from there you can get creative with the shadow properties.
Torque Owner Stefan Lundmark
Also, but I'm not sure at all on this one; but I think I recall John including the fix in the Synapse Gaming Lightingpack and it's documentation, together with the lightmapborder-fix.