The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Cache-Oblivious Mesh Layouts Sung-Eui Yoon, Peter Lindstrom Valerio Pascucci, Dinesh Manocha 1: University.

Slides:



Advertisements
Similar presentations
Geometry Clipmaps: Terrain Rendering Using Nested Regular Grids
Advertisements

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL CULLIDE: Interactive Collision Detection Between Complex Models in Large Environments using Graphics Hardware.
The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Interactive Visualization and Collision Detection using Dynamic Simplification and Cache-Coherent Layouts.
Complete Motion Planning
Multilevel Streaming for Out-of-Core Surface Reconstruction
Least-squares Meshes Olga Sorkine and Daniel Cohen-Or Tel-Aviv University SMI 2004.
Memory-Efficient Sliding Window Progressive Meshes Pavlo Turchyn University of Jyvaskyla.
S. J. Shyu Chap. 1 Introduction 1 The Design and Analysis of Algorithms Chapter 1 Introduction S. J. Shyu.
View-Dependent Simplification of Arbitrary Polygonal Environments David Luebke.
Inter-Surface Mapping John Schreiner, Arul Asirvatham, Emil Praun (University of Utah) Hugues Hoppe (Microsoft Research)
Mesh Layouts for Block-Based Caches Sung-Eui Yoon Peter Lindstrom Lawrence Livermore National Laboratory.
DESIGN OF A GENERIC PATH PATH PLANNING SYSTEM AILAB Path Planning Workgroup.
Proximity Computations between Noisy Point Clouds using Robust Classification 1 Jia Pan, 2 Sachin Chitta, 1 Dinesh Manocha 1 UNC Chapel Hill 2 Willow Garage.
Clustering Geometric Data Streams Jiří Skála Ivana Kolingerová ZČU/FAV/KIV2007.
Contour Tree and Small Seed Sets for Isosurface Traversal Marc van Kreveld Rene van Oostrum Chandrajit Bajaj Valerio Pascucci Daniel R. Schikore.
Martin Isenburg University of North Carolina at Chapel Hill Craig Gotsman Technion - Israel Institute of Technology Stefan Gumhold University of Tübingen.
Haptic Rendering using Simplification Comp259 Sung-Eui Yoon.

Face Fixer Compressing Polygon Meshes with Properties Martin Isenburg Jack Snoeyink University of North Carolina at Chapel Hill.
Martin Isenburg Jack Snoeyink University of North Carolina at Chapel Hill Reverse Decoding of the Edgebreaker Encoding S PIRALE R EVERSI.
The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Quick-VDR: Interactive View-Dependent Rendering of Massive Models Sung-Eui Yoon Brian Salomon Russell Gayle.
UNC at CHAPEL HILL & Ewha Womans University Generalized Penetration Depth Computation Liang-Jun Zhang Gokul Varadhan Dinesh Manocha Dept of Computer Sci.
Adapted from: CULLIDE: Interactive Collision Detection Between Complex Models in Large Environments using Graphics Hardware Naga K. Govindaraju, Stephane.
Lossless Compression of Floating-Point Geometry Martin Isenburg UNC Chapel Hill Peter Lindstrom LLNL Livermore Jack Snoeyink UNC Chapel Hill.
Interactive Shadow Generation in Complex Environments Naga K. Govindaraju, Brandon Lloyd, Sung-Eui Yoon, Avneesh Sud, Dinesh Manocha Speaker: Alvin Date:
Compressing Polygon Mesh Connectivity
Streaming Compression of Triangle Meshes Martin Isenburg University of California at Berkeley Jack Snoeyink University of North Carolina at Chapel Hill.
Ray Tracing Dynamic Scenes using Selective Restructuring Sung-eui Yoon Sean Curtis Dinesh Manocha Univ. of North Carolina at Chapel Hill Lawrence Livermore.
Adaptive Dynamics of Articulated Bodies. Articulated bodies in Computer Graphics – Humans, hair, animals – Trees, forests, grass – Deformable bodies –
Irregular to Completely Regular Meshing in Computer Graphics Hugues Hoppe Microsoft Research International Meshing Roundtable 2002/09/17 Hugues Hoppe Microsoft.
Efficient Fitting and Rendering of Large Scattered Data Sets Using Subdivision Surfaces Vincent Scheib 1, Jörg Haber 2, Ming C. Lin 1, Hans-Peter Seidel.
R-LODs: Fast LOD-based Ray Tracing of Massive Models Sung-Eui Yoon Lawrence Livermore National Lab. Christian Lauterbach Dinesh Manocha Univ. of North.
Accelerating Marching Cubes with Graphics Hardware Gunnar Johansson, Linköping University Hamish Carr, University College Dublin.
The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Constraint-Based Motion Planning using Voronoi Diagrams Maxim Garber and Ming C. Lin Department of Computer.
Martin Isenburg UC Berkeley Streaming Meshes Peter Lindstrom LLNL.
11/28/ Manocha Interactive CGF Computations using COTS Graphics Processors Dinesh Manocha University of North Carolina at Chapel Hill
Out-of-Core Compression for Gigantic Polygon Meshes Martin IsenburgStefan Gumhold University of North CarolinaWSI/GRIS at Chapel Hill Universität Tübingen.
1 A Novel Page-Based Data Structure for Interactive Walkthroughs Behzad Sajadi Yan Huang Pablo Diaz-Gutierrez Sung-Eui Yoon M. Gopi.
Zoltan Szego †*, Yoshihiro Kanamori ‡, Tomoyuki Nishita † † The University of Tokyo, *Google Japan Inc., ‡ University of Tsukuba.
Data Management Techniques Sung-Eui Yoon KAIST URL:
Compressing Multiresolution Triangle Meshes Emanuele Danovaro, Leila De Floriani, Paola Magillo, Enrico Puppo Department of Computer and Information Sciences.
Computer-Aided Design and Manufacturing Laboratory: Rotational Drainability Sara McMains UC Berkeley.
REAL-TIME NAVIGATION OF INDEPENDENT AGENTS USING ADAPTIVE ROADMAPS Avneesh Sud 1, Russell Gayle 2, Erik Andersen 2, Stephen Guy 2, Ming Lin 2, Dinesh Manocha.
Bounds on the Geometric Mean of Arc Lengths for Bounded- Degree Planar Graphs M. K. Hasan Sung-eui Yoon Kyung-Yong Chwa KAIST, Republic of Korea.
RACBVHs: Random-Accessible Compressed Bounding Volume Hierarchies Tae-Joon Kim Bochang Moon Duksu Kim Sung-Eui Yoon KAIST (Korea Advanced Institute of.
Quick-CULLIDE: Efficient Inter- and Intra- Object Collision Culling using Graphics Hardware Naga K. Govindaraju, Ming C. Lin, Dinesh Manocha University.
Interactive Visualization of Exceptionally Complex Industrial CAD Datasets Andreas Dietrich Ingo Wald Philipp Slusallek Computer Graphics Group Saarland.
Random-Accessible Compressed Triangle Meshes Sung-eui Yoon Korea Advanced Institute of Sci. and Tech. (KAIST) Peter Lindstrom Lawrence Livermore National.
Collision and Proximity Queries Dinesh Manocha Department of Computer Science University of North Carolina
Click to edit Master title style HCCMeshes: Hierarchical-Culling oriented Compact Meshes Tae-Joon Kim 1, Yongyoung Byun 1, Yongjin Kim 2, Bochang Moon.
Fast BVH Construction on GPUs (Eurographics 2009) Park, Soonchan KAIST (Korea Advanced Institute of Science and Technology)
Real-time Rendering of Heterogeneous Translucent Objects with Arbitrary Shapes Stefan Kinauer KAIST (Korea Advanced Institute of Science and Technology)
Mesh Coarsening zhenyu shu Mesh Coarsening Large meshes are commonly used in numerous application area Modern range scanning devices are used.
UNC Chapel Hill M. C. Lin Introduction to Motion Planning Applications Overview of the Problem Basics – Planning for Point Robot –Visibility Graphs –Roadmap.
CS270 Project Overview Maximum Planar Subgraph Danyel Fisher Jason Hong Greg Lawrence Jimmy Lin.
Stable 6-DOF Haptic Rendering with Inner Sphere Trees René Weller, Gabriel Zachmann Clausthal University, Germany IDETC/CIE.
PMR: Point to Mesh Rendering, A Feature-Based Approach Tamal K. Dey and James Hudson
Compact, Fast and Robust Grids for Ray Tracing Ares Lagae & Philip Dutré 19 th Eurographics Symposium on Rendering EGSR 2008Wednesday, June 25th.
Compact, Fast and Robust Grids for Ray Tracing
Funnel Sort*: Cache Efficiency and Parallelism
Rendering Large Models (in real time)
1 Cache-Oblivious Query Processing Bingsheng He, Qiong Luo {saven, Department of Computer Science & Engineering Hong Kong University of.
Interactive Continuous Collision Detection for Polygon Soups Xin Huang 11/20/2007.
A Graph Theoretic Approach to Cache-Conscious Placement of Data for Direct Mapped Caches Mirza Beg and Peter van Beek University of Waterloo June
Morphing and Shape Processing
Hybrid Ray Tracing of Massive Models
Design and Analysis of Computer Algorithm (CS575-01)
Physics-based Sound Synthesis with a Novel Friction Model
Cache-Efficient Layouts of BVHs and Meshes
Collision Detection.
Presentation transcript:

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Cache-Oblivious Mesh Layouts Sung-Eui Yoon, Peter Lindstrom Valerio Pascucci, Dinesh Manocha 1: University of North Carolina - Chapel Hill 2: Lawrence Livermore National Laboratory

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Goal Compute cache-coherent layouts of polygonal meshes ♦ For geometric processing and visualization ♦ Handle any kinds of polygonal models (e.g., irregular geometry)

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Motivation High growth rate of computational power of CPUs and GPUs Growth rate during 1993 – 2004 Courtesy:

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Memory Hierarchies and Caches CPU or GPU Fast memory or cache Slow memory Block transfer Disk 10 6 ns Access time: 10 2 ns 10 0 ns

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Cache-Coherent Layouts Cache-Aware ♦ Optimized for particular cache parameters (e.g., block size) Cache-Oblivious ♦ Minimizes data access time without any knowledge of cache parameters ♦ Directly applicable to various hardware and memory hierarchies

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL 82 million triangles Irregular distribution of geometry CAD Model – Double Eagle Tanker Model

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Isosurface and Scanned Models Isosurface 100M triangles St. Matthew 372M triangles

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Main Contribution Algorithm to compute cache- oblivious layouts of polygonal meshes Cache-oblivious metric Multilevel optimization framework Applicable to hierarchical representations

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Live Demo – View- Dependent Rendering (VDR) GeForce Go 6800 Ultra Based on multiresolution hierarchy ♦ Dynamically computes simplification ♦ Cache-oblivious layout is used to minimize GPU vertex cache misses

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Related Work Cache-coherent algorithms Mesh layouts

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Cache-Coherent Algorithms Cache-aware [Coleman and McKinley 95, Vitter 01, Sen et al. 02] Cache-oblivious [Frigo et al. 99, Arge et al. 04] Focus on specific problems such as sorting and linear algebra computations

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Mesh Layouts Rendering sequences ♦ Triangle strips ♦ [Deering 95, Hoppe 99, Bogomjakov and Gotsman 02] Processing sequences ♦ [Isenburg and Gumhold 03, Isenburg and Lindstrom 04] Assume that access pattern globally follows the layout order!

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Mesh Layouts Space-filling curves ♦ [Sagan 94, Velho and Gomes 91, Pascucci and Frank 01, Lindstrom and Pascucci 01, Gopi and Eppstein 04] Assume geometric regularity!

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Outline Overview Cache-oblivious metric Results

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Outline Overview Cache-oblivious metric Results

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Overview Multilevel optimization Cache-oblivious metric Local permutations vava vbvb vdvd vcvc Input graph vava vbvb vdvd vcvc Result 1D layout

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Graph-based Representation Undirected graph, G = (V, E) ♦ Represents access patterns of applications Vertex ♦ Data element ♦ (e.g., mesh vertex or mesh triangle) Edge ♦ Connects two vertices if they are likely to be accessed sequentially vava vbvb vdvd vcvc

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Problem Statement Vertex layout of G = (V, E) ♦ One-to-one mapping of vertices to indices in the 1D layout Compute a that minimizes the expected number of cache misses vava vbvb vdvd vcvc vava vbvb vdvd vcvc 1 234

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Local Permutation Vertex layout

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Terminology Edge span of (v a, v b ) Layout mapping

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Terminology ♦ Set of edges having edge span i in the layout 4

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Terminology Edge span distribution ♦ where i is in [1, n] Edge span 1 Number of edges

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Cache Miss Ratio Function (CMRF), Probability of a cache miss for a given edge span i 0 1 Cache miss ratio = Probability to have a cache miss Edge span 1 n-1 i

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Number of Cache Misses at Runtime Estimated by multiplying two factors ♦ Runtime edge span distribution ♦ CMRF 1D Layout: Edge span 2Edge span 4Edge span ( )

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Number of Cache Misses at Runtime 1D Layout: Edge span 2Edge span 4Edge span Runtime edge span distribution CMRF ( )

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Expected Number of Cache Misses ♦ Approximate runtime edge span distribution with one of the layout Edge span distribution of the layout The number of vertices

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Outline Overview Cache-oblivious metric Results

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Cache-Oblivious Metric Decides if a local permutation reduces number of cache misses ♦ Probabilistic formulation ♦ Reduces to geometric volume computation

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Does a Local Permutation Decrease Cache Misses? ?

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Does a Local Permutation Decrease Cache Misses? 

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Monotonocity of CMRF, Assume CMRF is a monotonically increasing function of edge span 0 1 Cache miss ratio Edge span 1 ∞ i

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Exact Cache-Oblivious Metric where  All the possible cache configurations Monotonicity of CMRF

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Geometric Formulation where Half hyperspace p 2 p 1 0 Closed hyperspace p 2 p 1 0

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Geometric Volume Computation Assume each CMRF to be equally likely Half hyperspace (blue area) ♦ Space of CMRFs that reduce cache misses p 2 p 1 0 where

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Geometric Volume Computation Time complexity ♦ Exact: [Lasserre and Zeron 01] ♦ Approximate: [Kannan et al. 97]

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL p 2 p 1 0 Fast and Approximate Volume Comparison Define a top polytope in closed hyperspace Compute the centroid, C, of the top polytope Top polytope Centroid, C

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL p 2 p 1 0 Fast and Approximate Volume Comparison Use the centroid for approximate volume comparison ♦ The volume containing the centroid is likely to be larger Centroid, C

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Bound of Approximation 0.1% ~ 0.3% compared to the exact metric

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Final Approximate Metric Centroid Pack non-zero to 1,…, m

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Layout Optimization Find an optimal layout that minimizes our metric ♦ Combinatorial optimization problem

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Multilevel Minimization Step 1: Coarsening

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Multilevel Minimization Step 2: Ordering of coarsest graph

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Multilevel Minimization Step 3: Refinement and local optimization

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Outline Overview Cache-oblivious layouts Results

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Layout Computation Time Process 70 million vertices per hour ♦ Takes 2.6 hours to lay out St. Matthew model (372 million triangles) ♦ 2.4GHz of Pentium 4 PC with 1 GB main memory

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Edge Span Distributions of Different Layouts Cache-oblivious layout Spectral layout Original layout Edge span Number of edges >

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Applications View-dependent rendering Collision detection Isocontour extraction

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL View-Dependent Rendering Layout vertices and triangles of CHPM [Yoon et al. 04] ♦ Reduce misses of GPU vertex cache

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL View-Dependent Rendering Models# of Tri. Our layout Simplification layout [Yoon et al. 04] St. Matthew 372M106 M/s23 M/s Isosurface100M90 M/s20 M/s Double Eagle Tanker 82M47 M/s22 M/s 4.5X 2.1X Peak performance: 145 M tri / s on GeForce 6800 Ultra

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Realtime Captured Video – St. Matthew Model

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Comparison with Other Rendering Sequences Our layout Universal rendering sequences [Bogomjakov and Gotsman 2002]

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Comparison with Other Rendering Sequences Our layout [Hoppe 99] Optimized for 16 vertex cache size with FIFO replacement Optimized for no particular cache size

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Performance during View- Dependent Rendering Our layout [Hoppe 99] Optimized for various resolutions Optimized for full resolution

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Comparison with Space Filling Curve on Power Plant Model Our layout Space filling curve (Z-curve)

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Collision Detection Bounding volume hierarchies ♦ Widely used to accelerate the performance of collision detection ♦ Traversed to find contacting area ♦ Uses pre-computed layouts of OBB trees [Gottschalk et al. 96]

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Rigid Body Simulation

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Collision Detection Time 2X on average Depth-first layout Cache-oblivious layout

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Isocontour Extraction Contour tree [van Kreveld et al. 97] Use mesh as the input graph Extract an isocontour that is orthogonal to z-axis Puget sound, 134 M triangles Isocontour z(x,y) = 500m

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Comparison – First Extraction of Z(x,y) = 500m Relative Performance over Z-axis sorted layout Nearly optimized for particular isocontour Disk access time is bottleneck

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Comparison – Second Extraction of Z(x,y) = 500m Relative Performance over Z-axis sorted layout Memory and L1/L2 cache access times are bottleneck

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Limitations Assumptions on CMRF ♦ May not work well for all applications Does not compute global optimum ♦ Greedy solution

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Advantages General ♦ Applicable to all kinds of polygonal models ♦ Works well for various applications Cache-oblivious ♦ Can have benefit from CPU/GPU cache to memory and disk No modification of runtime application ♦ Only layout computation

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL OpenCCL: Cache-Coherent Layouts of Graphs and Meshes Source codes for computing a cache-coherent layout Easy to use CLayoutGraph Graph (NumVertex); Graph.AddEdge (0, 1); Graph.AddEdge (0, 2); Graph.AddEdge (1, 2); int Order [NumVertex]; Graph.ComputeOrdering (Order); Google “Cache Oblivious Mesh Layout” or

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Conclusion Novel algorithm for computing cache-oblivious mesh layouts ♦ Cast the problem as an optimization ♦ Probabilistically compute the expected number of caches misses ♦ Achieve significant improvements (2 to 20X) without modifying runtime applications

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Ongoing and Future Work Apply to other applications ♦ Simplification and approximate collision detection [Yoon et al. 04] ♦ Shortest path computation, etc. Investigate optimality

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Ongoing and Future Work Cache-Oblivious Layouts of Bounding Volume Hierarchies [Yoon and Manocha 05] ♦ Tech. Report, University of North Carolina at Chapel Hill

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Acknowledgements Anonymous donor ♦ Power plant model Digital Michelangelo Project ♦ St. Matthew model at Stanford University LLNL ASCI VIEWS ♦ Isosurface model Newport news shipbuilding ♦ Double eagle tanker

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Acknowledgements Army Research Office DARPA Intel Corporation Lawrence Livermore Nat’l Lab. National Science Foundation Office of Naval Research RDECOM

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Martin Isenburg Dawoon Jung Brandon Lloyd Elise London Brian Salomon Avneesh Sud Acknowledgements

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Questions? Project URL