Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

how can I read a vertexbuffer from a mesh?

 

the following lines lead to invalidcallexception:

 

//meshVertex is the struct for my vertexformat

meshVertex[] buffer = new meshVertex[meshc.NumberVertices];

buffer =

 

(meshVertex[])(meshc.VertexBuffer.Lock(0,typeof(meshVertex),LockFlags.None,meshc.NumberVertices));

 

 

 

does anyone know an example how to read vertexdata from a mesh properly?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...