locked
How can I get the Vertex-Format of a ModelMesh? RRS feed

  • Question

  • Hello,

    How can I get which Type of VertexFormat a ModelMesh have?

    My Problem is, I have a Model with an Mesh which contains TextureCoordinates and one without. In the same modelfile.

    How can I get the right VertexFormat from the VertexBuffer from each Model?


    thx you
    Thursday, May 3, 2007 4:05 PM

Answers

  • You can look in the VertexDeclaration (using VertexDeclaration.GetVertexElements) to see what the format of your data is.
    Thursday, May 3, 2007 4:56 PM

All replies

  • You can look in the VertexDeclaration (using VertexDeclaration.GetVertexElements) to see what the format of your data is.
    Thursday, May 3, 2007 4:56 PM
  • |<----------- BIG THX ----------- >|
    Thursday, May 3, 2007 9:42 PM