Game Development Community

Avatar system

by Xiu yi Shui · in Torque Game Engine · 09/05/2008 (4:01 am) · 5 replies

Hi,
We're developing a Avatar system, which could change character's mesh,texture,attachments etc.
I'd like to know how to change one character's mesh partially(such as head, hand or legs) at runtime?
These characters use the same skeleton animation.

Thanks in advance.

#1
09/05/2008 (6:11 am)
Normally I include multiple body parts inside the mesh, and show/hide the ones that are needed.
#2
09/05/2008 (9:03 am)
Dave, can you give an example of the script that shows/hides the mesh?

Thanks!

Tony
I3D
#3
09/05/2008 (10:08 am)
Sure, I started with this way back:

Shape Hiding

And expanded it to suit my needs. The base technology hasn't changed though. Mine looks like:

%shapebase.MeshOn("meshgroupname");
%shapebase.MeshOff("meshgroupname");
%shapebase.meshonlist();
%shapebase.meshOffList();
#4
09/05/2008 (10:09 am)
Try searching for "hide mesh" and clicking the first result.
elenzil.com/gg/images/search.png
#5
09/05/2008 (11:00 am)
Thanks Dave!

Thanks Orion!

Tony