- Home /
How to make a submesh from part of my character
Hi,
I have a character which I modeled in Blender and I need to take certain part of that mesh (vertices are not connected) and make it a submesh, so I can assign a transparent material to it. From the docs I understand that I need to use the SetTriangles() function, but I don't know how to get the triangles list.
Is there a way to "visually" split my mesh into submeshes or something? Maybe create vertex/triangle groups in Blender first?
End goal:
I need to do this because some of my character's mesh needs to be transparent, set by a texture, but when I apply transparent material to the whole character it's really messed up. Different body parts intersect and are being rendered as transparent, even though the texture at that location is solid.
Just add 2 materials on the model in blender and assign the second one to the transparent parts. In Unity you can then use 2 materials, one for the solid part and one for the transparent one.
You don't need to do this via scripts (and it would probably be too hard)
Worked perfectly, post it as an answer if you want so I can accept it.
Answer by Benproductions1 · Nov 15, 2013 at 06:24 AM
Hello,
Instead of doing a whole lot of stupid math in order to split up the model at runtime, you can just use multiple materials in blender and it will import with a submesh for each material.
Hope this helps,
Benproductions1
Your answer
Follow this Question
Related Questions
Alpha Transparency Shader Issue 1 Answer
Shader or material? 1 Answer
Car rig in blender and importing to Unity 0 Answers
A node in a childnode? 1 Answer