Game Development Community

Can I stop shadows on StaticShape? (T3D)

by Keith G Wood · in Technical Issues · 06/24/2011 (6:14 am) · 2 replies

I have a simple box model - invisible - to stop the player travelling where he isn't allowed.

Initially I made this a TSStatic, with decalType set to none (which I did to stop shadows appearing on the invisible shape).

Then I wanted to move the model (away from the player - so the invisble barrier moves). I could delete the model & recreate in a diffrent posoition - but if the player is pushing against the barrier at that point, he moves through it in the small gap when the model isn't there. So I changed the model to StaticShape & simply changed the position.

Everything now works fine - except I get shadows on the invisible model.

Is there a simple way to stop these shadows - I've had search of the help & forums, but I can't find how to do it.

#1
06/24/2011 (7:18 am)
In the material uncheck "castShadows", also maybe check "emissive".
#2
06/24/2011 (11:20 am)
Alternatively, set "isRenderEnabled" to off on the model. This will force it to stay out of any of the render passes.