Game Development Community

Can StaticShape use Polysoup?

by Steve Acaster · in Torque 3D Professional · 07/20/2009 (8:37 am) · 8 replies

Can StaticShape use Polysoup/Visible Mesh collision-type?

I've a feeling that the answer is no, but figured I'd ask those in the know.

#1
07/20/2009 (9:31 am)
from T3D b4 "New features": www.garagegames.com/community/forums/viewthread/97291
Quote:Added the ability to load a polysoup collision mesh for a TSStatic
So, I think the answer is YES ! :-)

Nicolas Buquet
www.buquet-net.com/cv/
#2
07/20/2009 (11:12 am)
StaticShape isn't the same as TSStatic which is something which has been a source of confusion to me previously (and probably still is to some extent!).

I think the "new feature" refers to the drop down collision-type for TSStatic rather than any reference to StaticShapedata.
#3
07/20/2009 (1:14 pm)
Sorry, you're right : I read to fast and was to happy to bring you some information for once.

Nicolas Buquet
#4
07/20/2009 (2:07 pm)
That's okay, mate.
:)
#5
07/20/2009 (3:22 pm)
I have never been able to use PolySoup on a StaticShape. Due to the confusion between TSStatic and StaticShape (which I believe many people have) I was never able to get a definitive answer to whether it was possible. The new TSShapeConstructor will, however, add a collision mesh to a StaticShape...but its not polysoup.

TSStatic = completely non-animated meshes.

StaticShape = meshes that are animated but don't need all the capabilities of PlayerShapes (not sure this is the correct label right now). Think ceiling fans, doors, treasure chests, etc.
#6
07/20/2009 (4:25 pm)
A simple distinction between TSSTatic and StaticShape:
  • TSStatic = stationary, non-interactive prop.
  • StaticShape = a scripted prop that can be animated, destroyed, used, etc.

  • Out of the box functionality is no polysoup for StaticShapes. One reason being that if you destroy the StaticShape and the shape changes you have to alter the polysoup collision mesh -- which it doesn't do automatically. Another example is to think of a StaticShape door, which can have movement (open/close) -- polysoup meshes are not meant to be moved.

    I think that what is meant by
    Quote:
    Quote:Added the ability to load a polysoup collision mesh for a TSStatic
    Is that a simpler primitive polysoup mesh can be loaded for a shape instead of the more highly accurate mesh based collision. This would be an optimization feature.
    #7
    07/20/2009 (5:10 pm)
    DynamicShape would have been a better descriptive name to call it ... or ScriptObject.

    Quote:
    polysoup meshes are not meant to be moved.
    I figured that was why it wouldn't be possible.
    Cheers for confirmation.

    #8
    07/23/2009 (11:58 am)
    As a clarification to what Michael said already, movement of the entire object or destruction of the entire object would not be a problem for polysoup - both of those are possible with TSStatic. What polysoup cannot handle though is skinned meshes ... that is to say StaticShape can play animations and TSStatic cannot.