Density Estimation Optimizations for Global Illumination Rub en - - PowerPoint PPT Presentation

density estimation optimizations for global illumination
SMART_READER_LITE
LIVE PREVIEW

Density Estimation Optimizations for Global Illumination Rub en - - PowerPoint PPT Presentation

Introduction New optimizations Theoretical study Future Work Conclusion Density Estimation Optimizations for Global Illumination Rub en Garc a, Carlos Ure na, Jorge Revelles, Miguel Lastra, Rosana Montes Thursday, February 2,


slide-1
SLIDE 1

Introduction New optimizations Theoretical study Future Work Conclusion

Density Estimation Optimizations for Global Illumination

Rub´ en Garc´ ıa, Carlos Ure˜ na, Jorge Revelles, Miguel Lastra, Rosana Montes Thursday, February 2, 2006 Grupo de Investigaci´

  • n en Inform´

atica Gr´ afica. Lenguajes y Sistemas Inform´ aticos. University of Granada.

Garc´ ıa et al Density Estimation Optimizations for Global Illumination

slide-2
SLIDE 2

Introduction New optimizations Theoretical study Future Work Conclusion Density Estimation on the Tangent Plane Sphere Cach´ e

Method

Based on the density estimation technique of Photon Maps, however DETP Stores the trajectories of the photons. To calculate irradiance at a point, a disc of fixed radius centered at the point and tangent to the surface is created, and the contribution of the rays intersecting the disc are added. Finally, the result is divided by the area of the disc.

Garc´ ıa et al Density Estimation Optimizations for Global Illumination

slide-3
SLIDE 3

Introduction New optimizations Theoretical study Future Work Conclusion Density Estimation on the Tangent Plane Sphere Cach´ e

Diagram

Density Estimation on the Tangent Plane

Garc´ ıa et al Density Estimation Optimizations for Global Illumination

slide-4
SLIDE 4

Introduction New optimizations Theoretical study Future Work Conclusion Density Estimation on the Tangent Plane Sphere Cach´ e

DETP Optimization: Sphere Cach´ e

A hierarchy of englobing spheres is created which allows for the rapid calculation of the rays intersecting a given disc. Inner spheres are recalculated when the disc leaves the sphere. This method is useful if the discs have spatial coherency: Point sorting.

Garc´ ıa et al Density Estimation Optimizations for Global Illumination

slide-5
SLIDE 5

Introduction New optimizations Theoretical study Future Work Conclusion Density Estimation on the Tangent Plane Sphere Cach´ e

Diagram

Sphere Cach´ e

Garc´ ıa et al Density Estimation Optimizations for Global Illumination

slide-6
SLIDE 6

Introduction New optimizations Theoretical study Future Work Conclusion Disc Indexing Results

DETP Optimization: Disc Indexing

A spatial indexing of the discs is created. For each ray, the structure is traversed from the origin of the ray until its intersection with the real scene. Each intersected disc increases its energy according to the energy of the ray. Independent of the spatial indexing method.

Garc´ ıa et al Density Estimation Optimizations for Global Illumination

slide-7
SLIDE 7

Introduction New optimizations Theoretical study Future Work Conclusion Disc Indexing Results

Disc Indexing

Disc Indexing

Garc´ ıa et al Density Estimation Optimizations for Global Illumination

slide-8
SLIDE 8

Introduction New optimizations Theoretical study Future Work Conclusion Disc Indexing Results

Experimental Results

Tree Atrium 72 500 triangles 122 318 triangles Disc Indexing obtains up to 50 % reduction in time with respect to Sphere Cach´ e for small discs.

Garc´ ıa et al Density Estimation Optimizations for Global Illumination

slide-9
SLIDE 9

Introduction New optimizations Theoretical study Future Work Conclusion Notation Assumptions Results

Theoretical results: Notation

nR: number of rays nP: number of irradiance points. d: disc radius r0: radius of the first sphere, which surrounds the scene. Q: Radius factor: ri+1 = Q ∗ ri; 0 < Q < 1

Garc´ ıa et al Density Estimation Optimizations for Global Illumination

slide-10
SLIDE 10

Introduction New optimizations Theoretical study Future Work Conclusion Notation Assumptions Results

Assumptions of the analysis

Uniform distribution of rays. Uniform distribution of irradiance points. With this, the average fraction of rays in a convex set can be calculated: It is the ratio between the surface of the set and the surface

  • f the bounding box of the scene.

Garc´ ıa et al Density Estimation Optimizations for Global Illumination

slide-11
SLIDE 11

Introduction New optimizations Theoretical study Future Work Conclusion Notation Assumptions Results

Result: Estimation of the optimal value of Q

Intersections

  • ptimal Q if the radius of the last sphere equals the disc

radius. Small Q implies less cost in cache misses. The global minimum is around 0.6-0.7. This is coherent with experiments.

Garc´ ıa et al Density Estimation Optimizations for Global Illumination

slide-12
SLIDE 12

Introduction New optimizations Theoretical study Future Work Conclusion Notation Assumptions Results

Theoretical efficiency results

Sphere Cache

O(nRnP), hidden constant d2

r2

For d ≈ distance between samples: O(nR 3 √nP)

Disc Indexing, d ≈ distance between samples

Unbalanced trees: O(nR 3 √nP log nP) Balanced trees: O(nR

3

√nP) Disc Indexing, large discs O(nRnP), hidden constant d2

r2

0 log r0

d

Garc´ ıa et al Density Estimation Optimizations for Global Illumination

slide-13
SLIDE 13

Introduction New optimizations Theoretical study Future Work Conclusion

Future Work

The theoretical study allows us to use known characteristics of the scene to guide hybrid algorithms. Example: Quasi-static scenes (static scene, relatively small mobile objects)

Static Scene: Disc Indexing theoretically more efficient. Dynamic Objects: Sphere Cache theoretically more efficient. This allows for an efficient hybrid algorithm for these scenes.

Garc´ ıa et al Density Estimation Optimizations for Global Illumination

slide-14
SLIDE 14

Introduction New optimizations Theoretical study Future Work Conclusion

Conclusion

Disc Indexing has been described and implemented. This technique increases performance of Global Illumination calculations. A theoretical study of the time efficiency has been carried out. The usefulness of the theoretical study to guide the development of algorithms has been shown. (Quasi-static scenes)

Garc´ ıa et al Density Estimation Optimizations for Global Illumination