Anti-aliasing: Difference between revisions

Jump to navigation Jump to search
Small cleanup, use gallery
No edit summary
(Small cleanup, use gallery)
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 [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.


= Example =
== Example ==
Left: Anti-aliasing disabled
{{Gallery
|height = 300
|width = 300
|No-anti-aliasing.png|Anti-aliasing disabled
|With-anti-aliasing.png|Anti-aliasing enabled
}}


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


[[File:No-anti-aliasing.png|Anti-aliasing disabled]] [[File:With-anti-aliasing.png|Anti-aliasing enabled]]
=== FGRun ===
[[File:Fgrun-anti-aliasing.png|200px|thumb|right|Setting anti-aliasing in FGrun]]
When you use [[FGRun]], add these commands under ''Advanced... > Properties''.


= How to set anti-aliasing =
== Options ==
== Command line ==
When starting FlightGear using the command line, add the following two commands:
 
--prop:/sim/rendering/multi-sample-buffers=true
 
--prop:/sim/rendering/multi-samples=4
== 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 =
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).
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).


Navigation menu