Top Banner
A Practical Analytic Model for Daylight A. J. Preetham, Peter Shirley, Brian Smits SIGGRAPH ’99 Presentation by Jesse Hall
22

A Practical Analytic Model for Daylight A. J. Preetham, Peter Shirley, Brian Smits SIGGRAPH ’99 Presentation by Jesse Hall.

Dec 16, 2015

Download

Documents

Noreen Martin
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: A Practical Analytic Model for Daylight A. J. Preetham, Peter Shirley, Brian Smits SIGGRAPH ’99 Presentation by Jesse Hall.

A Practical Analytic Modelfor Daylight

A. J. Preetham, Peter Shirley, Brian SmitsSIGGRAPH ’99

Presentation by Jesse Hall

Page 2: A Practical Analytic Model for Daylight A. J. Preetham, Peter Shirley, Brian Smits SIGGRAPH ’99 Presentation by Jesse Hall.

Introduction

• Outdoor scenes are becoming more feasible and common

• Most light comes from sun and sky

• Distances make atmosphere visible

Page 3: A Practical Analytic Model for Daylight A. J. Preetham, Peter Shirley, Brian Smits SIGGRAPH ’99 Presentation by Jesse Hall.

Example

Important in photographs, paintings

Page 4: A Practical Analytic Model for Daylight A. J. Preetham, Peter Shirley, Brian Smits SIGGRAPH ’99 Presentation by Jesse Hall.

Goals

• Accurate formulas for sun and sky color, aerial perspective effects

• Simple, intuitive parameters

– Location, direction, date, time of day, conditions…

• Computationally efficient

Page 5: A Practical Analytic Model for Daylight A. J. Preetham, Peter Shirley, Brian Smits SIGGRAPH ’99 Presentation by Jesse Hall.

Background

• Sky color and aerial perspective are caused by atmospheric scattering of light (Minneart 1954)

• Primary and secondary scattering most important

Page 6: A Practical Analytic Model for Daylight A. J. Preetham, Peter Shirley, Brian Smits SIGGRAPH ’99 Presentation by Jesse Hall.

Scattering: Air Molecules

• Most important scattering due to air molecules

• Molecules smaller than wavelength: Rayleigh scattering

• Wavelength-dependent scattering gives sky overall blue color

• Also causes yellow/orange sun, sunsets

Page 7: A Practical Analytic Model for Daylight A. J. Preetham, Peter Shirley, Brian Smits SIGGRAPH ’99 Presentation by Jesse Hall.

Scattering: Haze

• Light also scattered by ‘haze’ particles (smoke, dust, smog)

• Haze particles larger than wavelength: Mie scattering, wavelength independent

• Usually approximated with turbidity parameter: T = (tm+th)/tm

Page 8: A Practical Analytic Model for Daylight A. J. Preetham, Peter Shirley, Brian Smits SIGGRAPH ’99 Presentation by Jesse Hall.

Previous Work: Sky Color

• Explicit modeling

• Measured data– CIE IDMP, Ineichen 1994

• Simulation– Klassen 1987, Kaneda 1992, Nishita 1996

• Analytic– CIE formula 1994, Perez 1993

Page 9: A Practical Analytic Model for Daylight A. J. Preetham, Peter Shirley, Brian Smits SIGGRAPH ’99 Presentation by Jesse Hall.

Previous Work:Aerial Perspective

• Explicit modeling

• Simulation– Ebert et al. 1998

• Analytic model for fog– Kaneda 1991

• Simple non-directional models– Ward-Larson 1998 (Radiance)

Page 10: A Practical Analytic Model for Daylight A. J. Preetham, Peter Shirley, Brian Smits SIGGRAPH ’99 Presentation by Jesse Hall.

Sunlight & Skylight

• Input: sun position, turbidity

• Output: spectral radiance

• Sun position calculated from latitude, longitude, time, date

• Haze density based on turbidity and measured data

Page 11: A Practical Analytic Model for Daylight A. J. Preetham, Peter Shirley, Brian Smits SIGGRAPH ’99 Presentation by Jesse Hall.

Sunlight

1. Look up spectral radiance outside atmosphere in table

2. Calculate attenuation from different particles using constants given in Iqbal 1983

3. Multiply extra-terrestrial spectral radiance by all attenuation coefficients to get direct spectral radiance

Page 12: A Practical Analytic Model for Daylight A. J. Preetham, Peter Shirley, Brian Smits SIGGRAPH ’99 Presentation by Jesse Hall.

Skylight: Geometry

Page 13: A Practical Analytic Model for Daylight A. J. Preetham, Peter Shirley, Brian Smits SIGGRAPH ’99 Presentation by Jesse Hall.

Skylight: Model

• Use Perez et al. model (1993)

A) darkening/brightening of horizonB) luminance gradient near horizonC) relative intensity of circumsolar regionD) width of circumsolar regionE) relative backscattered light

γ)ECe)(Ae(F DγθB/ 2cos11),( cos

),0(

),(

sz F

FYY

Page 14: A Practical Analytic Model for Daylight A. J. Preetham, Peter Shirley, Brian Smits SIGGRAPH ’99 Presentation by Jesse Hall.

Skylight: Simulation

1. Compute spectral radiance for various viewing directions, sun positions, and turbidities using Nishita (1996) model

• Multiple scattering, spherical or planar atmosphere

• 12 sun positions, 5 turbidities, 343 viewing directions

• 600 CPU hours• Requires careful implementation

Page 15: A Practical Analytic Model for Daylight A. J. Preetham, Peter Shirley, Brian Smits SIGGRAPH ’99 Presentation by Jesse Hall.

Skylight: Fitting

• Fit Perez coefficients to simulation using non-linear least-squares

• Luminance, chromaticity values require separate coefficients

• Result is three functions which combine to give spectral radiance

Page 16: A Practical Analytic Model for Daylight A. J. Preetham, Peter Shirley, Brian Smits SIGGRAPH ’99 Presentation by Jesse Hall.

CIE Chromaticity

Page 17: A Practical Analytic Model for Daylight A. J. Preetham, Peter Shirley, Brian Smits SIGGRAPH ’99 Presentation by Jesse Hall.

Aerial Perspective

• Can’t be precomputed since it depends on distance and elevations

• Simpler model required for feasibility

• Assume particle density decreases exponentially with elevation

• Assume earth is flat

inLLsL 0)(

Page 18: A Practical Analytic Model for Daylight A. J. Preetham, Peter Shirley, Brian Smits SIGGRAPH ’99 Presentation by Jesse Hall.

Aerial Perspective: Geometry

Page 19: A Practical Analytic Model for Daylight A. J. Preetham, Peter Shirley, Brian Smits SIGGRAPH ’99 Presentation by Jesse Hall.

Aerial Perspective: Extinction

• Molecules and haze vary separately

= exponential decay constant 0 = scattering coefficient at surface• u(x) = ratio of density at x to density at surface

0

cos00

222111

cos

1

)()(

h

ee

suHKsuHK

eH

eK

ees

h

Page 20: A Practical Analytic Model for Daylight A. J. Preetham, Peter Shirley, Brian Smits SIGGRAPH ’99 Presentation by Jesse Hall.

Aerial Perspective: Inscattering

• S(,,x): Light scattered into viewing direction at point x

• If |s cos |«1, Ii reduces to simple closed-form equation

dxxxuI

ISISLs

ii

in

),0()(

),(),(

0

2021

01

Page 21: A Practical Analytic Model for Daylight A. J. Preetham, Peter Shirley, Brian Smits SIGGRAPH ’99 Presentation by Jesse Hall.

Aerial Perspective: Solution

• Otherwise, computing Ii directly is too expensive to be practical

• Approximate some terms in expansion with Hermite cubic polynomial, which is easily integrable

• Result is an analytic equation

Page 22: A Practical Analytic Model for Daylight A. J. Preetham, Peter Shirley, Brian Smits SIGGRAPH ’99 Presentation by Jesse Hall.

Conclusions

• Reasonably accurate model

• Efficient enough for practical use

• Great pictures!

• Doesn’t model cloudy sky, fog, or localized pollution sources