Sign in to follow this  
Grimdoomer

Indices, Faces, Verts, and Questions

Recommended Posts

I'm working on a model rendering tool using DirectX 9.0 and C#. I'm trying to render some models from a game. Now each model is split into Sections, and each Section can have Parts. Each Part can have it's own shader. So I read out all the Sections, and make a Mesh object with the verts, uvs, and normals. Now because each Part can have it's own shader, I need to specify Attributes to the mesh, so I can use the correct Texture with the correct section of the mesh. Now each part has a StartIndex, and Count into the Indice buffer, wich is formated for a TriangleStrip. So I know what indices make up what part. But the AttributeRange class only takes the index and count for verts, and faces. So my question is, how do I find out what verts each part relates to based on the indices it relates to? Or how can I specify Attributes for the Mesh using only the Indices?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this