Jump to content
  • Advertisement
Sign in to follow this  

Triangle vertices don´t move equally

This topic is 2556 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

I´m using C++ and DirectX 9

I´ve created a triangle whit 3 vertices


When I move the triangle whit

3DXMATRIX matTranslateA;
D3DXMatrixTranslation(&matTranslateA, x, y, z);
d3ddev->SetTransform(D3DTS_WORLD, &matTranslateA);

The triangle moves to the left. But the vertex whit the z=50 moves slower than the other 2 vertices resulting in a rotation...
How can I make sure the whole triangle moves equally?

Share this post

Link to post
Share on other sites
B_old is right if you set that 50 to 0 im sure they would all move equally. Imagine it as if you were looking at some distant hills and you have a tree a few feet in front of you, if you moved to the side the tree would quickly move out of view but the hills would still be in view.

Share this post

Link to post
Share on other sites
Your right,

From the camera view it really looks like the position changed.
But I took a pair of scissors and I saw the same effect as whit the triangle.
Funny how some things in real life goes whiteout thinking
But as soon as it happens in a 3D program it seems like something is wrong.
I was worried the actual position of the vertices where wrong what would result in a strange object

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!