Presentation is loading. Please wait.

Presentation is loading. Please wait.

Real-time environment map lighting

Similar presentations


Presentation on theme: "Real-time environment map lighting"— Presentation transcript:

1 Real-time environment map lighting
Digital Image Synthesis Yung-Yu Chuang 12/28/2006 with slides by Ravi Ramamoorthi and Robin Green

2 Realistic rendering So far, we have talked photorealistic rendering including complex materials, complex geometry and complex lighting. They are slow.

3 Real-time rendering Goal is to achieve interactive rendering with reasonable quality. It’s important in many applications such as games, visualization, computer-aided design, …

4 Natural illumination People perceive materials more easily under natural illumination than simplified illumination. Images courtesy Ron Dror and Ted Adelson

5 Natural illumination Classically, rendering with natural illumination is very expensive compared to using simplified illumination directional source natural illumination

6 Reflection maps Blinn and Newell, 1976

7 Environment maps Miller and Hoffman, 1984

8 HDR lighting

9 Examples

10 Examples

11 Examples

12 Complex illumination

13 Function approximation
G(x) ... function to approximate B1(x), B2(x), … Bn(x) … basis functions We want Storing a finite number of coefficients ci gives an approximation of G(x)

14 Function approximation
How to find coefficients ci? Minimize an error measure What error measure? L2 error

15 Function approximation
Orthonormal basis If basis is orthonormal then  we want our bases to be orthonormal

16 Orthogonal basis functions
These are families of functions with special properties Intuitively, it’s like functions don’t overlap each other’s footprint A bit like the way a Fourier transform breaks a functions into component sine waves

17 Integral of product

18 Function approximation
Basis Functions are pieces of signal that can be used to produce approximations to a function

19 Function approximation
We can then use these coefficients to reconstruct an approximation to the original signal

20 Function approximation
We can then use these coefficients to reconstruct an approximation to the original signal

21 Basis functions Transform data to a space in which we can capture the essence of the data better Here, we use spherical harmonics, similar to Fourier transform in spherical domain

22 Harr wavelets Scaling functions (Vj) Wavelet functions (Wj)
The set of scaling functions and wavelet functions forms an orthogonal basis

23 Harr wavelets

24 Example for wavelet transform
Delta functions, f=(9,7,3,5) in V2

25 Wavelet transform V1, W1

26 Example for wavelet transform
V0, W0 , W1

27 Example for wavelet transform

28 Quadratic B–spline scaling and wavelets

29 2D Harr wavelets

30 Example for 2D Harr wavelets

31 Applications 19% 5% L2 3% 10% L2 1% 15% L2

32 Real spherical harmonics
A system of signed, orthogonal functions over the sphere Represented in spherical coordinates by the function where l is the band and m is the index within the band

33 Real spherical harmonics

34 Reading SH diagrams This direction + Not this direction

35 Reading SH diagrams This direction + Not this direction

36 The SH functions

37 The SH functions

38 Spherical harmonics

39 Spherical harmonics m l 1 2 -2 -1 1 2

40 SH projection First we define a strict order for SH functions
Project a spherical function into a vector of SH coefficients

41 SH reconstruction To reconstruct the approximation to a function
We truncate the infinite series of SH functions to give a low frequency approximation

42 Examples of reconstruction

43 An example Take a function comprised of two area light sources
SH project them into 4 bands = 16 coefficients

44 Low frequency light source
We reconstruct the signal Using only these coefficients to find a low frequency approximation to the original light source


Download ppt "Real-time environment map lighting"

Similar presentations


Ads by Google