university of montreal & imagis a light hierarchy for fast rendering of scenes with many lights...

26
University of Montreal & iMAGIS A Light Hierarchy for Fast Rendering of Scenes with Many Lights E. Paquette, P. Poulin, and G. Drettakis

Upload: millicent-katrina-norton

Post on 17-Jan-2016

218 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: University of Montreal & iMAGIS A Light Hierarchy for Fast Rendering of Scenes with Many Lights E. Paquette, P. Poulin, and G. Drettakis

University of Montreal & iMAGIS

A Light Hierarchy for Fast Rendering of Scenes with Many Lights

E. Paquette, P. Poulin, and G. Drettakis

Page 2: University of Montreal & iMAGIS A Light Hierarchy for Fast Rendering of Scenes with Many Lights E. Paquette, P. Poulin, and G. Drettakis

University of Montreal & iMAGIS

Motivation• Scenes with many light sources are expensive to

render– Shading and shadowing cost dominates

• Typical scenes: city lights, chandelier, Christmas tree ornaments, flame simulation

Page 3: University of Montreal & iMAGIS A Light Hierarchy for Fast Rendering of Scenes with Many Lights E. Paquette, P. Poulin, and G. Drettakis

University of Montreal & iMAGIS

Introduction

• Goal: Accelerate the shading calculation for scenes with many light sources

• Our solution: Hierarchical multi-resolution representation of the light sources

• Context: Ray-tracing, point light sources• Currently restricted to unoccluded light

sources (no shadows)

Page 4: University of Montreal & iMAGIS A Light Hierarchy for Fast Rendering of Scenes with Many Lights E. Paquette, P. Poulin, and G. Drettakis

University of Montreal & iMAGIS

Outline

Previous work• Hierarchical representation of light sources• Diffuse and specular shading• Treating visibility• Conclusion & future work

Page 5: University of Montreal & iMAGIS A Light Hierarchy for Fast Rendering of Scenes with Many Lights E. Paquette, P. Poulin, and G. Drettakis

University of Montreal & iMAGIS

Previous Work

• Adaptive shadow testing [Ward91]– Problem with many similar contributions

• Monte Carlo [Shirley et al. 96]– Noise component can be very high

• Hierarchical radiosity with clustering [Smits et al. 94] [Sillion95]– Problems with clusters containing light

sources

Page 6: University of Montreal & iMAGIS A Light Hierarchy for Fast Rendering of Scenes with Many Lights E. Paquette, P. Poulin, and G. Drettakis

University of Montreal & iMAGIS

Outline

• Previous work Hierarchical representation of light sources• Diffuse and specular shading• Treating visibility• Conclusion & future work

Page 7: University of Montreal & iMAGIS A Light Hierarchy for Fast Rendering of Scenes with Many Lights E. Paquette, P. Poulin, and G. Drettakis

University of Montreal & iMAGIS

Hierarchical Representation

• Distant lights need less accurate treatment

virtual light source

VLthreshold)Shade(lights) Shade(all LV

p

Page 8: University of Montreal & iMAGIS A Light Hierarchy for Fast Rendering of Scenes with Many Lights E. Paquette, P. Poulin, and G. Drettakis

University of Montreal & iMAGIS

Construction

• Light hierarchy (octree)

Page 9: University of Montreal & iMAGIS A Light Hierarchy for Fast Rendering of Scenes with Many Lights E. Paquette, P. Poulin, and G. Drettakis

University of Montreal & iMAGIS

Construction

intensity of VL= intensities

position of VL= weighted

average of positions

• Light hierarchy (octree)

level 1 VL

Page 10: University of Montreal & iMAGIS A Light Hierarchy for Fast Rendering of Scenes with Many Lights E. Paquette, P. Poulin, and G. Drettakis

University of Montreal & iMAGIS

Construction

level 0 VL

intensity of VL= intensities

position of VL= weighted

average of positions

• Light hierarchy (octree)

level 1 VL

• Separate object hierarchy for ray-tracing acceleration

Page 11: University of Montreal & iMAGIS A Light Hierarchy for Fast Rendering of Scenes with Many Lights E. Paquette, P. Poulin, and G. Drettakis

University of Montreal & iMAGIS

Outline

• Previous work• Hierarchical representation of light sources Diffuse and specular shading• Treating visibility• Conclusion & future work

Page 12: University of Montreal & iMAGIS A Light Hierarchy for Fast Rendering of Scenes with Many Lights E. Paquette, P. Poulin, and G. Drettakis

University of Montreal & iMAGIS

Diffuse Reflection Approximation

dmax

max

N

2v

vdvapprox

2i

idi

d

cosk II

d

cosk II

Page 13: University of Montreal & iMAGIS A Light Hierarchy for Fast Rendering of Scenes with Many Lights E. Paquette, P. Poulin, and G. Drettakis

University of Montreal & iMAGIS

Diffuse Reflection Error Bound• Derive an error bound on the virtual light usage

2maxv

maxvdvmin

2i

idi

)d(d

)cos(k II

d

cosk II

dmax

max

N

Similarly for Imax

Page 14: University of Montreal & iMAGIS A Light Hierarchy for Fast Rendering of Scenes with Many Lights E. Paquette, P. Poulin, and G. Drettakis

University of Montreal & iMAGIS

Diffuse Reflection Error Bound• Derive an error bound on the virtual light usage

II

,IImaxError

approxmax

minapprox

dmax

max

N

Page 15: University of Montreal & iMAGIS A Light Hierarchy for Fast Rendering of Scenes with Many Lights E. Paquette, P. Poulin, and G. Drettakis

University of Montreal & iMAGIS

Diffuse Reflection Shading

HierShading(Point p, Voxel v)if Error(p, v) > Tdiffuse then

ShadeAtLowerLevel(p,v)else

AddErrorList(v, Error(p, v))p

Page 16: University of Montreal & iMAGIS A Light Hierarchy for Fast Rendering of Scenes with Many Lights E. Paquette, P. Poulin, and G. Drettakis

University of Montreal & iMAGIS

Error List

• Error bound for replacing one cluster by VL

• Using lower levels replaces many clusters with corresponding VLs

while Sum(errorList) > Tdiffuse

v = VoxelWithGreatestError( errorList )

ShadeAtLowerLevel(p,v)

Page 17: University of Montreal & iMAGIS A Light Hierarchy for Fast Rendering of Scenes with Many Lights E. Paquette, P. Poulin, and G. Drettakis

University of Montreal & iMAGIS

0

1

2

3

4

64 1024 16384

0

20

40

60

80

100

64 1024 16384

0

5

10

15

20

64 1024 16384

Diffuse Reflection ResultsSpeed U

p(v

s st

andard

ray-

traci

ng)

Number of Light Sources Our method[Ward91]

Page 18: University of Montreal & iMAGIS A Light Hierarchy for Fast Rendering of Scenes with Many Lights E. Paquette, P. Poulin, and G. Drettakis

University of Montreal & iMAGIS

Specular Reflection• Select important voxels and light sources in the

hierarchy based on maximal potential contribution

N2

maxv

nmaxv

svmax

2i

in

si

)d(d

))(cos(k II

d

cosk II

max

Page 19: University of Montreal & iMAGIS A Light Hierarchy for Fast Rendering of Scenes with Many Lights E. Paquette, P. Poulin, and G. Drettakis

University of Montreal & iMAGIS

Specular Reflection Shading

HierShading(Point p, Voxel v)

if Imax(v) > Tspecular then

ShadeAtLowerLevel(p,v) else

AddErrorList(v, Imax)p

Page 20: University of Montreal & iMAGIS A Light Hierarchy for Fast Rendering of Scenes with Many Lights E. Paquette, P. Poulin, and G. Drettakis

University of Montreal & iMAGIS

0102030405060

64 1024 163840

20

40

60

80

100

64 1024 16384

05

1015202530

64 1024 16384

Specular Reflection Results

Number of Light Sources Our method[Ward91]

Speed U

p(v

s st

andard

ray-

traci

ng)

Page 21: University of Montreal & iMAGIS A Light Hierarchy for Fast Rendering of Scenes with Many Lights E. Paquette, P. Poulin, and G. Drettakis

University of Montreal & iMAGIS

Artifacts

• Artifacts that result from increasing the threshold

Rendered image

Difference image

(enhanced contrast)

Discontinuities from discrete

choice of hierarchy level

Solution:Interpolation

Page 22: University of Montreal & iMAGIS A Light Hierarchy for Fast Rendering of Scenes with Many Lights E. Paquette, P. Poulin, and G. Drettakis

University of Montreal & iMAGIS

Outline

• Previous work• Hierarchical representation of light sources• Diffuse and specular shading Treating visibility• Conclusion & future work

Page 23: University of Montreal & iMAGIS A Light Hierarchy for Fast Rendering of Scenes with Many Lights E. Paquette, P. Poulin, and G. Drettakis

University of Montreal & iMAGIS

Treating Visibility

• Hierarchical algorithm gives appropriate nodes of the light sources hierarchy

• Warnock style decision– Full occlusion, full visibility, partial

occlusion• Use lower level nodes when partial visibility• Approximate volumetric visibility method

similar to [Sillion95]• Need error bounds or estimates

Page 24: University of Montreal & iMAGIS A Light Hierarchy for Fast Rendering of Scenes with Many Lights E. Paquette, P. Poulin, and G. Drettakis

University of Montreal & iMAGIS

Outline

• Previous work• Hierarchical representation of light sources• Diffuse and specular shading• Treating visibility Conclusion & future work

Page 25: University of Montreal & iMAGIS A Light Hierarchy for Fast Rendering of Scenes with Many Lights E. Paquette, P. Poulin, and G. Drettakis

University of Montreal & iMAGIS

Conclusion

• Hierarchical multi-resolution representation of the light sources

• Logarithmic rendering time in the number of light sources (diffuse algorithm)

• Accelerates rendering in the presence of many light sources (up to 90 times faster than standard ray-tracing)

Page 26: University of Montreal & iMAGIS A Light Hierarchy for Fast Rendering of Scenes with Many Lights E. Paquette, P. Poulin, and G. Drettakis

University of Montreal & iMAGIS

Future Work

• Shadows– Visibility classification (full, partial or no

occlusion)– Approximate visibility

• Non point light sources– Area, canned light sources, etc.

• General BRDF– Bounds on BRDF value