# 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.

## Recommended Posts

I´m using C++ and DirectX 9

I´ve created a triangle whit 3 vertices

(0,0,0)
(0,10,50)
(10,0,0)

When I move the triangle whit
 3DXMATRIX matTranslateA; x-=0.5f; 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 on other sites
Maybe it only seems to be moving slower because of perspective?

##### 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 on other sites

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

1. 1
2. 2
Rutin
24
3. 3
4. 4
JoeJ
18
5. 5

• 14
• 23
• 11
• 11
• 9
• ### Forum Statistics

• Total Topics
631768
• Total Posts
3002242
×