TSStatic vs Static Shape
by Dan - · in Torque Game Engine · 08/28/2004 (12:30 pm) · 2 replies
I have some questions about the difference between TSStatic and Static Shape? From looking at the code as well as the Torque SceneObject Class Reference
I see that Static Shape -> Shape Base -> Game Base -> Scene Object where TSStatic -> Scene Object. So there are many inheritance differences. Is there a performance or base game idea difference between these two items?
I also see the TSStatic is used for the Trees in the demo. Does it buy you anything for having the Trees as TSStatic shapes as opposed to creating a Static Shape for them? Also how do you create a Static Shape for them?
Why do I want to know? Well right now I have some dynamic shadows in my Shape Base and I would like to get my trees to have nice little shadows like my players, cars, etc without having to add that code to the TSStatic.
Of course feel free to correct me on anything I have wrong.
Thank you,
I see that Static Shape -> Shape Base -> Game Base -> Scene Object where TSStatic -> Scene Object. So there are many inheritance differences. Is there a performance or base game idea difference between these two items?
I also see the TSStatic is used for the Trees in the demo. Does it buy you anything for having the Trees as TSStatic shapes as opposed to creating a Static Shape for them? Also how do you create a Static Shape for them?
Why do I want to know? Well right now I have some dynamic shadows in my Shape Base and I would like to get my trees to have nice little shadows like my players, cars, etc without having to add that code to the TSStatic.
Of course feel free to correct me on anything I have wrong.
Thank you,
#2
Sounds like TSStatic is the way to go. Thanks.
Maybe I should start a new thread, but the follow on question I have is:
Do you know how the TSStatic shadows are suppose to work? Try as I might I can't get the shadows to even show up.
Thanks,
08/28/2004 (1:13 pm)
Phil,Sounds like TSStatic is the way to go. Thanks.
Maybe I should start a new thread, but the follow on question I have is:
Do you know how the TSStatic shadows are suppose to work? Try as I might I can't get the shadows to even show up.
Thanks,
Torque 3D Owner Phil Carlisle