Anaglyph (3D): Difference between revisions

Jump to navigation Jump to search
m
→‎How to multiply your realism level by 10: Added screen height and width values, add screen size table
m (→‎How to multiply your realism level by 10: Added screen height and width values, add screen size table)
Line 24: Line 24:
# Now, you will create new environment variables, click "New" and type <tt>OSG_STEREO=ON</tt>, then again click "New". At this point you should be seeing "OSG_STEREO=ON" on environment list.
# Now, you will create new environment variables, click "New" and type <tt>OSG_STEREO=ON</tt>, then again click "New". At this point you should be seeing "OSG_STEREO=ON" on environment list.
#The commands (including the one we just created) that you have to pass to OSG consist of:
#The commands (including the one we just created) that you have to pass to OSG consist of:
#*<tt>OSG_STEREO=ON</tt>
#*<tt>OSG_STEREO=ON</tt>
#*<tt>OSG_STEREO_MODE=ANAGLYPHIC</tt>
#*<tt>OSG_STEREO_MODE=ANAGLYPHIC</tt>
#*<tt>OSG_SCREEN_DISTANCE=1</tt>
#*<tt>OSG_SCREEN_DISTANCE=1</tt>
#*<tt>OSG_EYE_SEPARATION=0.025</tt>
#*<tt>OSG_EYE_SEPARATION=0.025</tt>
#*<tt>OSG_SCREEN_HEIGHT=0.19</tt>
#*<tt>OSG_SCREEN_WIDTH=0.33</tt>


The result should be something like shown on the right.  
The result should be something like shown on the right.  
Line 59: Line 62:
   <string>ANAGLYPHIC</string>
   <string>ANAGLYPHIC</string>


Don't disturb anything else in there and save the file. Fire up Flightgear and be amazed.
Don't disturb anything else in there and save the file. Then log out and back in. Fire up Flightgear and be amazed.


If you don't see environment.plist, you'll need to create it. No problem, just open a new document in TextEdit, enter these lines, and save as environment.plist:
If you don't see environment.plist, you'll need to create it. No problem, just open a new document in TextEdit, enter these lines, and save as environment.plist:
Line 68: Line 71:
   <dict>
   <dict>
   <key>OSG_EYE_SEPARATION</key>
   <key>OSG_EYE_SEPARATION</key>
   <real>0.02500000037252903</real>
   <real>0.065</real>
   <key>OSG_SCREEN_DISTANCE</key>
   <key>OSG_SCREEN_DISTANCE</key>
   <real>0.5</real>
   <real>1</real>
   <key>OSG_STEREO</key>
   <key>OSG_STEREO</key>
   <string>ON</string>
   <string>ON</string>
Line 93: Line 96:
(Any practical application sample of Vertical Split?)
(Any practical application sample of Vertical Split?)


To understand the red-green images, one can carefully inspect especially the horizontally separated images. If you carefully look at [http://wiki.flightgear.org/index.php/File:Hor_Cockpit.jpg this] image, note how the runway markings are appearing in a different perspective in left and right images. This is an exact (but not working in this case) copy of [http://en.wikipedia.org/wiki/Stereoscopy "cross eyed 3D"] pictures.What OSG does when you tell to enable the Anaglyph instead of this horizontal stereo, it applies color filters that exactly (not at practice sometimes, within color bandwidth limits) matches with your green and red filters on your glasses. Then it overlaps these filtered images and displays as a single image. Then, your left eye, with a green filter, filters the green image and sees the reddish image and vice versa for the right eye. Thus, giving each eye what they should be seeing in a real cockpit is also assembled by our brain, and perceived as a 3D environment.
To understand the red-green images, one can carefully inspect especially the horizontally separated images. If you carefully look at [http://wiki.flightgear.org/index.php/File:Hor_Cockpit.jpg this] image, note how the runway markings are appearing in a different perspective in left and right images. This is an exact (but not working in this case) copy of [http://en.wikipedia.org/wiki/Stereoscopy "cross eyed 3D"] pictures.What OSG does when you tell to enable the Anaglyph instead of this horizontal stereo, it applies color filters that exactly (not at practice sometimes, within color bandwidth limits) matches with your green and red filters on your glasses. Then it overlaps these filtered images and displays as a single image. Then, your left eye, with a green filter, filters the green image and sees the reddish image and vice versa for the right eye. Thus, giving each eye what they should be seeing in a real cockpit is also assembled by our brain, and perceived as a 3D environment. A small reminder about the Quad Buffered Stereo. It should only be enabled when you have a proper hardware, such as liquid crystal shutter glasses. The author attempted enabling this command on a laptop, resulting in bunch of error log in FlightGear console window and application hang.


'''OSG_SCREEN_DISTANCE=0.95:''' is the "distance" to your very own screen in metrics. For a good practice, you'd better measure this distance to your screen and not to make it 0.2 meters or 14.3 meters , since the first one is dangerous to your health and latter one to your flight profile. For multiple display, the measurements (should?) be from your viewpoint to the monitor surface. Contributes to the feeling of the depth on your screen.
'''OSG_SCREEN_DISTANCE=0.95:''' is the "distance" to your very own screen in metrics. For a good practice, you'd better measure this distance to your screen and not to make it 0.2 meters or 14.3 meters , since the first one is dangerous to your health and latter one to your flight profile. For multiple display, the measurements (should?) be from your viewpoint to the monitor surface. Contributes to the feeling of the depth on your screen.


'''OSG_EYE_SEPARATION=0.06:''' Eye seperation...Funny but is the actual distance between two pupils of your eyes. Measure but don't pop them out for a precision measure with a caliper. Makes significant contributions to the realism of the simulator. Generally 5 to 7 cm (0.05 to 0.07 meters). For imperial units convert 1 inch=25.4mm, 1 meter=3.280 ft.
'''OSG_EYE_SEPARATION=0.06:''' Eye seperation...Funny but is the actual distance between two pupils of your eyes. Measure but don't pop them out for a precision measure with a caliper. Makes significant contributions to the realism of the simulator. Generally 5 to 7 cm (0.05 to 0.07 meters). For imperial units convert 1 inch=25.4mm, 1 meter=3.280 ft.
'''OSG_SCREEN_HEIGHT=0.19:''' Is another basic measure. You can omit this and OSG will assign a default value, but of course, every monitor might be slightly different then the rest. This is the actual height of the [http://en.wikipedia.org/wiki/Viewable_image_size visible image size] on your screen.
'''OSG_SCREEN_WIDTH=0.33:''' Similar to the height. If you are really lazy to measure your screen dimensions or stuck in the middle of a desert with a laptop and internet connection, but no ruler and you don't have any idea of your handspan, here's another unlimited service from FlightGear!
{| border="1" cellpadding="5" cellspacing="0" align="center"
|+Diagonal size in inches and corresponding Width and Height for different aspect ratios.
|-
!colspan="2"|Diagonal
!colspan="2"|4:3
!colspan="2"|16:9
|-
| (in)||(cm)||w (cm)||h (cm)||w (cm)||h (cm)
|-
| 7||18||14||11||15||9
|-
| 10||25||20||15||22||12
|-
| 11||28||22||17||24||14
|-
| 14||36||28||21||31||17
|-
| 15||38||30||23||33||19
|-
| 17||43||35||26||38||21
|-
| 19||48||39||29||42||24
|-
| 20||51||41||30||44||25
|-
| 21||53||43||32||46||26
|-
| 22||56||45||34||49||27
|-
| 23||58||47||35||51||29
|-
| 24||61||49||37||53||30
|-
| 25||64||51||38||55||31
|}


==Links==
==Links==
23

edits

Navigation menu