Sign in to follow this  
DJTN

Jagged Edges - Pro Solution?

Recommended Posts

[font="Times New Roman"] [/font][font="Calibri"][size="3"]When moving around in my 3D world I’ve noticed jagged edges or corners when moving towards a mesh or away from it. At first I thought it might be my models polly count but then I loaded up a simple quad and got the same results. I then started thinking that it could be float precision errors in my transformations when setting the view, projection, and world matrices, but that wasn’t it either. [/size][/font]

[font="Times New Roman"] [/font][font="Calibri"] [/font]

[font="Times New Roman"] [/font][font="Calibri"][size="3"]After some research, I think my problem could be solved by setting the multisampling type and quality in my present param’s but is that the proper way to handle jagged edges? After increasing the number of samples to FOUR_SAMPLES I noticed a slight blur effect when moving quickly but the jagged edges have resided somewhat.[/size][/font]

[font="Times New Roman"] [/font][font="Calibri"] [/font]

[font="Times New Roman"] [/font][font="Calibri"][size="3"]How do the AAA titles resolve this issue?[/size][/font]

[font="Times New Roman"] [/font]

Share this post


Link to post
Share on other sites
The artefact commonly known as "jagged edges" or "jaggies" is known as "aliasing". The solutions are known as "anti-aliasing".

MSAA is one common solution, yes. On ([i]underpowered[/i]) current-gen game consoles, screen-space AA techniques like MLAA, FXAA and DLAA are becoming popular.

Share this post


Link to post
Share on other sites
MSAA is easy and effective for simple rendering. Basically if you don't use deferred rendering or HDR. HDR starts to quickly deteriorate the effectiveness of MSAA once your range gets big, and deferred rendering requires shader work to make it work at all (and then some more to make it efficient).

Post-process AA techniques like the ones Hodgman mentioned are becoming popular because they're easy and cheap no matter how complicated your renderer is. In terms of quality in some ways they're way better than MSAA, and in some ways totally inferior. Either way the fact that you can just drop in the FXAA shader and it works for everything (deferred, HDR, transparent, alpha tested, whatever) is making very popular lately.

Share this post


Link to post
Share on other sites
For a deferred rendering system, I would recommend reading this http://nolimitsdesigns.com/game-design/fxaa-vs-mlaa/
Basically, in my testing, MLAA was more than double the speed of FXAA at better quality settings.

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