Sign in to follow this  

[D3d9] How to convert 3d coordinates into 2d ?

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

Hello everybody, I'm learning how to use Direct3D and I've got a stupid question ( sorry if I misunderstood something :-) ) I can display a X mesh on the screen , I can move it by pressing the arrows keys of the keyboard. ( I used "\Samples\C++\Direct3D\Tutorials\Tut06_Meshes" sample from Direct3D9 SDK ) I have the coordinates of my X mesh ,right, and depending of the window width and height ( for example 1024 * 768 ) I want to control my mesh ( a spaceship ) and to check if my mesh coordinates are inside my window space. I simply use d3dDevice->SetTransform( D3DTS_WORLD, &matTranslation ) for the transformatios ( rotation, scale and translation of the spaceship ). How could I do that ? Thank you for your replies

Share this post


Link to post
Share on other sites

This topic is 2963 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.

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