1 Lightfields and Lumigraphs Modeling light Computer Graphics

Jul 3, 2001 - Modeling light. How do we generate new scenes and animations from existing ones? Classic “3D Vision + Graphics”: • take (lots of) pictures.
3MB taille 3 téléchargements 274 vues
Modeling light Lightfields and Lumigraphs

Richard Szeliski (with lots of slides from Michael Cohen)

Computer Graphics

How do we generate new scenes and animations from existing ones? Classic “3D Vision + Graphics”: • • • • •

take (lots of) pictures recover camera pose build 3D model extract texture maps / BRDFs synthesize new views

Computer Vision

Output

Output

Image Synthetic Camera

Model

Model

Real Scene Real Cameras

Combined

But, vision technology falls short

Output

Output

Image Synthetic Camera

Model

Real Scene Real Cameras

Image Synthetic Camera

Model

Real Scene Real Cameras

… and so does graphics.

Image Based Rendering Output

Output

Image Synthetic Camera

Model

Image Real Scene Synthetic Images+Model Camera Real Cameras -orExpensive Image Synthesis

Real Scene Real Cameras

Ray

All Rays

Constant radiance

Plenoptic Function:

• time is fixed

• all possible images • too much stuff!

5D • 3D position • 2D direction

Line

Ray

Infinite line

Discretize, then interpolate

4D • 2D direction • 2D position • non-dispersive medium

Distance between 2 rays • Which is closer together?

Image

Image

What is an image?

Image plane

2D All rays through a point

• position

• Panorama?

Object

Object

Light leaving towards “eye”

All light leaving object

2D • just dual of image

Object

Object All images

4D • 2D position • 2D direction

Lumigraph / Lightfield

Lumigraph

Outside convex space

Empty 4D

Inside convex space

Stuff

Stuff

Empty

4D

Lumigraph

Lumigraph - Organization

How to

2D position 2D direction

• organize • capture • render

θ

Lumigraph - Organization

Lumigraph - Organization

2D position 2D position

2D position 2D position

2 plane parameterization

2 plane parameterization

Lumigraph - Organization

Lumigraph - Organization

Hold constant Let vary An image

Discretization • higher res near object – if diffuse – captures texture

• lower res away – captures directions

Lumigraph - Capture

Lumigraph - Capture

Idea 1

Idea 2

• Move camera carefully over s,t plane • Gantry

• Move camera anywhere • Rebinning – see Lumigraph paper

– see Lightfield paper

Lumigraph - Rendering For each output pixel • determine s,t,u,v • either

Lumigraph - Rendering For each output pixel • determine s,t,u,v

– find closest discrete RGB – interpolate near values

• either • use closest discrete RGB • interpolate near values

Lumigraph - Rendering Nearest • closest s • closest u • draw it

Lumigraph - Rendering Depth Correction • • • •

closest s intersection with “object” best u closest u

Blend 16 nearest • quadrilinear interpolation

Lumigraph - Rendering

Lumigraph - Rendering

Depth Correction

Fast s,t,u,v finding

• quadralinear interpolation • new “closest” • like focus

Lumigraph - Ray Space

• scanline interpolate • texture mapping • shear warp

Lumigraph - Ray Space Image effects: • parallax • occlusion • transparency • highlights

Lumigraph - Demo

Lightfield - Demo Digital Michelangelo Project

Lumigraph • Lion, Fruit Bowl, Visible Woman, Path Tracing

– Marc Levoy, Stanford University – Lightfield (“night”) assembled by Jon Shade

Surface Lightfields

Surface Lightfields

Turn 4D parameterization around Leverage coherence

Wood et al, SIGGRAPH 2000

3D Representations

3D Lumigraph

Image is 2D Lumigraph is 4D What happened to 3D?

One row of s,t plane

• 3D Lumigraph subset • Concentric mosaics

• i.e., hold t constant

3D Lumigraph

Concentric Mosaics

One row of s,t plane

Replace “row” with “circle” of images

• i.e., hold t constant • thus s,u,v • a “row of images”

Concentric Mosaics

Concentric Mosaics From above

Concentric Mosaics Depth correction

Concentric Mosaics Panorama

2.5D Representations

Layered Depth Image

Image is 2D Lumigraph is 4D 3D

%!&

• 3D Lumigraph subset • Concentric mosaics

2.5D • Layered Depth Images • View Dependent Surfaces

" # $!

Layered Depth Image

Layered Depth Image

Rendering from LDI

' '

Rendering from LDI

( "! ) $* $ + + ,- -

Layered Depth Image (LDI)

' '

$

Tiled LDIs

( "! ) $* $ + + ,- -

$

Tiled LDIs

Image Based Models

Multiresolution Directionally dependent

Image Based Faces

Summary

Estimate shape from images Match metrics to shape Project video onto shape

5D: Plenoptic Function (Ray) 4D: Lumigraph / Lightfield 3D: Lumigraph Subset 3D: Concentric Mosaics 2.5D: Layered Depth Image 2.5D: Image Based Models 2D: Image

• Texture map

Animate