• Advertisement
Sign in to follow this  

different coordinates

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