In the post Flightgear with quad buffered stereo I have written about how to get quad buffered stereo to work with the famous flight simulator FlightGear. Recently FlightGear-2.4.0 has been released. The problem with quad buffered stereo still persists with FlightGear-2.4.0 .
One expects to enable stereoscopic mode in FlightGear starting it with the following line:
export OSG_STEREO_MODE=QUAD_BUFFER;export OSG_STEREO=ON; fgfs
When starting flightgear this way, one gets the following console output and no stereoscopic view:
Warning: detected OpenGL error ‘invalid operation’ after RenderBin::draw(,)
Getting FlightGear to work with quad-buffered stereo
The reason for the above error message and the resulting broken stereo mode is, that the stereo context does not get initialized properly. The details are described here: Flightgear with quad buffered stereo. However, the good news is, that the patch I proposed in the mentioned post, still works with FlightGear-2.4.0. You can download the patch from here: flightgear-2.0.0-stereoscopic.patch (551)
As usual for quad buffered stereo, you have to use a professional graphics board that supports quad buffered stereo, like a NVIDIA Quadro FX or a Ati FireGL and proper display hardware, like shutter glasses, a HMD or a stereoscopic projection system, to benefit from it. To use the quad buffered stereo mode start flightgear with the environment variables mentioned above. Afterwards you probably have to enable quad buffered stereo mode by selecting the Stereoscopic View Options Item in the the View menu.
With the previous version, when using the quad buffered stereo mode in flightgear, there occurred some graphics errors. Some cockpit controls and other scene details contained yellow lines, like a wireframe, which were not there when starting FlightGear in “normal” display mode. These problems seem to be gone with Flightgear-2.4.0. At least I did not notice them anymore.
The Gentoo way
For gentoo users I have created an overlay. Like the previous one it contains patches and modified ebuilds for flightgear with working quad buffer support. You may get the overlay from here: flightgear-2.4.0 overlay (191) Download the overlay and extract it in /usr/local/portage. Be sure to include the following line in your /etc/make.conf:
Then emerge flightgear and enjoy it in three dimensions.