Download presentation
Presentation is loading. Please wait.
Published byAlexander Richards Modified over 8 years ago
1
Layout by orngjce223, CC-BY Compact BVH StorageFabianowski ∙ Dingliana Compact BVH Storage for Ray Tracing and Photon Mapping Bartosz Fabianowski ∙ John Dingliana Trinity College Dublin 1 / 22
2
Layout by orngjce223, CC-BY Compact BVH StorageFabianowski ∙ Dingliana Ray Tracing 2 / 22
3
Layout by orngjce223, CC-BY Compact BVH StorageFabianowski ∙ Dingliana Ray Tracing 2 / 22
4
Layout by orngjce223, CC-BY Compact BVH StorageFabianowski ∙ Dingliana Ray Tracing 2 / 22
5
Layout by orngjce223, CC-BY Compact BVH StorageFabianowski ∙ Dingliana Photon Mapping 3 / 22
6
Layout by orngjce223, CC-BY Compact BVH StorageFabianowski ∙ Dingliana Photon Mapping 3 / 22
7
Layout by orngjce223, CC-BY Compact BVH StorageFabianowski ∙ Dingliana Spatial Index (1/2) ● Geometric search through primitives: ● Naïve: ● With spatial index: ● Spatial index: ● Hierarchical organization of primitives ● Traversed recursively from root ● Using stack for branching ● Construction, storage, traversal overhead 4 / 22
8
Layout by orngjce223, CC-BY Compact BVH StorageFabianowski ∙ Dingliana Spatial Index (2/2) ● Kd-Tree: Binary hierarchy of axis-aligned cutting planes ● BVH: Binary hierarchy of tightly fitting axis- aligned bounding boxes 5 / 22
9
Layout by orngjce223, CC-BY Compact BVH StorageFabianowski ∙ Dingliana BVH: Ray Tracing 6 / 22
10
Layout by orngjce223, CC-BY Compact BVH StorageFabianowski ∙ Dingliana BVH: Ray Tracing 6 / 22
11
Layout by orngjce223, CC-BY Compact BVH StorageFabianowski ∙ Dingliana BVH: Ray Tracing 6 / 22
12
Layout by orngjce223, CC-BY Compact BVH StorageFabianowski ∙ Dingliana BVH: Ray Tracing 6 / 22
13
Layout by orngjce223, CC-BY Compact BVH StorageFabianowski ∙ Dingliana BVH: Ray Tracing 6 / 22
14
Layout by orngjce223, CC-BY Compact BVH StorageFabianowski ∙ Dingliana BVH: Photon Mapping 7 / 22
15
Layout by orngjce223, CC-BY Compact BVH StorageFabianowski ∙ Dingliana BVH: Photon Mapping 7 / 22
16
Layout by orngjce223, CC-BY Compact BVH StorageFabianowski ∙ Dingliana BVH: Photon Mapping 7 / 22
17
Layout by orngjce223, CC-BY Compact BVH StorageFabianowski ∙ Dingliana BVH: Photon Mapping 7 / 22
18
Layout by orngjce223, CC-BY Compact BVH StorageFabianowski ∙ Dingliana BVH: Photon Mapping 7 / 22
19
Layout by orngjce223, CC-BY Compact BVH StorageFabianowski ∙ Dingliana BVH: Photon Mapping 7 / 22
20
Layout by orngjce223, CC-BY Compact BVH StorageFabianowski ∙ Dingliana BVH: Photon Mapping 7 / 22
21
Layout by orngjce223, CC-BY Compact BVH StorageFabianowski ∙ Dingliana Storage Overhead ● Each node is bounded by six planes: ● Each node has two child references: ● Total storage overhead per node: 8 / 22
22
Layout by orngjce223, CC-BY Compact BVH StorageFabianowski ∙ Dingliana Child Node Bounding Planes 9 / 22
23
Layout by orngjce223, CC-BY Compact BVH StorageFabianowski ∙ Dingliana Child Node Bounding Planes 9 / 22
24
Layout by orngjce223, CC-BY Compact BVH StorageFabianowski ∙ Dingliana Child Node Bounding Planes 9 / 22
25
Layout by orngjce223, CC-BY Compact BVH StorageFabianowski ∙ Dingliana Child Node Bounding Planes 9 / 22
26
Layout by orngjce223, CC-BY Compact BVH StorageFabianowski ∙ Dingliana Child Node Bounding Planes 9 / 22
27
Layout by orngjce223, CC-BY Compact BVH StorageFabianowski ∙ Dingliana Child Node Bounding Planes 9 / 22
28
Layout by orngjce223, CC-BY Compact BVH StorageFabianowski ∙ Dingliana Child Node Bounding Planes 9 / 22
29
Layout by orngjce223, CC-BY Compact BVH StorageFabianowski ∙ Dingliana Compact BVH ● At most six of a node pair's twelve bounding planes are not inherited from the parent ● Store only non-inherited planes ● Each node pair has up to six bounding planes: ● Each node pair has two child references: ● Total storage overhead per node pair: 10 / 22
30
Layout by orngjce223, CC-BY Compact BVH StorageFabianowski ∙ Dingliana Ray Tracing Traversal (1/4) 11 / 22
31
Layout by orngjce223, CC-BY Compact BVH StorageFabianowski ∙ Dingliana Ray Tracing Traversal (1/4) 11 / 22
32
Layout by orngjce223, CC-BY Compact BVH StorageFabianowski ∙ Dingliana Ray Tracing Traversal (1/4) 11 / 22
33
Layout by orngjce223, CC-BY Compact BVH StorageFabianowski ∙ Dingliana Ray Tracing Traversal (1/4) 11 / 22
34
Layout by orngjce223, CC-BY Compact BVH StorageFabianowski ∙ Dingliana Ray Tracing Traversal (1/4) 11 / 22
35
Layout by orngjce223, CC-BY Compact BVH StorageFabianowski ∙ Dingliana Ray Tracing Traversal (1/4) 11 / 22
36
Layout by orngjce223, CC-BY Compact BVH StorageFabianowski ∙ Dingliana Ray Tracing Traversal (1/4) 11 / 22
37
Layout by orngjce223, CC-BY Compact BVH StorageFabianowski ∙ Dingliana Ray Tracing Traversal (1/4) 11 / 22
38
Layout by orngjce223, CC-BY Compact BVH StorageFabianowski ∙ Dingliana Ray Tracing Traversal (1/4) 11 / 22
39
Layout by orngjce223, CC-BY Compact BVH StorageFabianowski ∙ Dingliana Ray Tracing Traversal (2/4) 12 / 22
40
Layout by orngjce223, CC-BY Compact BVH StorageFabianowski ∙ Dingliana Ray Tracing Traversal (2/4) 12 / 22
41
Layout by orngjce223, CC-BY Compact BVH StorageFabianowski ∙ Dingliana Ray Tracing Traversal (2/4) 12 / 22
42
Layout by orngjce223, CC-BY Compact BVH StorageFabianowski ∙ Dingliana Ray Tracing Traversal (2/4) 12 / 22
43
Layout by orngjce223, CC-BY Compact BVH StorageFabianowski ∙ Dingliana Ray Tracing Traversal (2/4) 12 / 22
44
Layout by orngjce223, CC-BY Compact BVH StorageFabianowski ∙ Dingliana Ray Tracing Traversal (2/4) 12 / 22
45
Layout by orngjce223, CC-BY Compact BVH StorageFabianowski ∙ Dingliana Ray Tracing Traversal (2/4) 12 / 22
46
Layout by orngjce223, CC-BY Compact BVH StorageFabianowski ∙ Dingliana Ray Tracing Traversal (3/4) ● Slabs test: ● Compute interval along ray intersecting node ● Requires all six bounding planes to be known ● Compact BVH: ● Keep track of current interval ● Clip using new bounding planes 13 / 22
47
Layout by orngjce223, CC-BY Compact BVH StorageFabianowski ∙ Dingliana Ray Tracing Traversal (4/4) 14 / 22
48
Layout by orngjce223, CC-BY Compact BVH StorageFabianowski ∙ Dingliana Photon Mapping Traversal (1/3) 15 / 22
49
Layout by orngjce223, CC-BY Compact BVH StorageFabianowski ∙ Dingliana Photon Mapping Traversal (1/3) 15 / 22
50
Layout by orngjce223, CC-BY Compact BVH StorageFabianowski ∙ Dingliana Photon Mapping Traversal (1/3) 15 / 22
51
Layout by orngjce223, CC-BY Compact BVH StorageFabianowski ∙ Dingliana Photon Mapping Traversal (1/3) 15 / 22
52
Layout by orngjce223, CC-BY Compact BVH StorageFabianowski ∙ Dingliana Photon Mapping Traversal (1/3) 15 / 22
53
Layout by orngjce223, CC-BY Compact BVH StorageFabianowski ∙ Dingliana Photon Mapping Traversal (1/3) 15 / 22
54
Layout by orngjce223, CC-BY Compact BVH StorageFabianowski ∙ Dingliana Photon Mapping Traversal (1/3) 15 / 22
55
Layout by orngjce223, CC-BY Compact BVH StorageFabianowski ∙ Dingliana Photon Mapping Traversal (1/3) 15 / 22
56
Layout by orngjce223, CC-BY Compact BVH StorageFabianowski ∙ Dingliana Photon Mapping Traversal (1/3) 15 / 22
57
Layout by orngjce223, CC-BY Compact BVH StorageFabianowski ∙ Dingliana Photon Mapping Traversal (2/3) ● Point test: ● Check whether inside each bounding plane ● Can ignore inherited bounding planes ● Compact BVH: ● Check whether inside new bounding planes ● Distribute results to children using bit masks 16 / 22
58
Layout by orngjce223, CC-BY Compact BVH StorageFabianowski ∙ Dingliana Photon Mapping Traversal (3/3) 17 / 22
59
Layout by orngjce223, CC-BY Compact BVH StorageFabianowski ∙ Dingliana Results: Ray Tracing 18 / 22
60
Layout by orngjce223, CC-BY Compact BVH StorageFabianowski ∙ Dingliana Results: Photon Mapping 19 / 22
61
Layout by orngjce223, CC-BY Compact BVH StorageFabianowski ∙ Dingliana 20 / 22
62
Layout by orngjce223, CC-BY Compact BVH StorageFabianowski ∙ Dingliana Conclusions ● BVH advantage: ● Fast Rebuilds/Refits ● BVH disadvantage: ● Storage Overhead ● Our compact BVH representation: ● Reduces storage overhead ● Reduces traversal bandwidth ● Increases frame rate ● Leaves construction cost unchanged 21 / 22
63
Layout by orngjce223, CC-BY Compact BVH StorageFabianowski ∙ Dingliana Questions? 22 / 22
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.