Jump to content
  • Advertisement
Sign in to follow this  
edgabay

different coordinates

This topic is 3553 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 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); 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
Advertisement
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!