Jump to content
  • Advertisement
Sign in to follow this  

DirectX / Sprites/ Coordinate system ?

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

So far to draw sprites (2 triangles), I ignore the world/view/projection matrices in DirectX. But I have to specify my 2d vertices in screen coordinates (0,0) to (800,600). (vertices TransformedColoredTextured) How can I setup the matrices so that I can specify the coordinates between 0 and 1 or -1 and 1 ?. So my graphics woudln't be dependant upon the resolution. (I tried: projection=OrthoLH(width, height, 0, 100); world=Identity view=Identity and vertices PositionColoredTextured But then I couldn't see my triangles any more)

Share this post

Link to post
Share on other sites
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!