Jump to content
  • Advertisement
Sign in to follow this  
HolyGrail

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

This topic is 3174 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
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!