Sign in to follow this  
edgabay

different coordinates

Recommended Posts

I work with directx9. I have a screen with two independently moving Bodies. One is generated by: d3ddev->SetTransform(D3DTS_WORLD, &(matR1Trans)); d3ddev->DrawPrimitive(D3DPT_TRIANGLESTRIP,....... The second is generated by: d3ddev->SetTransform(D3DTS_WORLD, &(.....rotate and translate... for(DWORD i = 0; i < ...... { d3ddev->SetMaterial(&material[i]); meshairplane->DrawSubset(i); } On the screen they look ok and move ok. However, when I put the same value in the translation coordinats D3DXMatrixTranslation(&matTrans1, x1, y1, z1); x2=x1; y2=y1; z2=z1; D3DXMatrixTranslation(&matTrans2, x2, y2, z2); They are not on the same place on the display, as though the have different coordinate system, of which I konw nothing. Could you please tell me what I am doimg wrong? Many thanks.

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