Multitextured mesh

Started by
1 comment, last by pjank42 17 years ago
Hey I've created a mesh with Mesh.box(2,2,2) and now I want to put texture on it. I know how to put a single texture on all 6 sides, but I want to put one texture on 5 of the sides, and another one on the last one. Do anybody know how to do that?
Advertisement
You want subsets.

Not sure what the exact .NET names are, but there is an attribute table and an attribute buffer - both need to be filled up. They don't define the materials or textures used, rather they define the different regions that exist. For example, your mesh has 12 triangles and 10 of them belong to one group and 2 belong to another - you then make two calls to DrawSubset() with appropriate index and pipeline configuration.

Note that you may have to split the vertex data to get the correct texture coordinates, but from your comments it sounds like you've already got this sorted [smile]

hth
Jack

<hr align="left" width="25%" />
Jack Hoxley <small>[</small><small> Forum FAQ | Revised FAQ | MVP Profile | Developer Journal ]</small>

Thanx, I will try that

This topic is closed to new replies.

Advertisement