Anti-aliasing: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
Line 70: Line 70:


== External links ==
== External links ==
{{empty}}
* [https://learnopengl.com/Advanced-OpenGL/Anti-Aliasing Advanced OpenGL - Anti-Aliasing]

Revision as of 07:00, 10 January 2024

English (en)中文 (zh)Translate (Translate)
Comparison of no anti-aliasing and 8x MSAA. Click to enlarge

Computer monitors are essentially a large grid of squares that can be set to any color or brightness. As such, it is impossible to draw a perfectly straight line, because no matter how many squares there are, it will never be able to make a perfectly smooth diagonal. This creates a stair-step pattern that is very noticeable the lower the resolution is, which is often referred to in the Video game world as "Aliasing". Wikipedia icon Spatial Anti-aliasing, often referred to simply as Anti-aliasing, is designed to combat the problems of aliasing. In simple terms, Anti aliasing is designed to smooth out that stair-step pattern in images and make them look less pixelated, while not changing the resolution of the final image.

Overview

MSAA

Wikipedia icon MultiSample Anti-Aliasing (MSAA) was the gaming industry standard of Anti-aliasing, and as such is the only version available in all Source Source games before Counter-Strike: Global Offensive Counter-Strike: Global Offensive. Essentially, if a polygon is crossing a multisample points [Clarify], it detects how many of its neighboring points are being intersected and then takes the color of that polygon and adds it over the existing image to create a slightly smother line. This creates a smoother line, but does not completely remove the stair-step pattern. This, however, is usually sufficient for most users.

Source games contain 4 different settings of MSAA, which include 2x, 4x, 6x, and 8x. What this does is add more multisampling points to a specified location and increases the accuracy of the multisampling, at the cost of performance

FXAA

[Todo]

TAA

[Todo]

Media

NO ANTIALIASING No antialias.png
2x MSAA 2xmsaa demo.png
4x MSAA 4xmsaa demo.png
8x MSAA 8xmsaa demo.png
FXAA Fxaa demo.png
Todo: add taa to this list

Support

GoldSrc GoldSrc

Game FXAA MSAA TAA
Half-Life Half-Life NO YES NO

Source Source

Game FXAA MSAA TAA
Source 2013 Source 2013 NO YES NO
Black Mesa Black Mesa YES NO NO
Apex Legends Apex Legends NO NO YES
Counter-Strike: Global Offensive Counter-Strike: Global Offensive YES YES NO

Source 2 Source 2

Game FXAA MSAA TAA
Counter-Strike 2 Counter-Strike 2 N/A YES NO

See also

External links