Stereo Rendering - University of Cambridge · Stereo rendering 2 Rafał Mantiuk, Univ. of...

38
Rafał Mantiuk Dept. of Computer Science and Technology, University of Cambridge Stereo Rendering

Transcript of Stereo Rendering - University of Cambridge · Stereo rendering 2 Rafał Mantiuk, Univ. of...

Page 1: Stereo Rendering - University of Cambridge · Stereo rendering 2 Rafał Mantiuk, Univ. of Cambridge. Depth perception Stereoscopic depth cues: binocular disparity We see depth due

Rafał MantiukDept. of Computer Science and Technology, University of Cambridge

Stereo Rendering

Page 2: Stereo Rendering - University of Cambridge · Stereo rendering 2 Rafał Mantiuk, Univ. of Cambridge. Depth perception Stereoscopic depth cues: binocular disparity We see depth due

Overview

Depth perception

3D display technologies

Stereo rendering

Rafał Mantiuk, Univ. of Cambridge2

Page 3: Stereo Rendering - University of Cambridge · Stereo rendering 2 Rafał Mantiuk, Univ. of Cambridge. Depth perception Stereoscopic depth cues: binocular disparity We see depth due

Depth perception

Stereoscopic depth cues:

binocular disparity

We see depth due to depth cues.

The slides in this section are the courtesy of

Piotr Didyk (http://people.mpi-inf.mpg.de/~pdidyk/)

Page 4: Stereo Rendering - University of Cambridge · Stereo rendering 2 Rafał Mantiuk, Univ. of Cambridge. Depth perception Stereoscopic depth cues: binocular disparity We see depth due

Depth perception

Ocular depth cues:

accommodation, vergence

We see depth due to depth cues.

Vergence

Stereoscopic depth cues:

binocular disparity

Page 5: Stereo Rendering - University of Cambridge · Stereo rendering 2 Rafał Mantiuk, Univ. of Cambridge. Depth perception Stereoscopic depth cues: binocular disparity We see depth due

Depth perception

Pictorial depth cues:

occlusion, size, shadows…

We see depth due to depth cues.

Ocular depth cues:

accommodation, vergence

Stereoscopic depth cues:

binocular disparity

Page 6: Stereo Rendering - University of Cambridge · Stereo rendering 2 Rafał Mantiuk, Univ. of Cambridge. Depth perception Stereoscopic depth cues: binocular disparity We see depth due

Cues sensitivity

0.001

0.01

0.1

1.0

1.0 10 100 1000 10000

Dep

th c

on

trast

Depth [meters]

Personal

space

Action

spaceVista space

Occlusion

Relative size

Relative density

“Perceiving layout and knowing distances: The integration, relative potency,

and contextual use of different information about depth”

by Cutting and Vishton [1995]

Page 7: Stereo Rendering - University of Cambridge · Stereo rendering 2 Rafał Mantiuk, Univ. of Cambridge. Depth perception Stereoscopic depth cues: binocular disparity We see depth due

Depth perception

Challenge:

Consistency is

required! Pictorial depth cues:

occlusion, size, shadows…

We see depth due to depth cues.

Ocular depth cues:

accommodation, vergence

Stereoscopic depth cues:

binocular disparity

Page 8: Stereo Rendering - University of Cambridge · Stereo rendering 2 Rafał Mantiuk, Univ. of Cambridge. Depth perception Stereoscopic depth cues: binocular disparity We see depth due

Simple conflict example

• Size

• Shadows

• Perspective

• Occlusion

Present cues:

Page 9: Stereo Rendering - University of Cambridge · Stereo rendering 2 Rafał Mantiuk, Univ. of Cambridge. Depth perception Stereoscopic depth cues: binocular disparity We see depth due

Disparity & occlusion conflict

Objects in front

Page 10: Stereo Rendering - University of Cambridge · Stereo rendering 2 Rafał Mantiuk, Univ. of Cambridge. Depth perception Stereoscopic depth cues: binocular disparity We see depth due

Disparity & occlusion conflict

Disparity & occlusion

conflict

Page 11: Stereo Rendering - University of Cambridge · Stereo rendering 2 Rafał Mantiuk, Univ. of Cambridge. Depth perception Stereoscopic depth cues: binocular disparity We see depth due

Depth perception

Pictorial depth cues:

occlusion, size, shadows…

We see depth due to depth cues.

Ocular depth cues:

accommodation, vergence

Stereoscopic depth cues:

binocular disparity

Reproducible on a flat displays

Require 3D spaceWe cheat our Visual System!

Page 12: Stereo Rendering - University of Cambridge · Stereo rendering 2 Rafał Mantiuk, Univ. of Cambridge. Depth perception Stereoscopic depth cues: binocular disparity We see depth due

Cheating our HVS

Comfort zone

Screen

Object in left eye

Object in right eye

Object perceived in 3D

Pixel disparityVergence

DepthV

iew

ing

dis

co

mfo

rt

Accommodation(focal plane)

Page 13: Stereo Rendering - University of Cambridge · Stereo rendering 2 Rafał Mantiuk, Univ. of Cambridge. Depth perception Stereoscopic depth cues: binocular disparity We see depth due

Single Image Random Dot Stereograms

Fight the vergence vs. accommodation conflict to see the

hidden image

13

Page 14: Stereo Rendering - University of Cambridge · Stereo rendering 2 Rafał Mantiuk, Univ. of Cambridge. Depth perception Stereoscopic depth cues: binocular disparity We see depth due

Viewing discomfort

Page 15: Stereo Rendering - University of Cambridge · Stereo rendering 2 Rafał Mantiuk, Univ. of Cambridge. Depth perception Stereoscopic depth cues: binocular disparity We see depth due

Comfort zones

“Controlling Perceived Depth in Stereoscopic Images” by Jones et al. 2001

Comfort zone size depends on:

• Presented content

• Viewing condition

2 – 20 m0.3 – 0.5 m

Simple scene

70 cm

Page 16: Stereo Rendering - University of Cambridge · Stereo rendering 2 Rafał Mantiuk, Univ. of Cambridge. Depth perception Stereoscopic depth cues: binocular disparity We see depth due

Comfort zones

“Controlling Perceived Depth in Stereoscopic Images” by Jones et al. 2001

Comfort zone size depends on:

• Presented content

• Viewing condition

0.5 – 2 m0.2 – 0.3 m

Simple scene, user allowed to look away

from screen

70 cm

Page 17: Stereo Rendering - University of Cambridge · Stereo rendering 2 Rafał Mantiuk, Univ. of Cambridge. Depth perception Stereoscopic depth cues: binocular disparity We see depth due

Comfort zones

“Controlling Perceived Depth in Stereoscopic Images” by Jones et al. 2001

Comfort zone size depends on:

• Presented content

• Viewing condition

8 – 15 cm10 – 30 cm

Difficult scene

70 cm

Page 18: Stereo Rendering - University of Cambridge · Stereo rendering 2 Rafał Mantiuk, Univ. of Cambridge. Depth perception Stereoscopic depth cues: binocular disparity We see depth due

Comfort zones

“Controlling Perceived Depth in Stereoscopic Images” by Jones et al. 2001

Comfort zone size depends on:

• Presented content

• Viewing condition

6 – 15 cm11 cm

Difficult scene, user allowed to look away from screen

70 cm

Page 19: Stereo Rendering - University of Cambridge · Stereo rendering 2 Rafał Mantiuk, Univ. of Cambridge. Depth perception Stereoscopic depth cues: binocular disparity We see depth due

Comfort zones

Comfort zone size

depends on:• Presented content

• Viewing condition

• Screen distance

“The zone of comfort: Predicting visual discomfort with stereo displays” by Shibata et al. 2011

Other factors:

• Distance between eyes

• Depth of field

• Temporal coherence

Reproduced depth

Page 20: Stereo Rendering - University of Cambridge · Stereo rendering 2 Rafał Mantiuk, Univ. of Cambridge. Depth perception Stereoscopic depth cues: binocular disparity We see depth due

Depth manipulation

Comfort zone

Viewing discomfort Viewing comfortScene manipulation

Page 21: Stereo Rendering - University of Cambridge · Stereo rendering 2 Rafał Mantiuk, Univ. of Cambridge. Depth perception Stereoscopic depth cues: binocular disparity We see depth due

Stereoscopic displays

Stereoscopic (with glasses)

Anaglyps (red & cyan glasses)

Shutter glasses: most TV sets

Circular polarization: RealD 3D cinema, 3D displays from LG

Interference filters: Dolby 3D cinema

How do they work?

Which method suffers from:

reduced brightness;

distorted colours;

cross-talk between the eyes;

cost (to manufacture)?

Page 22: Stereo Rendering - University of Cambridge · Stereo rendering 2 Rafał Mantiuk, Univ. of Cambridge. Depth perception Stereoscopic depth cues: binocular disparity We see depth due

Stereoscopic displays

Auto-stereoscopic (without glasses)

Parallax barrier

Example: Nintendo 3DS, some laptops

and mobile phones

Switchable 2D/3D

Lenticular lens

Better efficiency

Non-switchable

Page 23: Stereo Rendering - University of Cambridge · Stereo rendering 2 Rafał Mantiuk, Univ. of Cambridge. Depth perception Stereoscopic depth cues: binocular disparity We see depth due

Light field Displays

integral photography, e. g. [Okano98]

micro lens-array in front of screen

screen at focal distance of micro lenses

parallel rays for each pixel

every eye sees a different pixel

Page 24: Stereo Rendering - University of Cambridge · Stereo rendering 2 Rafał Mantiuk, Univ. of Cambridge. Depth perception Stereoscopic depth cues: binocular disparity We see depth due

Light field Displays

integral photograph close-up one particular view

need high resolution images

taken with micro lens array

screen is auto-stereoscopic

no glasses, multiple users

Page 25: Stereo Rendering - University of Cambridge · Stereo rendering 2 Rafał Mantiuk, Univ. of Cambridge. Depth perception Stereoscopic depth cues: binocular disparity We see depth due

2. Polarization

3. Shutter Glasses

4. Chromatic Filters (Dolby)

Put on Your 3D Glasses Now!

The slides used in this section are the courtesy of Gordon Wetzstein.

From Virtual Reality course: http://stanford.edu/class/ee267/

Page 26: Stereo Rendering - University of Cambridge · Stereo rendering 2 Rafał Mantiuk, Univ. of Cambridge. Depth perception Stereoscopic depth cues: binocular disparity We see depth due

Glasses-based Stereopin

trest.

com

Page 27: Stereo Rendering - University of Cambridge · Stereo rendering 2 Rafał Mantiuk, Univ. of Cambridge. Depth perception Stereoscopic depth cues: binocular disparity We see depth due

Anaglyph Stereo - Monochrome

• render L & R images, convert to grayscale

• merge into red-cyan anaglyph by assigning I(r)=L, I(g,b)=R (I is anaglyph)

from movie “Bick Buck Bunny”

Page 28: Stereo Rendering - University of Cambridge · Stereo rendering 2 Rafał Mantiuk, Univ. of Cambridge. Depth perception Stereoscopic depth cues: binocular disparity We see depth due
Page 29: Stereo Rendering - University of Cambridge · Stereo rendering 2 Rafał Mantiuk, Univ. of Cambridge. Depth perception Stereoscopic depth cues: binocular disparity We see depth due

Anaglyph Stereo – Full Color

• render L & R images, do not convert to grayscale

• merge into red-cyan anaglyph by assigning I(r)=L(r), I(g,b)=R(g,b) (I is anaglyph)

from movie “Bick Buck Bunny”

Page 30: Stereo Rendering - University of Cambridge · Stereo rendering 2 Rafał Mantiuk, Univ. of Cambridge. Depth perception Stereoscopic depth cues: binocular disparity We see depth due
Page 31: Stereo Rendering - University of Cambridge · Stereo rendering 2 Rafał Mantiuk, Univ. of Cambridge. Depth perception Stereoscopic depth cues: binocular disparity We see depth due

http://bbb3d.renderfarming.net/download.html

Open Source Movie: Big Buck Bunny

Rendered with Blender (Open Source 3D Modeling Program)

Page 32: Stereo Rendering - University of Cambridge · Stereo rendering 2 Rafał Mantiuk, Univ. of Cambridge. Depth perception Stereoscopic depth cues: binocular disparity We see depth due

Glasses-based Stereo

Page 33: Stereo Rendering - University of Cambridge · Stereo rendering 2 Rafał Mantiuk, Univ. of Cambridge. Depth perception Stereoscopic depth cues: binocular disparity We see depth due

case 1 case 2 case 3

http://paulbourke.net/stereographics/stereorender/

Parallax

Parallax is the relative distance of a 3D point projected

into the 2 stereo images

Page 34: Stereo Rendering - University of Cambridge · Stereo rendering 2 Rafał Mantiuk, Univ. of Cambridge. Depth perception Stereoscopic depth cues: binocular disparity We see depth due

Toe-in = incorrect! Off-axis = correct!

Parallax

visual system only uses horizontal parallax, no vertical

parallax!

naïve toe-in method creates vertical parallax and visual

discomfort

http://paulbourke.net/stereographics/stereorender/

Page 35: Stereo Rendering - University of Cambridge · Stereo rendering 2 Rafał Mantiuk, Univ. of Cambridge. Depth perception Stereoscopic depth cues: binocular disparity We see depth due

Parallax – well done

Page 36: Stereo Rendering - University of Cambridge · Stereo rendering 2 Rafał Mantiuk, Univ. of Cambridge. Depth perception Stereoscopic depth cues: binocular disparity We see depth due

Parallax – well done

1862

“Tending wounded Union soldiers at

Savage's Station, Virginia, during the

Peninsular Campaign”,

Library of Congress Prints and

Photographs Division

Page 37: Stereo Rendering - University of Cambridge · Stereo rendering 2 Rafał Mantiuk, Univ. of Cambridge. Depth perception Stereoscopic depth cues: binocular disparity We see depth due

Parallax – not well done (vertical parallax = unnatural)

Page 38: Stereo Rendering - University of Cambridge · Stereo rendering 2 Rafał Mantiuk, Univ. of Cambridge. Depth perception Stereoscopic depth cues: binocular disparity We see depth due

References

LaValle "Virtual Reality", Cambridge University Press,

2016

Chapter 6

http://vr.cs.uiuc.edu/

Rafał Mantiuk, Univ. of Cambridge38