Anti-aliasing: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
m (Categorize)
m (German translation link)
(12 intermediate revisions by 8 users not shown)
Line 1: Line 1:
By default, [[FlightGear]] will not use [http://en.wikipedia.org/wiki/Anti-aliasing anti-aliasing] during the simulation. This results in incorrect rendering of sharp straight lines and very small objects. In order to correct this, you can apply the anti-aliasing function.
By default, [[FlightGear]] will not use '''{{Wikipedia|anti-aliasing|noicon=1}}''' during the simulation. This results in incorrect rendering of sharp straight lines and very small objects. In order to correct this, you can apply the anti-aliasing function; however, this will slow down rendering and is not guaranteed to work on all graphics cards.
== Example ==
{|
! Anti-aliasing disabled !! Anti-aliasing enabled
|-
| [[File:No-anti-aliasing.png|x300px|Anti-aliasing disabled]]
| [[File:With-anti-aliasing.png|x300px|Anti-aliasing enabled]]
|}


= Example =
== How to set anti-aliasing ==
Left: Anti-aliasing disabled
=== Command line ===
When starting FlightGear via the [[command line]], add the following two arguments:
--prop:/sim/rendering/multi-sample-buffers=true
--prop:/sim/rendering/multi-samples=4


Right: Anti-aliasing enabled
=== FGRun ===
[[File:Fgrun-anti-aliasing.png|thumb|Setting anti-aliasing in FGrun]]
When you use [[FGRun]], add these commands under <tt>Advanced > Properties</tt>.


[[File:No-anti-aliasing.png|Anti-aliasing disabled]] [[File:With-anti-aliasing.png|Anti-aliasing enabled]]
=== Qt Launcher ===
If you are using the [[Integrated Qt5 Launcher]], then you can easily enable anti-aliasing by toggling the "Enable Multi-sample anti-aliasing" option from the "Settings" tab.


= How to set anti-aliasing =
=== Rembrandt ===
== Command line ==
Anti-aliasing does not work with [[Rembrandt]] enabled due to GLSL limitations, but some graphics cards have hardware anti-aliasing which may work.
When starting FlightGear using the command line, add the following two commands:


--prop:/sim/rendering/multi-sample-buffers=true
== Options ==
If preferred, you can choose another value for the number of samples. The number has to be greater than 1. The greater the number of samples, the slower rendering will be.


--prop:/sim/rendering/multi-samples=4
''Thanks to '''[[User:Fredb|fredb]]''' for publishing this information on the [http://forum.flightgear.org/viewtopic.php?f=5&t=10007#p101676 FlightGear forum].''
== FGrun ==
[[File:Fgrun-anti-aliasing.png|200px|thumb|right|Setting anti-aliasing in FGrun]] When you use FGrun, add these commands under ''Advanced... > Properties''.


= Options =
[[Category:FlightGear feature]]
If preferred, you can choose another value for the number of samples. The number has to be greater than 1. The greater the number of samples, the greater will be a possible drop in framerate (frames per second).


Credits: Thanks to ''fredb'' for publishing this information in the [http://www.flightgear.org/forums/viewtopic.php?f=5&t=10007 FlightGear forum].
[[de:Antialiasing]]
 
[[fr:Anti-aliasing]]
[[Category:FlightGear feature]]

Revision as of 16:57, 30 June 2016

By default, FlightGear will not use anti-aliasing during the simulation. This results in incorrect rendering of sharp straight lines and very small objects. In order to correct this, you can apply the anti-aliasing function; however, this will slow down rendering and is not guaranteed to work on all graphics cards.

Example

Anti-aliasing disabled Anti-aliasing enabled
Anti-aliasing disabled Anti-aliasing enabled

How to set anti-aliasing

Command line

When starting FlightGear via the command line, add the following two arguments:

--prop:/sim/rendering/multi-sample-buffers=true
--prop:/sim/rendering/multi-samples=4

FGRun

Setting anti-aliasing in FGrun

When you use FGRun, add these commands under Advanced > Properties.

Qt Launcher

If you are using the Integrated Qt5 Launcher, then you can easily enable anti-aliasing by toggling the "Enable Multi-sample anti-aliasing" option from the "Settings" tab.

Rembrandt

Anti-aliasing does not work with Rembrandt enabled due to GLSL limitations, but some graphics cards have hardware anti-aliasing which may work.

Options

If preferred, you can choose another value for the number of samples. The number has to be greater than 1. The greater the number of samples, the slower rendering will be.

Thanks to fredb for publishing this information on the FlightGear forum.