Game Development Community

Full relight during the play

by ERICK MIRANDA M · in Torque Game Engine · 06/25/2009 (6:05 pm) · 4 replies

Hello everybody, this is my problem, when I move shapes during the game, the shadow freeze on the terrain and when place the object on the new position doesn't have shadow, all in the game... exist some command or function like Full Relight in the World Editor to allow relight the scene during the play?

Really thanks for your help

#1
06/25/2009 (6:23 pm)
You could bind it to a key, but if it's causing a baked in shadow, then it's a static object and really isn't supposed to be moved - it'll cause issues by not updating it's position over a network.

Try making it a dynamic object, there might be an example of one as a moveable rock, called rigidshape. (been a while since I used TGE)
#2
06/25/2009 (6:57 pm)
Thanks Steve let me explain, I have a local project, in this project can move my shapes with a click of the second button of mouse, well isn't a great work, the shape move front the player, but, when the shapes moves to the new position, the shadow keep in the last position, and in the new position there isn't a shadow. Now, I don't know if is posible to relight the scene during the play... if isn't the best solution is that my shapes don't show shadow. But I don't want this... Thanks pals
#3
06/25/2009 (7:10 pm)
You could make a sort of custom "static" player class for you moveable objects, that way you'd have a dynamic object with stencil shadow.
#4
06/25/2009 (7:16 pm)
I'll try it, thanks