Game Development Community

is it possible to hide/unhide materials on a 3d shape ? [closed]

by Jeff Yaskus · in Torque 3D Beginner · 12/31/2011 (7:22 pm) · 3 replies

I'm working with some new art content, where the artist used multiple layers of materials to "merge" (4) different models into (1). I believe his thought was that the materials could be turned on/off dynamically, just like T3D does with meshes.

jyaskus.com/images/misc/scifi_materials.png
such as
setMeshHidden(MeshName,true);

However, I can't seem to find any mention of "MATERIAL HIDING" within the T3D docs ... am I missing something here ? Far off base ? Is this the "wrong" way to do "it" ??

When I load the model in the editor, it displays ALL of the associated materials ... and I dont see a way to just say, remove all the extra materials ... and save as a new file. or any way to do it dynamically.

Suggestions?

edit: issue resolved

#1
01/01/2012 (12:57 pm)
I tried to delete the materials by removing them from the materials.cs file ... but T3D just replaces it with a default material.

Is there a proper way to delete these using say Milkshape or Unwrap 3D?
#2
01/04/2012 (12:43 pm)
Here is a link to the actual source models ... it would be an awesome addition for T3D users. If I could just figure out how to properly import the DAE models so it can use mesh hiding.

arteria3d.corecommerce.com/Animated-Characters/SciFi-Base-Character-Project.html
#3
01/05/2012 (10:14 pm)
Hey Jeff,

I replied to your blog here with a solution:

http://www.garagegames.com/community/blogs/view/21441

Hope this helps. :)