Sign in to follow this  
nickyc95

2D Rendering using DirectX 11

Recommended Posts

nickyc95    887

Ok Hello, 

 

I am trying to understand 2D rendering in DirectX 11, however I dont know what the best way to go about it is.

 

I have spoken to a few people who have said using textured quads, however i dont know how to go about doing that.

 

Could anyone shed some light on this for me?

 

Thanks

Share this post


Link to post
Share on other sites
mhagain    13430

2D rendering in D3D11 is really no different from 3D rendering.  You set up your vertex data, set some states and issue a draw call.  The projection matrix you use is different because that's where you get the 2D look from, but that's really just an incredibly small part of your setup.  The reality though is that 2D is really just a special case of 3D.

 

If you're having difficulty with this then you need to go back to some more basic tutorial material.

Share this post


Link to post
Share on other sites
nickyc95    887

2D rendering in D3D11 is really no different from 3D rendering.  You set up your vertex data, set some states and issue a draw call.  The projection matrix you use is different because that's where you get the 2D look from, but that's really just an incredibly small part of your setup.  The reality though is that 2D is really just a special case of 3D.

 

If you're having difficulty with this then you need to go back to some more basic tutorial material.

 

I understand how it is done, I was just unaware of any 2D specific things that DX11 has to offer for example a newer version of ID3DX10Sprite.

 

However i think i have already figured it out, so yeah.

 

Thank you for the input though.

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