Free FlightGear flight simulator
Above the Clouds
The free flight simulator FlightGear has improved in terms of stability and realism in recent years and offers joystick pilots massive potential for fun.
The FlightGear flight simulator [1] is one of the veterans of the Linux gaming world. More than 20 years after its initial release, the program has matured into complex simulation software that brings many aspects of flying to the screen in a realistic way. For this article, we used FlightGear v2018.3.
The images in this article were taken with the best possible graphic settings (see box, "Graphics Settings"). At a screen resolution of 2540x1440 pixels, this only utilized about half of an AMD RX 580 card's capacity (Figure 1). Even with slower cards, FlightGear remains playable, because after switching off rendering options like 3D clouds the simulator's resource requirements drop significantly.
Graphics Settings
In the graphics settings below View | Rendering Options (Figure 2), you can adapt the graphics to suit your graphics adapter's performance. Use point sprites for runway lights is enabled in General, which means you have three-dimensional rendered runway lights. Throttle frame rate restricts the frame rate to a maximum of 50 frames per second, helping the game to run more evenly. Compensate field of view for wider screens is another helpful setting.
In the Scenery Layers section you can decide whether FlightGear shows you Pylons and Power lines and objects such as barns (Scenery Objects), based on a database, and also adds Random Scenery Objects to the landscape. The dialog warns you about the memory consumption, which can climb to 8GB. You can also choose the vegetation density, and decide whether or not trees and bushes should throw shadows. The Region-specific option for Terrain Textures colors the terrain and vegetation to match the region, for example, the Blue Ridge Mountains actually look blue instead of green.
The Shader Effects have a noticeable influence on the frame rate. You would normally see a simple slide control here, but if the Custom Settings option is enabled, then the Shader options button opens a dialog for detailed settings (Figure 3) that govern the rendering quality of scenery display. Experience shows that the 3D clouds option consumes the most graphics capacity. Without 3D clouds, the FlightGear world appears far less vivid, but it is often sufficient to just reduce the density of the clouds or the distance at which they become visible.
Atmospheric Light Scattering computes the light color on the basis of the light scatter in the atmosphere. Without it, the FlightGear world is far paler at typical altitudes.
Artificial World
FlightGear features numerous aircraft types whose cockpits and exterior views the program renders as 3D models. This means that the aircraft appear realistic from different angles and in different lighting conditions. A huge amount of work was also put into representing the landscape. It is based on a model of the entire Earth's surface that processes data from the space shuttle program, the global coastline database GSHHG [2], and data from the European Environment Agency and OpenStreetMap. In addition, around 180 contributors have designed local features, such as airports or cities.
FlightGear renders landscapes around the world with natural-looking vegetation, including impressive mountain scenes from the North American Blue Ridge Mountains to the Himalayas (Figure 4). Compared to the brilliant nature scenes, low overflights over cities are somewhat disappointing. For example, in Nuremberg, Germany, the castle looks a bit different in reality than on the screen (Figure 5), which is only to be expected. While landscapes automatically generated from elevation data look quite realistic, the scenery developers have to design recognizable buildings by hand. From a normal overflight altitude of about 6,000 to 7,000 feet, the city views generated from OpenStreetMap data look at least halfway realistic.
There are also differences in the degree of realism in the interiors of the aircraft models: The cockpit surfaces of the Cessna 172P almost look as if you could touch them. The soft reflections in the instrument glasses may impair readability, but this is no different in reality. The cockpits of the Boeing 777-300 (Figure 6) and MDD F-15C do not look quite as fresh, although they are still above-average FlightGear models that make flying fun.
Flight Machine
FlightGear not only simulates the landscape and the appearance of the aircraft, but also many technical conditions (Figure 7). Navigation instruments like the VHF Omnidirectional Range (VOR) actually work. (This is a rotary radio beacon that emits angle information. In combination with a radio-based rangefinder, the aircraft position can be precisely determined.)You are confronted with a dreaded stall scenario, where the aircraft stalls after dropping below the minimum speed with the resulting need to permanently monitor the airspeed, just like a real pilot.
Time to launch the flight simulator and a Cessna 172P: This veteran aircraft has been one of the best maintained models in FlightGear from the outset. In recent versions, the developers have once again polished its cockpit. The single-engine high wing aircraft is not only relatively easy to fly in reality, but also in FlightGear. It is a good model with which to learn flying skills.
If you run FlightGear with the --launcher
parameter, a friendly dialog appears to let you select the aircraft, the starting airport, the weather, and other FlightGear settings (Figure 8). In the Aircraft section, click on the Cessna 172P Skyhawk (1982) that I mentioned earlier.
How about an afternoon flight over the beautiful scenery of the Blue Ridge Mountains in South Carolina? Enter ICAO Identifier 33A in the Location category and select the picturesque Fairview airfield. ICAO stands for The International Civil Aviation Organization, which – among other things – assigns globally unique codes to airports. In the next screen, select Runway 32. This runway points, as its name indicates, in the direction of 320 degrees (northwest) that is straight to the Blue Ridge Mountains.
You can choose the weather in FlightGear. We ordered a summer afternoon in the Environment section below Time & Date (Time of day: Afternoon, Season: Summer). In Weather, owners of newer computers can enable Advanced weather modeling. We disabled the Real-world weather option – it evaluates the weather data of a METAR report, a standardized weather report for airports. Instead we chose fair weather as the Weather scenario, to avoid cloud cover blocking our view of the landscape.
If you have an Internet connection with at least one megabit bandwidth, you can select the default Download scenery automatically [3] setting in the Settings section. In Multiplayer, you can also enable a connection to a FlightGear multiplayer server, which integrates other players' planes into your simulated world.
The simulator is normally launched in full screen mode (Start full screen). The Renderer I would recommend is Atmospheric Light Scattering. This method calculates the light scattering in the atmosphere, which makes the simulation look far more realistic for the large visibility ranges of high-altitude flights. Owners of more-or-less up-to-date graphics cards can treat themselves to Anti-Aliasing 4x, which completely irons out the ugly jagged diagonal lines that otherwise appear.
If you enter the --http=8080
option in Additional Settings, you can retrieve an OpenStreetMap-based moving map from the IP address of the FlightGear computer on port 8080 (http://<FlightGear-IP>:8080) via web browser (Figure 9). This lets you turn a tablet into a GPS device with a map display, like the one many amateur pilots take with them to facilitate navigation in their Cessnas.
Getting Airborne
Now press Fly! This launches the simulation, which will take a number of seconds. The first task is to start the aircraft's engine. Fortunately, a Cessna 172 is easy to start. First zoom out (Shift+X) until you can see the whole of the Cessna cockpit. Ctrl+X switches back to the default zoom level later on. Pressing Ctrl+C highlights all the mouse-controllable cockpit elements in yellow and also shows you the names of the instruments (Figure 10). Pressing the same shortcut again disables this help feature. Press Y to hide the yoke, which is just annoying in this view. You can press the same key again later, if so desired, to display it again.
Then click on the two red toggle switches bottom left (MASTER ) and additionally the shift lever right next to the ignition key (AVIONICS POWER). Then click six times on the Primer pull to the left below the red toggle switches to pump some fuel into the carburetor. Next, set the black throttle lever (THROT PUSH OPEN) bottom center to 25 percent. To do this, mouse over it and adjust the lever with the mouse wheel; a small pop-up shows you the percentage. Then push the adjacent red lever for MIX PULL LEAN all the way in (100 percent). Finally, press S for the starter for a few seconds to wake up the engine. In the menu with the aircraft name, there is usually an Autostart entry that handles all of these steps, but experienced pilots would never use it.
Theoretically, FlightGear can be controlled completely by keyboard, but serious flying is only possible with a joystick (see "Joystick" box). For control functions for which you cannot use the joystick buttons, there are also the FlightGear keyboard shortcuts, which you will find in the Help menu. An introduction to flying itself is given in the official FlightGear manual [4], chapter 8, A Basic Flight Simulator Tutorial.
All you have to do now is accelerate to take off. But will you find your way back to the airport of departure? Although our simple airfield does not have its own radio beacon for the approach to land, an antenna station nearby can be used to navigate to a position within sight of the runway. Equipment | Map lets you open the flight map, without which a pilot would never take off. But thanks to FlightGear's Map feature, you don't have to have it on paper. The shortcut for this is Ctrl+J, even if the Equipment menu tells you it is Ctrl+M.
If you check the Navaids (navigation aids) box on the left side of the map, then the SPA VOR in Spartanburg appears on the right side below the aircraft. If you also enable the Data option, then you will see its frequency 115.7 MHz on the map. F12 opens the radio settings, where you can enter this frequency in Selected for NAV1, the first navigation device. The SPA station will then turn light blue on the map. A light blue line also appears through the aircraft location, the line is known as the radial.
Now mouse over the dial of the NAV 1 display, and adjust it with the mouse wheel until the horizontal pointer moves to the center and the display TO appears to the right of it at the same time. The pointer may first move to the center in the case of an FR display ("from"). Then turn 180 degrees further, in our example up to 130 degrees.
A VOR always guides an aircraft along the set radial line, which now also runs through the current aircraft location on the map. To determine the position, combine the radial with the Distance Measuring Equipment (DME) display. This is a radio-based distance measuring device, often used in combination with a VOR (VOR/DME). In Fairview, the DME shows a distance of 12 miles to the Spartanburg station. VOR and DME together define a traceable position. If you center the needle of the VOR instrument at Radial 130 and move 12 miles away from SPA on Radial, you will fly over Fairview.
Now you can press Shift+B to release the parking brake, open up the throttle, and fly off to the northwest into the Blue Ridge Mountains.
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
New Linux Kernel Patch Allows Forcing a CPU Mitigation
Even when CPU mitigations can consume precious CPU cycles, it might not be a bad idea to allow users to enable them, even if your machine isn't vulnerable.
-
Red Hat Enterprise Linux 9.5 Released
Notify your friends, loved ones, and colleagues that the latest version of RHEL is available with plenty of enhancements.
-
Linux Sees Massive Performance Increase from a Single Line of Code
With one line of code, Intel was able to increase the performance of the Linux kernel by 4,000 percent.
-
Fedora KDE Approved as an Official Spin
If you prefer the Plasma desktop environment and the Fedora distribution, you're in luck because there's now an official spin that is listed on the same level as the Fedora Workstation edition.
-
New Steam Client Ups the Ante for Linux
The latest release from Steam has some pretty cool tricks up its sleeve.
-
Gnome OS Transitioning Toward a General-Purpose Distro
If you're looking for the perfectly vanilla take on the Gnome desktop, Gnome OS might be for you.
-
Fedora 41 Released with New Features
If you're a Fedora fan or just looking for a Linux distribution to help you migrate from Windows, Fedora 41 might be just the ticket.
-
AlmaLinux OS Kitten 10 Gives Power Users a Sneak Preview
If you're looking to kick the tires of AlmaLinux's upstream version, the developers have a purrfect solution.
-
Gnome 47.1 Released with a Few Fixes
The latest release of the Gnome desktop is all about fixing a few nagging issues and not about bringing new features into the mix.
-
System76 Unveils an Ampere-Powered Thelio Desktop
If you're looking for a new desktop system for developing autonomous driving and software-defined vehicle solutions. System76 has you covered.