Selective Restructuring of Bo nding Vol me Hierarchies for Bounding - - PowerPoint PPT Presentation

selective restructuring of bo nding vol me hierarchies
SMART_READER_LITE
LIVE PREVIEW

Selective Restructuring of Bo nding Vol me Hierarchies for Bounding - - PowerPoint PPT Presentation

Selective Restructuring of Bo nding Vol me Hierarchies for Bounding Volume Hierarchies for Dynamic Models y Sung-Eui Yoon KAIST (Korea Advanced Institute of Science and Technology) and Technology) At Previous Class At Previous Class


slide-1
SLIDE 1

Selective Restructuring of Bo nding Vol me Hierarchies for Bounding Volume Hierarchies for Dynamic Models y

Sung-Eui Yoon

KAIST (Korea Advanced Institute of Science and Technology) and Technology)

slide-2
SLIDE 2

At Previous Class At Previous Class

Studied multi resolutions culling cache

  • Studied multi-resolutions, culling, cache-

coherent layout techniques

What is one of major problems of these techniques?

2

slide-3
SLIDE 3

Motivations Motivations

Dynamic scenes are widely used

  • Dynamic scenes are widely used
  • Movies, VR applications, and games
  • Complex and large dynamic scenes
  • E g high resolution explosion tears and
  • E.g, high-resolution explosion, tears, and

fractures

3

slide-4
SLIDE 4

An Example of Exploding Dragon (252K triangles) (252K triangles)

4

slide-5
SLIDE 5

Ray Tracing Dynamic Scenes Ray Tracing Dynamic Scenes

A l ti hi h t ti

  • Acceleration hierarchy construction
  • e.g., kd-trees, bounding volume hierarchies,

grids etc grids, etc

  • Hierarchy traversal
  • Hierarchy traversal
  • Perform ray-triangle intersection tests
  • Key issue
  • Update the hierarchy as triangles deform
  • Update the hierarchy as triangles deform

5

slide-6
SLIDE 6

Bounding Volume Hierarchies (BVH) based Ray Tracing (BVH) based Ray Tracing

E l d l i [Whitt d 80]

  • Employed early in [Whitted 80]
  • kd-trees and grids became popular for static

models in 90’s models in 90 s

  • Recently get renewed interest in ray
  • Recently get renewed interest in ray

tracing dynamic scenes [Wald et al. 07, Lauterbach et al. 07, Larsson et al. 03] Lauterbach et al. 07, Larsson et al. 03]

  • Simple, but efficient BVH update method is

available

  • Can have better performance

6

slide-7
SLIDE 7

BVHs BVHs

Object partitioning hierarchies

  • Object partitioning hierarchies
  • Uses axis-aligned bounding boxes
  • Considers surface area heuristic (SAH)
  • Considers surface-area heuristic (SAH)

[Goldsmith and Salmon 87]

A BVH A BVH

7

A BVH A BVH

slide-8
SLIDE 8

Two BVH Update Methods Two BVH Update Methods

BV refitting BV refitting O(n) O(n) Frame 1 Frame 1

  • O(n)

O(n)

  • Poor

Poor-

  • quality BVs

quality BVs Frame 2 Frame 2 BV reconstruction BV reconstruction

  • O(n log n)

O(n log n)

  • Good

Good-

  • quality BVs

quality BVs

8

slide-9
SLIDE 9

Our Goal Our Goal

Existing BVH update methods

  • Existing BVH update methods
  • Work at particular classes of dynamic scenes

Design a robust BVH update method

  • Design a robust BVH update method
  • Works well with wide classes of dynamic scenes
  • I mproves the performance of ray tracing
  • I mproves the performance of ray tracing

9

slide-10
SLIDE 10

Our Contributions Our Contributions

Proposes a novel algorithm to selectively

  • Proposes a novel algorithm to selectively

restructure BVHs [Yoon et al., EGSR 07]

  • Selective restructuring operations
  • Selective restructuring operations
  • Two probabilistic metrics: culling efficiency and

restructuring benefit g

Restructure Restructure Refit Refit

10

BVH

slide-11
SLIDE 11

Example of Exploding Dragon Model Dragon Model

# f i t ti Ray tracing time (sec): # of intersections Ray tracing time (sec): construction + traversal

BV refitting Complete reconstruction Selective restructuring restructuring

11

slide-12
SLIDE 12

Runtime Captured Video – BART Model (65K triangles) BART Model (65K triangles)

Compared with the BV refitting method

  • Compared with the BV refitting method

E bl d i E bl d i Enabled primary Enabled primary & shadow rays & shadow rays Single thread Single thread

12

slide-13
SLIDE 13

Probabilistic BVH Metrics for Ray Tracing for Ray Tracing

Culling efficiency

  • Culling efficiency
  • Quantifies the quality of any sub-BVHs
  • Measures the expected # of intersection tests
  • Measures the expected # of intersection tests

for a ray

  • Restructuring benefit
  • Predicts the performance improvement

Predicts the performance improvement

  • Measures improved culling efficiency when

restructuring sub-BVHs

13

slide-14
SLIDE 14

Culling Efficiency Metric Culling Efficiency Metric

Measure the expected # of intersection

  • Measure the expected # of intersection

tests for a ray

  • Measured in a view-independent manner
  • Measured in a view-independent manner
  • Recursively computed with child nodes

considering SAH [Goldsmith and Salmon 87] g [ ] Ray Ray

14

BVH

slide-15
SLIDE 15

Validation of Culling Efficiency Metric Metric

High correlation!

15

A good metric measuring the quality of BVHs

slide-16
SLIDE 16

Restructuring Benefit Metric Restructuring Benefit Metric

Predicts improved culling efficiency when

  • Predicts improved culling efficiency when

restructuring sub-BVHs

  • Should not perform actual restructuring
  • Should not perform actual restructuring
  • Restructure the sub-BVHs
  • Restructure the sub BVHs
  • Only if the restructuring benefit is bigger than

the restructuring cost g

16

slide-17
SLIDE 17

Major Observation Major Observation

Restructuring two nodes with BV overlaps

  • Restructuring two nodes with BV overlaps

can improve the culling efficiency

  • Assumes that restructuring operation will
  • Assumes that restructuring operation will

remove all the BV overlaps

17

A BVH A BVH

slide-18
SLIDE 18

Selective Restructuring Operations Restructuring Operations

18

slide-19
SLIDE 19

Validation of Restructuring Benefit Metric Restructuring Benefit Metric

Compare the expected values against the

  • Compare the expected values against the
  • bserved values
  • 80% of the observed values are 25% off from
  • 80% of the observed values are 25% off from

the expected values

19

slide-20
SLIDE 20

Overall Framework Overall Framework

At a new frame

  • At a new frame
  • Refits BVs with deformed triangles
  • Performs our selective restructuring algorithm
  • Performs our selective restructuring algorithm
  • Runs BVH-based ray tracing

20

slide-21
SLIDE 21

Detecting BV Overlaps Detecting BV Overlaps

Brute force method

  • Brute-force method
  • Requires O(m2) where m is # of BVs

Hierarchical traversal and culling

  • Hierarchical traversal and culling
  • I nspired by efficient collision detection

methods methods

21

slide-22
SLIDE 22

Overview of Selective Restructuring Algorithm Selective Restructuring Algorithm

Hierarchical refinement phase

  • Hierarchical refinement phase
  • Restructuring phase

22

slide-23
SLIDE 23

Overview of Selective Restructuring Algorithm Selective Restructuring Algorithm

Hierarchical refinement phase

  • Hierarchical refinement phase
  • Detects nodes with BV overlaps during

hierarchy traversal hierarchy traversal

  • Restructuring phase

23

slide-24
SLIDE 24

Overview of Selective Restructuring Algorithm Selective Restructuring Algorithm

Hierarchical refinement phase

  • Hierarchical refinement phase
  • Restructuring phase

R t t d i ith hi h b fit i

  • Restructure node pairs with higher benefits in a

greedy manner

24

slide-25
SLIDE 25

Evaluating Our Algorithm Evaluating Our Algorithm

I mplement BVH based ray tracer

  • I mplement BVH-based ray tracer

[Lauterbach et al. 06]

  • Tests with four dynamic scenes having different
  • Tests with four dynamic scenes having different

characteristics

25

slide-26
SLIDE 26

Dynamic Scenes Dynamic Scenes

Cloth simulation (92K)

  • Cloth simulation (92K)

26

slide-27
SLIDE 27

Dynamic Scenes Dynamic Scenes

N body simulation (146K)

  • N-body simulation (146K)

27

slide-28
SLIDE 28

Dynamic Scenes Dynamic Scenes

  • Exploding dragon
  • BART
  • Exploding dragon

(252K)

  • BART

(65K)

28

slide-29
SLIDE 29

Prior Works Prior Works

BV Refitting [Wald et al 07 Bergen 97]

  • BV Refitting [Wald et al. 07, Bergen 97]
  • Complete re-construction from scratch
  • Other two hybrid methods
  • Based on a simple heuristic

RT D f [L t b h t l 06]

  • RT-Deform [Lauterbach et al. 06]
  • LM method [Larsson and Akenine-Möller

06] 06]

29

slide-30
SLIDE 30

Performance Improvement Ratio Performance Improvement Ratio

Complete re-construction Refitting

  • nly

Exploding dragon 8.5 11 g N-body simulation 1.8 > 80 simulation BART 1.1 28 Cloth simulation 4.7 0.96

30

simulation

slide-31
SLIDE 31

Image Shots from Cloth Simulation Simulation

Initial frame

31

slide-32
SLIDE 32

Performance Improvement Ratio Performance Improvement Ratio

Robust performance improvement Robust performance improvement

Complete Refitting

Robust performance improvement Robust performance improvement across our benchmarks across our benchmarks

RT- LM

Complete const. Refitting

  • nly

Exploding RT Deform LM method 1 65 2 16 Exploding dragon

8.5 11

N-body

1 8 80

1.65 2.16 1 25 1 36 N body simulation

1.8 > 80

BART

1 1 28

1.25 1.36 2.5 1.11 BART

1.1 28

Cloth i l ti

4.7 0.96

2.5 1.11 1.03 1.29

32

simulation

4.7 0.96

slide-33
SLIDE 33

Conclusions Conclusions

Novel algorithm to selectively restructure

  • Novel algorithm to selectively restructure

BVHs

  • Based on selective restructuring operations and
  • Based on selective restructuring operations and

two BVH metrics

  • Has more robustness and deals with bigger

gg scene complexity

  • Can be used in other applications
  • Dynamic scenes are available

Dynamic scenes are available

33

slide-34
SLIDE 34

At Next Class At Next Class

Will study collision detection

  • Will study collision detection

34