34

Optics Real-time Rendering of Physically Based Optical Effects in Theory and Practice Masanori KAKIMOTO Tokyo University of Technology

Embed Size (px)

Citation preview

Page 1: Optics Real-time Rendering of Physically Based Optical Effects in Theory and Practice Masanori KAKIMOTO Tokyo University of Technology
Page 2: Optics Real-time Rendering of Physically Based Optical Effects in Theory and Practice Masanori KAKIMOTO Tokyo University of Technology

OpticsReal-time Rendering of Physically Based Optical Effects in Theory and Practice

Masanori KAKIMOTOTokyo University of Technology

Page 3: Optics Real-time Rendering of Physically Based Optical Effects in Theory and Practice Masanori KAKIMOTO Tokyo University of Technology

Table of Contents• Introduction• Basic geometrical optics• Brief overview of wave optics• Conclusion

Page 4: Optics Real-time Rendering of Physically Based Optical Effects in Theory and Practice Masanori KAKIMOTO Tokyo University of Technology

INTRODUCTION

Real-time Rendering of Physically Based Optical Effects in Theory and Practice

Optics

Page 5: Optics Real-time Rendering of Physically Based Optical Effects in Theory and Practice Masanori KAKIMOTO Tokyo University of Technology

Physics on Lights• Optics

– Geometrical optics – a simple, practical model– Wave optics – more physically correct and complicated

• Electromagnetism – a classical physics model• Quantum optics – a modern physics model

Page 6: Optics Real-time Rendering of Physically Based Optical Effects in Theory and Practice Masanori KAKIMOTO Tokyo University of Technology

Optics and Computer Graphics Theories

• Computer graphics theories are based on optics

– Vast majority of the theories and techniques

upon geometrical optics

– ~1% taking wave optics into account

Photon mapping borrows a concept ‘photon’ from quantum optics and use it in a geometrical optics framework

Page 7: Optics Real-time Rendering of Physically Based Optical Effects in Theory and Practice Masanori KAKIMOTO Tokyo University of Technology

Topics

• This course– Most topics are related with geometrical optics

– Some are wave optics related

• This talk covers:

– Basic g.o. knowledge for the rest of the course

– Brief introduction of wave-related topics for a later talk

Page 8: Optics Real-time Rendering of Physically Based Optical Effects in Theory and Practice Masanori KAKIMOTO Tokyo University of Technology

BASIC GEOMETRICAL OPTICS

Real-time Rendering of Physically Based Optical Effects in Theory and Practice

Optics

Page 9: Optics Real-time Rendering of Physically Based Optical Effects in Theory and Practice Masanori KAKIMOTO Tokyo University of Technology

Geometrical Optics Models for CG

• Pinhole camera model

• Thin lens approximation

• Thick lens approximation

• Full lens system

Page 10: Optics Real-time Rendering of Physically Based Optical Effects in Theory and Practice Masanori KAKIMOTO Tokyo University of Technology

Geometrical Optics Models for CG

• Pinhole camera model

• Thin lens approximation

• Thick lens approximation

• Full lens system

+ thickness

+ aperture+ approximated refraction

+ accurate refraction+ multi-wavelengthsetc.

Page 11: Optics Real-time Rendering of Physically Based Optical Effects in Theory and Practice Masanori KAKIMOTO Tokyo University of Technology

Geometrical Optics Models and EffectsGeometrical optics

Thin lens / Thick Lens Full simulated lensPinhole

Perspective projectionMotion blur

Bokeh (defocus)Focus breathing

Complex BokehChromatic aberration

Optical vignettingLens ghosts

+ aperture+ approximated refraction

+ accurate refraction+ multi wavelengths

Natural vignetting

Page 12: Optics Real-time Rendering of Physically Based Optical Effects in Theory and Practice Masanori KAKIMOTO Tokyo University of Technology

Geometrical Optics Models and EffectsGeometrical optics

Thin lens / Thick Lens Full simulated lensPinhole

Bokeh (defocus)Focus breathing

Complex BokehChromatic aberration

Optical vignettingLens ghosts

+ aperture+ approximated refraction

+ accurate refraction+ multi wavelengths

Natural vignetting Today’s topics

Page 13: Optics Real-time Rendering of Physically Based Optical Effects in Theory and Practice Masanori KAKIMOTO Tokyo University of Technology

Geometrical Optics Models and Implementations

Graphics HW(fixed pipeline)

Ray tracing

Accumulation buffer

Programmable shader techniques

Wavefront tracingPost processing

Geometrical optics

Pinhole

+ aperture + accurate refraction

Full lens systemThin lens / Thick Lens

Distribution Ray tracing

Page 14: Optics Real-time Rendering of Physically Based Optical Effects in Theory and Practice Masanori KAKIMOTO Tokyo University of Technology

Geometrical Optics Models and Implementations

Today’s topics (geometrical optics)

Programmable shader techniques

Post processing

Geometrical optics

Pinhole

+ aperture + accurate refraction

Full lens systemThin lens / Thick Lens

Wavefront tracing

Page 15: Optics Real-time Rendering of Physically Based Optical Effects in Theory and Practice Masanori KAKIMOTO Tokyo University of Technology

Thin Lens – Fundamentals to Understand Real-Time Special Effects

• Real-time techniques are based on thin lens theory– Many optical effects accounted for by thin lens– Some effects derived from full lens system

model• Each can be mimicked by real-time techniques

(extended thin lens theory)

Page 16: Optics Real-time Rendering of Physically Based Optical Effects in Theory and Practice Masanori KAKIMOTO Tokyo University of Technology

Thin Lens Model

optical axis(principal axis)

focal point

f focal length

principal plane

incident light ray

center of lens(principal point)

Deffective aperture diameter

Page 17: Optics Real-time Rendering of Physically Based Optical Effects in Theory and Practice Masanori KAKIMOTO Tokyo University of Technology

Thin Lens Approximation – Rule 1

• Incident light rays parallel to the principal axis always go through the focal point

optical axis(principal axis)

focal point

f focal length

principal plane

incident light ray

center of lens(principal point)

Page 18: Optics Real-time Rendering of Physically Based Optical Effects in Theory and Practice Masanori KAKIMOTO Tokyo University of Technology

Thin Lens Approximation – Rule 2

• Incident light rays that passed through the focal point go parallel to the axis after exiting the lens

focal point

f focal length

incident light ray

Page 19: Optics Real-time Rendering of Physically Based Optical Effects in Theory and Practice Masanori KAKIMOTO Tokyo University of Technology

Thin Lens Approximation – Rule 3

• Incident light rays through the center of the lens travel straight (never get refracted)

optical axis

incident light rays

center of lens

Page 20: Optics Real-time Rendering of Physically Based Optical Effects in Theory and Practice Masanori KAKIMOTO Tokyo University of Technology

Rays Converge on a Certain Plane

• Rays from an object at distance converge on a plane at distance forming an image

odid

od

id

f f

object

image

film or sensor

focus distance

Page 21: Optics Real-time Rendering of Physically Based Optical Effects in Theory and Practice Masanori KAKIMOTO Tokyo University of Technology

Thin Lens Equation

io ddf

111

od

id

f f

object

image

filmo

i

d

dM

Page 22: Optics Real-time Rendering of Physically Based Optical Effects in Theory and Practice Masanori KAKIMOTO Tokyo University of Technology

Thin Lens and Closer Objects

• If the object gets closer, the converging plane (film) needs be farther from the lens

id

f f

object

image

film

od

io ddf

111

fdd io 2,

Page 23: Optics Real-time Rendering of Physically Based Optical Effects in Theory and Practice Masanori KAKIMOTO Tokyo University of Technology

Thin Lens and Far Objects

• If the object is far, the film needs be closer to focal length

io ddf

111

id

f f

image

film

od

fdd io

Page 24: Optics Real-time Rendering of Physically Based Optical Effects in Theory and Practice Masanori KAKIMOTO Tokyo University of Technology

Film Size and FOV for Infinite Focus

fdi

film

h

od

f

h

2tan2 1

: Field of view

for infinite focus

Page 25: Optics Real-time Rendering of Physically Based Optical Effects in Theory and Practice Masanori KAKIMOTO Tokyo University of Technology

Film Size and FOV for Closer Focus

finite

film

h

fidod

ifinite d

h

2tan2 1

finite : Field of view

for closer focus

Page 26: Optics Real-time Rendering of Physically Based Optical Effects in Theory and Practice Masanori KAKIMOTO Tokyo University of Technology

F-number Represents Lens Brightness

fdi

film

h

od

D

fF

D

D : diameter of the lens

Smaller f-number means brighter image

Page 27: Optics Real-time Rendering of Physically Based Optical Effects in Theory and Practice Masanori KAKIMOTO Tokyo University of Technology

Effective F-number

film

h

fidod

Fd

d

FMD

dF

o

i

ie

1

1 D

Smaller f-number means brighter image

Page 28: Optics Real-time Rendering of Physically Based Optical Effects in Theory and Practice Masanori KAKIMOTO Tokyo University of Technology

WAVE OPTICS OVERVIEW

Real-time Rendering of Physically Based Optical Effects in Theory and Practice

Optics

Page 29: Optics Real-time Rendering of Physically Based Optical Effects in Theory and Practice Masanori KAKIMOTO Tokyo University of Technology

Rays travel straight

Introduction• Geometrical optics – virtually correct, simple• Wave optics – more physically correct, complicated

Geometrical optics Wave optics

Waves propagate concentrically

Page 30: Optics Real-time Rendering of Physically Based Optical Effects in Theory and Practice Masanori KAKIMOTO Tokyo University of Technology

Wave-Related Phenomena and Effects

• Diffraction– Glare– Airy disc

• Interference– Surface coating– Thin film color effects

• Polarization– Complex reflection– Image dehazing

Can be simulated with extended ray theories[CookTorrance1981], [Gondek1994], [Wolff1999], [Schechner 2001]

Requires wave opticsCannot simulate with extended rays

Wave optics topics in this course focus on diffraction

Page 31: Optics Real-time Rendering of Physically Based Optical Effects in Theory and Practice Masanori KAKIMOTO Tokyo University of Technology

Diffraction – A Major Cause of Glare

Geometrical optics Wave optics

Diffraction

Diffraction

Page 32: Optics Real-time Rendering of Physically Based Optical Effects in Theory and Practice Masanori KAKIMOTO Tokyo University of Technology

Diffraction Details

• Later in this course

Wave optics based glare generation techniques

Page 33: Optics Real-time Rendering of Physically Based Optical Effects in Theory and Practice Masanori KAKIMOTO Tokyo University of Technology

CONCLUSION

Real-time Rendering of Physically Based Optical Effects in Theory and Practice

Optics

Page 34: Optics Real-time Rendering of Physically Based Optical Effects in Theory and Practice Masanori KAKIMOTO Tokyo University of Technology

Conclusions• Most computer graphics theories rely on

geometrical optics– Real-time techniques basically use thin lens

approximation– Effects beyond thin lens can be mimicked

(later in this course, e.g., aberrations)

• Popular wave optics effects are based on diffraction