Sign in to follow this  
vlad2048

DirectX / Sprites/ Coordinate system ?

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

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