Game Development Community

Stop rendering a shadow

by Guimo · in Torque Game Engine · 05/26/2008 (5:35 pm) · 1 replies

Hi everybody,
I'm sure this question has come out before but I cant find anything related in the forums.
I would like to stop rendering a shadow on a player object. Like:
%player.renderShadow(true); //starts rendering the shadow
%player.renderShadow(false); //stops rendering the shadow

An alternative method would be:
%player.setShadowTransparency(1); //1 makes the shadow darker
%player.setShadowTransparency(0); //0 makes shadow invisible

does anybody knows where should I check in order to implement one of those approaches?

Thank you very much!
Guimo

#1
05/26/2008 (7:02 pm)
I managed to solve this one by including a shadow transparency level property and then passing it as a parameter in the sgRender method at the ShapeBase::renderShadow function. Works great.

Thank you anyway for taking the time to read this.
Luck!
Guimo