MMeshObjects in tsShapeInstance class
by Case Western (#0004) · in Torque Game Engine · 12/13/2005 (7:56 pm) · 0 replies
I'm trying to gain some understanding as to how models for shapes in Torque are stored, and currently I'm trying to figure out what the mMeshObjects vector is used for in tsShapeInstance. I've been hunting through the source for clues for a while and have finally decided to ask for help. The variable has this declaration in the tsShapeInstance class:
My Questions
1) I assume that the list of meshes in each MeshObjectInstance object are all the level-of-detail meshes associated with that shape. Is this correct?
2) If this is correct, then what is mMeshObjects, the list of MeshObjectInstances, used for? Could it be parts of the object, and each part has a set of level of detail meshes, rather than the whole object just having one set of LoD meshes?
As an example going under my assumptions, for the Ogre model that comes with Torque, mMeshObjects would hold a list of body parts for the Ogre, like mMeshObjects[0] would be the head, mMeshObjects[1] would be an arm, etc., and each "body part" would have its own list of LoD meshes. For instance, the list of meshes associated with mMeshObjects[1] would be all of the LoD meshes for the arm. Is this correct?
Thanks very much,
Mike Lukas
Vector<MeshObjectInstance> mMeshObjects;A MeshObjectInstance has a list of meshes associated with it too. So essentially this is a list of lists of meshes (along with some other stuff that's part of MeshObjectInstance).
My Questions
1) I assume that the list of meshes in each MeshObjectInstance object are all the level-of-detail meshes associated with that shape. Is this correct?
2) If this is correct, then what is mMeshObjects, the list of MeshObjectInstances, used for? Could it be parts of the object, and each part has a set of level of detail meshes, rather than the whole object just having one set of LoD meshes?
As an example going under my assumptions, for the Ogre model that comes with Torque, mMeshObjects would hold a list of body parts for the Ogre, like mMeshObjects[0] would be the head, mMeshObjects[1] would be an arm, etc., and each "body part" would have its own list of LoD meshes. For instance, the list of meshes associated with mMeshObjects[1] would be all of the LoD meshes for the arm. Is this correct?
Thanks very much,
Mike Lukas
About the author