TBG and changing armour pieces on a 3D model.
by Renee Reyneke · in Torque Game Builder · 11/03/2011 (5:27 am) · 4 replies
I have searched the forums for days now and am still not certain what is the best way to use multiple textures on a 3D model.
Most of the resources and posts are old - 2002 to 2008 - so what should I use? Some look easy enough to implement with just a small change to the engin and some look like a near rewrite of the whole engin.
I have TGB pro 1.7.5
My problem is we have 5 armour suits in the game and the player can wear any combination of head, torso or legs pieces at any time and also change it again. ohh and it has to work in multiplayer also.
Here is some of the information I found in the forums and resources, so what is the best way to do that? And will it even work in TGB?
Multiple skins on a single model - http://www.garagegames.com/community/resource/view/7154/
Hiding Meshes - http://www.garagegames.com/community/resources/view/5421
TGE Multiple Material Reskinning - http://www.garagegames.com/community/resources/view/14366
Has anyone implemented some of these?
Most of the resources and posts are old - 2002 to 2008 - so what should I use? Some look easy enough to implement with just a small change to the engin and some look like a near rewrite of the whole engin.
I have TGB pro 1.7.5
My problem is we have 5 armour suits in the game and the player can wear any combination of head, torso or legs pieces at any time and also change it again. ohh and it has to work in multiplayer also.
Here is some of the information I found in the forums and resources, so what is the best way to do that? And will it even work in TGB?
Multiple skins on a single model - http://www.garagegames.com/community/resource/view/7154/
Hiding Meshes - http://www.garagegames.com/community/resources/view/5421
TGE Multiple Material Reskinning - http://www.garagegames.com/community/resources/view/14366
Has anyone implemented some of these?
About the author
#2
11/04/2011 (3:43 am)
Thanks William, I will try that.
#3
After looking at the resource I realized it is not going to work, no ShapeBase.h and ShapeBase.cc to change. TGB only prerenders the 3D models.
Any other ideas?
11/04/2011 (4:08 am)
Update - After looking at the resource I realized it is not going to work, no ShapeBase.h and ShapeBase.cc to change. TGB only prerenders the 3D models.
Any other ideas?
#4
1) Ignore all networking, networking masking, prepRenderImage, and "invert hidden mesh" code.
2) Use t2dShape3D whereever there was a ShapeBase. For example, both have a mShapeInstance.
Good luck!
11/04/2011 (8:39 am)
I'm fairly certain it will work, but it will take some translating.1) Ignore all networking, networking masking, prepRenderImage, and "invert hidden mesh" code.
2) Use t2dShape3D whereever there was a ShapeBase. For example, both have a mShapeInstance.
Good luck!
Associate William Lee Sims
Machine Code Games