Jump to content
  • Advertisement
Sign in to follow this  
Anddos

Locking mesh wierdness

This topic is 3243 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

So i decided i wanted to see the lines that make up the mesh etc like this http://img46.imageshack.us/img46/3088/d3dship.jpg but why does the lines update with the spinning ship , i only call lock once and dont use D3DXVec3TransformCoord on the rotation matrix with the d3dxvector3 points that represent each line , so i am very baffeled here is a video as you see the 3 red lines spin with the mesh, why i dont know

Share this post


Link to post
Share on other sites
Advertisement
If you need to draw wireframe mesh, just change the D3D render state (please check the documentation because I don't remember the name :D). before you draw it (and reset after that).

Share this post


Link to post
Share on other sites
If you don't need the whole model, couldn't you just copy the triangles which you need?
Anyway, those lines spin with the mesh because you're probably using the same transformation matrices when you draw them.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!