Anti-aliasing: Difference between revisions
m (→FGrun) |
m (Robot: Cosmetic changes) |
||
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 pbjects. 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 pbjects. In order to correct this, you can apply the anti-aliasing function. | ||
=Example= | = Example = | ||
Left: Anti-aliasing disabled | Left: Anti-aliasing disabled | ||
Line 8: | Line 8: | ||
[[File:No-anti-aliasing.png|Anti-aliasing disabled]] [[File:With-anti-aliasing.png|Anti-aliasing enabled]] | [[File:No-anti-aliasing.png|Anti-aliasing disabled]] [[File:With-anti-aliasing.png|Anti-aliasing enabled]] | ||
=How to set anti-aliasing= | = How to set anti-aliasing = | ||
==Command line== | == Command line == | ||
When starting FlightGear using the command line, add the following two commands: | When starting FlightGear using the command line, add the following two commands: | ||
Line 15: | Line 15: | ||
--prop:/sim/rendering/multi-samples=4 | --prop:/sim/rendering/multi-samples=4 | ||
==FGrun== | == FGrun == | ||
[[File:Fgrun-anti-aliasing.png|200px|thumb|right|Setting anti-aliasing in FGrun]] When you use FGrun, add these commands under ''Advanced... > Properties''. | [[File:Fgrun-anti-aliasing.png|200px|thumb|right|Setting anti-aliasing in FGrun]] When you use FGrun, add these commands under ''Advanced... > Properties''. | ||
=Options= | = 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). | ||
Credits: Thanks to ''fredb'' for publishing this information in the [http://www.flightgear.org/forums/viewtopic.php?f=5&t=10007 FlightGear forum]. | Credits: Thanks to ''fredb'' for publishing this information in the [http://www.flightgear.org/forums/viewtopic.php?f=5&t=10007 FlightGear forum]. |
Revision as of 16:46, 8 March 2011
By default, FlightGear will not use anti-aliasing during the simulation. This results in incorrect rendering of sharp straight lines and very small pbjects. In order to correct this, you can apply the anti-aliasing function.
Example
Left: Anti-aliasing disabled
Right: Anti-aliasing enabled
How to set anti-aliasing
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
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.