.X Templates

Started by
-1 comments, last by vbisme 19 years, 4 months ago
Regarding the Mesh template, is the number of indices for the face there for flexibility's sake, in which it's is almost always 3? In some cases I see that there are 4, how to deal with those? For the MeshNormals, for the time being is it pretty much safe to ignore the index part? For example a simple geometry with 2 faces, 3 indices each. There may be syntax errors, but hopefully you'll get the idea: Mesh Rect{ 4; 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0; 2; 3;0, 1, 2; 3;2, 1, 3; MeshNormals { 4; 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0; 2; 3;0, 1, 2; 3;2, 1, 3; } } The only case I sometimes see is that one vertex may have many normals. Is there any examples out there where it loads meshes correctly and still providing the flexibility? What about the idea of a "subset". I have a feeling that a subset is something( a group of faces) that uses the same material. How to correctly divide subsets while loading meshes? Thanks.

This topic is closed to new replies.

Advertisement