Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: CT27 on May 02, 2020, 04:39:51 pm

Title: What does "anti-aliasing" do?
Post by: CT27 on May 02, 2020, 04:39:51 pm
I'm using wxlauncher for some older campaigns right now.  I have a question about some of the options under "advanced options":

In general what does anti-aliasing do?  Specifically what do these two options do:
"Enable FXAA anti-aliasing"
"Enable SMAA anti-aliasing"
Title: Re: What does "anti-aliasing" do?
Post by: mjn.mixael on May 02, 2020, 05:19:48 pm
Quick google search answered the question.

Title: Re: What does "anti-aliasing" do?
Post by: CT27 on May 02, 2020, 05:34:08 pm
Thanks for the link/video.


So it would be recommended to have both of those options checked/enabled?
Title: Re: What does "anti-aliasing" do?
Post by: Nightmare on May 02, 2020, 06:06:50 pm
SMAA is the newer of them, and you can have only one of them active at the same time. If both are active, SMAA will be automatically preffered. You also need to put -smaa_preset <number between 0 and 3> into the custom cmd settings line.

Here's the link to the wiki: https://wiki.hard-light.net/index.php/Command-Line_Reference#-smaa

And here to the test release builds with a bit more info: https://www.hard-light.net/forums/index.php?topic=95680.0
Title: Re: What does "anti-aliasing" do?
Post by: wookieejedi on May 02, 2020, 07:04:57 pm
Also, note if you are playing on a machine without a dedicated graphics card then having AA on (or post processing for that matter) will reduce your framerate a bit (along with a few other flags, too).
Title: Re: What does "anti-aliasing" do?
Post by: tomimaki on May 03, 2020, 03:23:44 pm
You also need to put -smaa_preset <number between 0 and 3> into the custom cmd settings line.
Code: [Select]
cmdline_parm smaa_preset_arg("-smaa_preset", "SMAA quality (0-9), requires post-processing and -smaa", AT_INT);So this line is a bit misleading? :nervous: It should be (0-3)?
Title: Re: What does "anti-aliasing" do?
Post by: Nightmare on May 03, 2020, 03:53:02 pm
Atleast wiki and release post say yes.
Title: Re: What does "anti-aliasing" do?
Post by: wookieejedi on May 03, 2020, 05:57:14 pm
The actual SCP code indeed uses 0-3. Also I noticed the wiki has been updated.
Title: Re: What does "anti-aliasing" do?
Post by: DahBlount on May 05, 2020, 01:05:38 pm
If you're using a nightly from today (May 05, 2020) or later, there are new cmdline params. This was changed to unify the way AA is handled internally.

Code: [Select]
-aa // Enables antialiasing
-aa_preset [0-6] // 0-2 FXAA, 3-6 SMAA