• Advertisement
Sign in to follow this  

DirectX / Sprites/ Coordinate system ?

This topic is 3175 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
Advertisement
Sign in to follow this  

  • Advertisement