Anaglyph (3D): Difference between revisions

Jump to navigation Jump to search
m
Fix index.
m (Fix index.)
Line 5: Line 5:


== Anaglyph, that weird looking glasses... ==
== Anaglyph, that weird looking glasses... ==
[[File:Anaglyph-glasses.jpg|thumb|Red-Cyan pair of 3D glasses.]]
As you might know or not, FlightGear migrated graphics functions from [[PLIB]] to [[OSG]]. [[FlightGear 1.9.0]], released Decemeber 22, 2008, marked the release of the OSG version of FlightGear. As of August 2010, most recent stable version of FlightGear uses OSG. For those who are unaware of OSG, it is an open source high performance 3D graphics toolkit.
As you might know or not, FlightGear migrated graphics functions from [[PLIB]] to [[OSG]]. [[FlightGear 1.9.0]], released Decemeber 22, 2008, marked the release of the OSG version of FlightGear. As of August 2010, most recent stable version of FlightGear uses OSG. For those who are unaware of OSG, it is an open source high performance 3D graphics toolkit.


Line 10: Line 11:


== How to multiply your realism level by 10 ==
== How to multiply your realism level by 10 ==
[[File:Anaglyph-glasses.jpg|thumb|Red-Cyan pair of 3D glasses.]]
For this experience, you will need  
For this experience, you will need  
# A working copy of FlightGear, of course.
# A working copy of FlightGear, of course.
# A pair of Red-Green or Red-Cyan pair of 3D glasses. You might have one at home or if you are a DIY type, check [http://stereo.gsfc.nasa.gov/classroom/glasses.shtml NASA way of doing glasses] or [http://en.wikipedia.org/wiki/Liquid_crystal_shutter_glasses Liquid Crystal Shutter Glasses] and probably suitable hardware (anyone experienced with or owns one pair of this thing might help developing this page).
# A pair of Red-Green or Red-Cyan pair of 3D glasses. You might have one at home or if you are a DIY type, check [http://stereo.gsfc.nasa.gov/classroom/glasses.shtml NASA way of doing glasses] or [http://en.wikipedia.org/wiki/Liquid_crystal_shutter_glasses Liquid Crystal Shutter Glasses] and probably suitable hardware (anyone experienced with or owns one pair of this thing might help developing this page).


[[File:Stereoscopic-view-options.jpg|thumb|right|Stereoscopic View Options]]
===Versions later than 2.0 ===
[[File:Stereoscopic-view-options.jpg|thumb|right|Stereoscopic View Options]]  
Versions later than 2.0 (including Git sources) have native support for setting the relevant properties at runtime from a dialog box at <tt>View > Stereoscopic View Options</tt>.


== ===Versions later than 2.0 === ==
=== Windows & Linux ===
(including GIT sources) have native support for setting the relevant properties at runtime from a dialog box at View->Stereoscopic View Options.
 
== === Windows & Linux === ==
  ( for versions later than 2.0 see above )
  ( for versions later than 2.0 see above )
* FlightGear launcher
====FlightGear launcher====
[[File:Anaglyph1.jpg|thumb|Accessing advanced options.]]
[[File:Anaglyph1.jpg|thumb|Accessing advanced options.]]
[[File:Anaglyph2.jpg|thumb|Final result in Environment settings.]]
[[File:Anaglyph2.jpg|thumb|Final result in Environment settings.]]
Line 42: Line 40:
After you entered the last value, click "OK" to quit from the Advanced Options window. Remove your pilot raybans, put your fancy 3D glasses and click "Run".
After you entered the last value, click "OK" to quit from the Advanced Options window. Remove your pilot raybans, put your fancy 3D glasses and click "Run".


 
====Command line====
* Command line
When launching FlightGear from the [[Command line options|Command line]], the environment variables should be set as follow, in the same Command Prompt window (same batch file if applicable) as the one used for FlightGear.
When launching FlightGear from the [[Command line options|Command line]], the environment variables should be set as follow, in the same Command Prompt window (same batch file if applicable) as the one used for FlightGear.


Line 53: Line 50:
   SET OSG_SCREEN_WIDTH=0.33
   SET OSG_SCREEN_WIDTH=0.33


 
=== Mac OS X ===
 
== === Mac OS X === ==
 
[[File:Anaglyphic2.jpg|thumb|Red-Green Anaglyph OSG Render in action]]
[[File:Anaglyphic2.jpg|thumb|Red-Green Anaglyph OSG Render in action]]
Thanks to [http://flightgear.org/forums/memberlist.php?mode=viewprofile&u=1650 someguy] (not some guy, a FlightGear forum member!) for providing Mac OS X instructions. And here is the related [http://www.flightgear.org/forums/viewtopic.php?f=19&t=9222&p=93141#p93141 post]with more screenshots.
Thanks to [http://flightgear.org/forums/memberlist.php?mode=viewprofile&u=1650 someguy] (not some guy, a FlightGear forum member!) for providing Mac OS X instructions. And here is the related [http://www.flightgear.org/forums/viewtopic.php?f=19&t=9222&p=93141#p93141 post]with more screenshots.


# In the Finder, select the menu item Go > Go to Folder... and enter "~/.MacOSX" without the quotes. You will go to a hidden folder in your user directory.
# In the Finder, select the menu item Go > Go to Folder... and enter "~/.MacOSX" without the quotes. You will go to a hidden folder in your user directory.
# You should see a file named "environment.plist". Open it in TextEdit.
# You should see a file named "environment.plist". Open it in TextEdit.
# Between the <dict> and </dict> tags, add the following:
# Between the <dict> and </dict> tags, add the following:


   <key>OSG_EYE_SEPARATION</key>
   <key>OSG_EYE_SEPARATION</key>
Line 156: Line 147:
|}
|}


== Eye Separation and Horizontal Distance ==
=== Eye Separation and Horizontal Distance ===


The very final part of the OSG stereo view options consists of few variables that accommodate the device specific issues and finally allows you to set straight look or cross-eyed look (not advised) options.  
The very final part of the OSG stereo view options consists of few variables that accommodate the device specific issues and finally allows you to set straight look or cross-eyed look (not advised) options.  
Line 167: Line 158:
'''OSG_SPLIT_STEREO_VERTICAL_EYE_MAPPING''' works the same way as horizontal mapping, displaying upper and lower images respectively. The string variables are LEFT_EYE_TOP_VIEWPORT and LEFT_EYE_BOTTOM_VIEWPORT, which are quiet self-explanatory.
'''OSG_SPLIT_STEREO_VERTICAL_EYE_MAPPING''' works the same way as horizontal mapping, displaying upper and lower images respectively. The string variables are LEFT_EYE_TOP_VIEWPORT and LEFT_EYE_BOTTOM_VIEWPORT, which are quiet self-explanatory.


== Links ==
== External links ==
* [http://www.openscenegraph.org OSG Website]
* [http://www.openscenegraph.org OSG Website]
* [http://www.openscenegraph.org/projects/osg/wiki/Support/UserGuides/StereoSettings Stereo Settings]
* [http://www.openscenegraph.org/projects/osg/wiki/Support/UserGuides/StereoSettings Stereo Settings]
* [http://en.wikipedia.org/wiki/Anaglyph_image Anaglyph Image on Wikipedia]
* [http://en.wikipedia.org/wiki/Anaglyph_image Anaglyph Image on Wikipedia]
* [http://en.wikipedia.org/wiki/Retinal_rivalry An important warning about using highly filtering glasses]
* [http://en.wikipedia.org/wiki/Retinal_rivalry An important warning about using highly filtering glasses]

Navigation menu