Sign in to follow this  
Anddos

Locking mesh wierdness

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 http://www.youtube.com/watch?v=NbkEVe6HIXU

Share this post


Link to post
Share on other sites
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

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