Sign in to follow this  
Mastadex

anti-aliasing in DirectX

Recommended Posts

Mastadex    200
Im just staarting out with DirectX and im trying to learn about Anti-aliasing. Is there anything else I have to do other then this line: d3dDevice->SetRenderState(D3DRS_ANTIALIASEDLINEENABLE, TRUE); ?

Share this post


Link to post
Share on other sites
Nik02    4348
Very few consumer-level 3d accelerators support line AA, actually. However, full-screen antialiasing can be enabled by setting a few members of your presentation parameters:

Swap effect: Discard. The documentation seems to suggest that this is mandatory - however, while some drivers do not strictly require it, it is usually a good practice to do as the D3D team suggests ;)

Multisample type: The default is none. To enable antialiasing altogether, either set this to non-maskable or one of the other modes your card supports.

Multisample quality: non-maskable aa modes have a quality setting associated with them. This generally controls the number of sample points within the aa kernel; however, there is not a 1:1 correspondence with the quality index and the actual sample count.

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