Game Development Community

how get i mesh swap by use "hidding Mesh" resource

by Enel · in Torque 3D Professional · 11/12/2009 (6:27 am) · 7 replies

i find hidding Mesh resource in T3D. it is already implement :)

but i dont know how to make Mesh swap by "hidding mesh" resource.



i want to swap that another Armor.dts Datablock equip Player model

easy to say i want to equip parts model.


plz.. i want to make mesh swap..

#1
11/12/2009 (7:08 am)
You cannot swap models.
What you can do is to have a model with all the meshes inside it, and then show or hide the mesh you want.
For example, you can create a player model and inside it you could have 2 different mesh for the torso, perhaps a naked torso and an armor, if you want to show the naked torso, you need to hide the armor torso mesh and show the naked one.

Instead, if you want to add models to your player, for example adding a backpack, your best choice is to use the mountObject function.
#2
11/12/2009 (8:32 am)
Thx Davide..

i have use hidding mesh, just like WOW..
#3
11/12/2009 (10:00 am)
just like WOW??

just like HOW!!

please tell how.
#4
11/12/2009 (10:50 am)
ok, got it,
just like WOW..
#5
11/12/2009 (2:49 pm)
Davide is right for the most part. Using mesh hiding allows you to build multiple meshes on a single object and then hide the ones you do not want showing. The biggest gain you get from this compaired to mountObject is the fact the meshes are rigged to the skeleton and will follow proper animations. Mount points at best can be used with less complex items such as a helmet or even a backpack depending on how you move the spine. Something such as leg guards that cover the knee or even a dress can be bound to the skeleton and properly support a much wider array of movement.

For the most part you will have to add in some scripts to hide/unhide the meshes when you wear a piece of equipment. We use the MMO Kit and our process is quite different, but that in a nutshell is how it works.
#6
11/12/2009 (11:43 pm)
wow Character have all of parts already equip :)

if you can see have to use very very low spec computer

and play wow :P
#7
11/13/2009 (2:11 am)
Meshes that are hidden are not rendered or drawn so they have very little impact. You can have a lowpoly model with 2000-3000 polys with all the meshes turned on you want and the master model could have 10000s of polys with the total meshes available to that object.