Fulqrum Publishing Home   |   Register   |   Today Posts   |   Members   |   UserCP   |   Calendar   |   Search   |   FAQ

Go Back   Official Fulqrum Publishing forum > Fulqrum Publishing > IL-2 Sturmovik: Cliffs of Dover > Technical threads

Technical threads All discussions about technical issues

Reply
 
Thread Tools Display Modes
  #1  
Old 04-15-2012, 06:18 AM
Buchon Buchon is offline
Approved Member
 
Join Date: Apr 2011
Posts: 437
Default Anti Aliasing SMAA (What is, How to and Configurations)

There a lot of confusion about this so I created this topic to explain this a bit better, how use it and share configurations and troughs.


What is and where is the difference between Morphological Anti-Aliasing and the usual Anti-Aliasing :

The main difference between the standard Anti-aliasing that we all know (FSAA) and the Morphological one is the performance, that is because FSAA is processed in the render pipeline directly over the geometry, this method produces a top quality anti-aliasing because fix the geometry directly but have a direct impact in performance by around a 30%, also if you want fix the aliasing of transparent textures that are used in trees, grass or instruments needles you should enable Transparency Adaptive AA, that sum other 20% of FPS drop.

The combination of FSAA + Transparency AA bring us the top eyecandy graphics but will crop down our FPS a 50%, the morphological AA born as a solution to systems that can´t afford that performance drop.

Morphological Anti Aliasing was initially created for his use in consoles, where you have very limited performance, but with the advent of deferred render pipelines (DX10,DX11) they are come to popular use due to the complexity of use FXAA in a separate processing of lighting and geometry (deferred render pipeline).

The morphological AA is a post-processed technique (post-pipeline), it takes the frames out from the end of pipeline and then run a search and fix of aliasing, this have the advantage of a very low impact in performance and also that it fix transparent textures too.

It does all with a performance impact of around 5%, or 10% in extreme cases.

But it also have problems caused by the obviously difficulty of disguise between what is a geometry and what is not in an a already rendered flat frame, that's why the apply of morphological AA in some cases tend to blur textures and text, basically because is fixing what should not.

SMAA was developed with the goal of offers the best quality in morphological AA, it gathers the latest techniques thereby offering better texture preserving and performance than MLAA and FXAA.



What is SMAA :

SMAA is a Morphological Anti Aliasing Technique just as MLAA and FXAA but unlike this ones is not proprietary of ATI or Nvidia, the source code can be consulted here :

https://github.com/iryoku/smaa


It was developed by the Zaragoza University (Spain) and Crytek and used in Crysis 2.

The heads of the project was :

Jorge Jimenez (Zaragoza University) Jose I. Echevarria (Zaragoza University) Tiago Sousa (Crytek Development) Diego Gutierrez (Zaragoza University)


Website of the project :

http://iryoku.com/smaa/


White paper :

http://iryoku.com/smaa/downloads/SMA...tialiasing.pdf


The latest version developed is ahead of what is used in Crysis 2, it features predicated thresholding that is a edge detection method that preserve textures and thereby improving the performance, letting us increase the quality even more, it was developed and used in Killzone 3.

To test SMAA and show results the software engineers make injectors and build in a screenshot feature, I´ll show here the use of a injector know as mrhaandi´s SMAA injector and written by Andrej Dudenhefner, partner of Jorge Jimenez (SMAA developer).

Website of the mrhaandi´s SMAA injector :

http://mrhaandi.blogspot.com.es/p/injectsmaa.html


I made a configuration adapted to CLOD which unleash a upper level of quality, it don't blur textures as others AA techniques and is better in trees and distant objects with almost no performance hit because uses predicated thresholding, the Kill zone 3 technique to preserve textures and performance.



SMAA in IL-2 Sturmovik Cliffs of Dover (I´ll edit this to add comparative shots) :

Here two raw examples, no AA/SMAA, at close range that show almost no impact on textures although provides a anti-aliasing quality of almost 8xFSAA.




Full size here




Full size here



Install the SMAA Cliff of Dover configuration and use :

-Download the attached file [SMAA]il-2 sturmovik cliffs of dover .zip, extract the files and move the files to the folder :

X:\Program Files (x86)\Steam\steamapps\common\il-2 sturmovik cliffs of dover

-To take screenshot press F12, the screenshots will be located in the same folder of the injector files.

-To switch on/off SMAA press Pause key.



Update 6/1/2012 :

I made a more balanced configuration with four selectable levels, Low-Medium-High and Ultra, The four levels use a high quality AA and Predication, offering in this way a better quality, less texture damaging and performance than the game´s AA, FXAA and MLAA solutions.

This levels don´t work as the usual anti-aliasing (FSAA), while the usual AA vary the quality of the anti-aliasing the difference between this four levels are the amount of aliasing detected, meaning that you will still have high quality anti-aliasing in the detected aliasing.

From Low to High you can increase the amount of aliasing detected, being High the standard balance Performance/Quality, Ultra is a special configuration.


SMAA_PRESET_CLOD_LOW :

This level is recommended for competitive online play, if you don't mind see a few jaggies because your priority is the target location then try this.

This configuration is fast, it is really fast, it will not blurry distant objects but you will still have high quality anti-aliasing in the cockpit view and external views.


SMAA_PRESET_CLOD_MEDIUM :

This level is the balance between the performance of LOW and a more deep fix of aliasing in High.

It does a better work in the cockpit view and external views and you can still use this for a competitive online play, the balance is just in the line of the aircraft visibility.


SMAA_PRESET_CLOD_HIGH :

This level offers quality, without lose performance and texture´s quality, through a standard use of Predication.


SMAA_PRESET_CLOD_ULTRA :

This configuration is what is close to the old file, it is a update version with a better balance in performance and quality.

Its is more a experiment than otherwise, it looks for the limit of the SMAA use in PC pushing the Predication tech to the limit while it is still crushing all the aliasing on the screen, even on distant objects, all done with a unrivaled preservation of textures.

It makes the game a bit different doing a pretty work on trees and distant mapping.

Can be a bit expensive.


Selecting levels :

The level selected by default is High, it have good balance performance/quality, but the most close configuration to the old file is Ultra so if you was using the old file then change it to Ultra.

To change between levels open the injector.ini file with notepad, look for the line preset = SMAA_PRESET_CLOD_HIGH and change it.

Save it and that´s it.
Attached Files
File Type: zip [SMAA]il-2 sturmovik cliffs of dover.zip (134.2 KB, 1160 views)

Last edited by Buchon; 06-02-2012 at 05:18 PM.
Reply With Quote
  #2  
Old 04-15-2012, 04:07 PM
ACE-OF-ACES's Avatar
ACE-OF-ACES ACE-OF-ACES is offline
Approved Member
 
Join Date: May 2010
Location: NM
Posts: 2,248
Default

Thanks for the info B!

I took the liberty awhile back and combined most if not all of the current injector utils into one package (zip).. And also included a version of JSGME to make it quick to install and uninstall the different utils.. Below is the link

JSGME FXAA and SMAA utils

What with the new NVIDIA drivers, this may be a mute point, but for those that like to tweak things they may find they like these utils better
__________________
Theres a reason for instrumenting a plane for test..
That being a pilots's 'perception' of what is going on can be very different from what is 'actually' going on.

Last edited by ACE-OF-ACES; 04-15-2012 at 04:13 PM.
Reply With Quote
  #3  
Old 04-17-2012, 09:31 AM
Buchon Buchon is offline
Approved Member
 
Join Date: Apr 2011
Posts: 437
Default

I'm fine-tuning predicated thresholding to the limit now, I have now a configuration with less blurring that makes the game transparent like a glass while improves the performance.

That improvement let me use a better diagonal anti-aliasing search that is upping the quality level.

Ill wait for the beta patch to release this configuration, to be sure there no problems and make FPS´s comparative screenshots where see the performance hit of SMAA, while I´ll test what I have now looking for some improvements.

Stay tuned

Last edited by Buchon; 04-17-2012 at 01:10 PM.
Reply With Quote
  #4  
Old 05-21-2012, 01:14 PM
pstyle pstyle is offline
Approved Member
 
Join Date: Mar 2011
Posts: 328
Default

In order to effectively run these FXAA/ SMAA profiels, do you need to disable AA in the game AND in the Nvidia profile for the game?

If I have say, 2x AA in game and I have the SMAA installed, which one will be running?
Reply With Quote
  #5  
Old 05-26-2012, 05:23 AM
Buchon Buchon is offline
Approved Member
 
Join Date: Apr 2011
Posts: 437
Default

Quote:
Originally Posted by pstyle View Post
In order to effectively run these FXAA/ SMAA profiels, do you need to disable AA in the game AND in the Nvidia profile for the game?

If I have say, 2x AA in game and I have the SMAA installed, which one will be running?
Ohh ... sry for the delay in the response.

Although you can combine AA modes its not recommendable because it can overdone the textures.

So if you are using SMAA then disable any other AA :

Set the Driver Panel AA option to "application controlled" and then set the game´s AA option to off.

Cheers
Reply With Quote
  #6  
Old 06-01-2012, 07:53 PM
Lolsav Lolsav is offline
Approved Member
 
Join Date: Nov 2008
Posts: 33
Default

I have been using this solution with a i7 2600k and hd6790 and the performance hit on default settings is around 4-6fps, wich is not much for me, since the usual performance over london is around 40-50fps.

Thank you very much for pointing me into this solution. CLOD has gotten prettier

BTW, before anyone ask, yes im using it online on ATAG server and i didnt had any problem so far.
Reply With Quote
  #7  
Old 10-21-2012, 07:31 PM
_YoYo_'s Avatar
_YoYo_ _YoYo_ is offline
Approved Member
 
Join Date: Feb 2010
Posts: 215
Default

I noticed than in the last official patch - 20362 this mod for AA works worse than before.

Any update?
Pretty please.

__________________
webmaster of YoYosims, JG300 founder

www.yoyosims.pl

Win 7 64, i7 930@3.76, GA-EX58-UD3R, 8Gb Patriot Viper II, ATI 7970 3Gb, 5 x SSD, res.1920x1080 27'', X-Fi Extreme Music + 5.1, TrackIR 5, TH Warthog, Throtlle Quadrant CH, Saitek Combat Pedals, Go Flight GF-P8, Saitek: Pro Flight Radio Panel, Pro Flight Switch Panel, Pro Flight Multi Panel, Instrumantals Panels, iPad2 for maps [FSX, DCS Ka50, A-10C, TOH:Hinds, RoF, CoD]
Reply With Quote
  #8  
Old 10-28-2013, 06:12 PM
jamesdietz's Avatar
jamesdietz jamesdietz is offline
Approved Member
 
Join Date: Oct 2007
Location: Seattle,WashingtonUSA
Posts: 758
Default

Stupid question...I've searched but can't seem to find Injector.ini file- can you point out the way?
Reply With Quote
  #9  
Old 10-29-2013, 02:10 PM
Sabrefly Sabrefly is offline
Registered Member
 
Join Date: Oct 2010
Posts: 12
Default

Quote:
Originally Posted by jamesdietz View Post
Stupid question...I've searched but can't seem to find Injector.ini file- can you point out the way?
It's in Buchon's package linked above.


Sabrefly.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:35 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.