Presentation on theme: "Seeing 3D from 2D Images. How to make a 2D image appear as 3D! ► Output and input is typically 2D Images ► Yet we want to show a 3D world! ► How can we."— Presentation transcript:
How to make a 2D image appear as 3D! ► Output and input is typically 2D Images ► Yet we want to show a 3D world! ► How can we do this? We can include ‘cues’ in the image that give our brain 3D information about the scene These cues are visual depth cues
Visual Depth Cues ► Cues about the 3 rd dimension – total of 10 ► Monoscopic Depth Cues (single 2D image)  ► Stereoscopic Depth Cues (two 2D images)  ► Motion Depth Cues (series of 2D images)  ► Physiological Depth Cues (body cues)  Hold a finger up
Monoscopic Depth Cues ► Interposition An occluding object is closer ► Shading Shape and shadows ► Size The larger object is closer ► Linear Perspective Parallel lines converge at a single point Higher the object is (vertically), the further it is ► Surface Texture Gradient More detail for closer objects ► Atmospheric effects Further away objects are blurrier and dimmer ► Images from http://ccrs.nrcan.gc.ca/resource/tutor/stereo/chap2/chapter2_5_e.php
Monoscopic Depth Cues ► Interposition An object that occludes another is closer ► Shading Shape info. Shadows are included here ► Size Usually, the larger object is closer ► Linear Perspective parallel lines converge at a single point ► Surface Texture Gradient more detail for closer objects ► Height in the visual field Higher the object is (vertically), the further it is ► Atmospheric effects further away objects are blurrier ► Brightness further away objects are dimmer
Stereoscopic Display Issues ► Stereopsis ► Stereoscopic Display Technology ► Computing Stereoscopic Images ► Stereoscopic Display and HTDs. ► Works for objects < 5m. Why?
Stereopsis The result of the two slightly different views of the world that our laterally-displaced eyes receive.
Retinal Disparity If both eyes are fixated on a point, f 1, in space: Image of f 1 is focused at corresponding points in the center of the fovea of each eye. f 2, would be imaged at points in each eye that may at different distances from the fovea. This difference in distance is the retinal disparity.
Retinal Disparity ► If an object is farther than the fixation point, the retinal disparity will be: Positive value Uncrossed disparity Eyes must uncross to fixate the farther object. ► If an object is closer than the fixation point, the retinal disparity will be: Negative Crossed disparity Eyes must cross to fixate the closer object. ► An object located at the fixation point or whose image falls on corresponding points in the two retinae has: Zero disparity (in focus) ► Question: What does this mean for rendering systems? f1 f2 Left EyeRight Eye Retinal disparity =
Convergence Angles i f2 f1 D1 D2 a b c d 11 +a+c+b+d = 180 +c+d = 180 - = a+(-b) = 1+ 2 = Retinal Disparity 22
Miscellaneous Eye Facts ► Stereoacuity - the smallest depth that can be detected based on retinal disparity. ► Visual Direction - Perceived spatial location of an object relative to an observer.
Horopters ► Map out what points would appear at the same retinal disparity. ► Horopter - the locus of points in space that fall on corresponding points in the two retinae when the two eyes binocularly fixate on a given point in space (zero disparity). ► Points on the horopter appear at the same depth as the fixation point. (can’t use stereopsis. ► What is the shape of a horopter? Vieth-Mueller Circle f1 f2
Stereoscopic Display ► Stereoscopic images are easy to do badly, hard to do well, and impossible to do correctly.
Stereoscopic Displays ► Stereoscopic display systems presents each eye with a slightly different view of a scene. Time-parallel – 2 images same time Time-multiplexed – 2 images one right after another
Time Parallel Stereoscopic Display Two Screens ► Each eye sees a different screen ► Optical system directs correct view ► HMD stereo Single Screen ► Two different images projected ► Images are polarized at right angles ► User wears polarized glasses
Passive Polarized Projection ► Linear Polarization Ghosting increases when you tilt head Reduces brightness of image by about ½ Potential Problems with Multiple Screens ► Circular Polarization Reduces ghosting Reduces brightness Reduces crispness
Problem with Linear Polarization ► With linear polarization, the separation of the left and right eye images is dependent on the orientation of the glasses with respect to the projected image. ► The floor image cannot be aligned with both the side screens and the front screens at the same time.
Time Multiplexed Display ► Left and right-eye views of an image are computed ► Alternately displayed on the screen ► A shuttering system occludes the right eye when the left-eye image is being displayed
Screen Parallax P left – Point P projected screen location as seen by left eye P right – Point P projected screen location as seen by right eye Screen parallax - distance between P left and P right P Left eye position Right eye position P left P right P left P Display Screen Object with positive parallax Object with negative parallax
Screen Parallax (cont.) p = i(D-d)/D where p is the amount of screen parallax for a point, f1, when projected onto a plane a distance d from the plane containing two eyepoints. i is the interocular distance between eyepoints and D is the distance from f1 to the nearest point on the plane containing the two eyepoints d is the distance from the eyepoint to the nearest point on the screen
How to create correct left- and right-eye views ► What do you need to specify for most rendering engines? Eyepoint Look-at Point Field-of-View or location of Projection Plane View Up Direction P Left eye position Right eye position P left P right P left P Display Screen Object with positive parallax Object with negative parallax
Basic Perspective Projection Set Up from Viewing Paramenters Y Z X Projection Plane is orthogonal to one of the major axes (usually Z). That axis is along the vector defined by the eyepoint and the look-at point.
What doesn’t work Each view has a different projection plane Each view will be presented (usually) on the same plane
Setting Up Projection Geometry Look at point Eye Locations Look at points Eye Locations No Yes
Visual Angle Subtended Screen parallax is measured in terms of visual angle. This is a screen independent measure. Studies have shown that the maximum angle that a non-trained person can usually fuse into a 3D image is about 1.6 degrees. This is about 1/2 the maximum amount of retinal disparity you would get for a real scene.
Interocular Dependance F Modeled Point Perceived Point Projection Plane True Eyes Modeled Eyes
Obvious Things to Do ► Head tracking ► Measure User’s Interocular Distance
Another Problem ► Many people can not fuse stereoscopic images if you compute the images with proper eye separation! ► Rule of Thumb: Compute with about ½ the real eye separation. ► Works fine with HMDs but causes image stability problems with HTDs (why?)
Two View Points with Head-Tracking Projection Plane Modeled Point Perceived Points Modeled Eyes True Eyes
Ghosting ► Affected by the amount of light transmitted by the LC shutter in its off state. ► Phosphor persistence ► Vertical screen position of the image.
Time-parallel stereoscopic images ► Image quality may also be affected by Right and left-eye images do not match in color, size, vertical alignment. Distortion caused by the optical system Resolution HMDs interocular settings Computational model does not match viewing geometry.
Motion Depth Cues ► Parallax created by relative head position and object being viewed. ► Objects nearer to the eye move a greater distance ► (Play pulfrich video without sunglasses)
Physiological Depth Cues ► Accommodation – focusing adjustment made by the eye to change the shape of the lens. (up to 3 m) ► Convergence – movement of the eyes to bring in the an object into the same location on the retina of each eye.
Summary ► Monoscopic – Interposition is strongest. ► Stereopsis is very strong. ► Relative Motion is also very strong (or stronger). ► Physiological is weakest (we don’t even use them in VR!) ► Add as needed ex. shadows and cartoons
Pulfrich Effect ► Neat trick ► Different levels of illumination require additional time (your frame rates differ base of amount of light) ► What if we darken one image, and brighten another? ► http://dogfeathers.com/java/pulfrich.html http://dogfeathers.com/java/pulfrich.html ► www.cise.ufl.edu/~lok/multimedia/videos/p ulfrich.avi