Anti-aliasing: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
(Small cleanup, use gallery)
Line 12: Line 12:
=== Command line ===
=== Command line ===
When starting FlightGear via the [[command line]], add the following two commands:
When starting FlightGear via the [[command line]], add the following two commands:
  --prop:/sim/rendering/multi-sample-buffers=true
  --prop:/sim/rendering/multi-sample-buffers=1
  --prop:/sim/rendering/multi-samples=4
  --prop:/sim/rendering/multi-samples=4



Revision as of 08:33, 30 July 2012

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.

Example

Anti-aliasing disabled  
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=1
--prop:/sim/rendering/multi-samples=4

FGRun

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).

Credits: Thanks to fredb for publishing this information in the FlightGear forum.