Top Banner
CONSERVATIVE VOXELIZATION Long Zhang 1 , Wei Chen 1 , David Ebert 2 , Qunsheng Peng 1 1 State Key Lab of CAD&CG, Zhejiang University, Hangzhou, China 2 School of Electrical and Computer Engineering, Purdue University
24

C ONSERVATIVE V OXELIZATION

Jan 03, 2016

Download

Documents

C ONSERVATIVE V OXELIZATION. Long Zhang 1 , Wei Chen 1 , David Ebert 2 , Qunsheng Peng 1 1 State Key Lab of CAD&CG, Zhejiang University, Hangzhou, China 2 School of Electrical and Computer Engineering, Purdue University. Introduction & Previous Work. The Main Idea. - PowerPoint PPT Presentation
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: C ONSERVATIVE     V OXELIZATION

CONSERVATIVE VOXELIZATION

Long Zhang1, Wei Chen1, David Ebert2, Qunsheng Peng1

1 State Key Lab of CAD&CG, Zhejiang University, Hangzhou, China

2 School of Electrical and Computer Engineering, Purdue University

Page 2: C ONSERVATIVE     V OXELIZATION

CGI 2007 – Conservative Voxelization

2 / 24

Contents

Introduction & Previous Work

The Main Idea

Algorithm & Implementation

Experimental Results

Conclusions & Future Work

Page 3: C ONSERVATIVE     V OXELIZATION

Contents

Introduction & Previous WorkIntroduction & Previous WorkIntroduction & Previous WorkIntroduction & Previous Work

The Main Idea

Algorithm & Implementation

Experimental Results

Conclusions & Future Work

3 / 24

CGI 2007 – Conservative Voxelization

Page 4: C ONSERVATIVE     V OXELIZATION

Voxelization

Rasterization – 2D scan-conversion

Voxelization – 3D scan-conversion

rasterization

voxelization

Geometry primitive pixels

Surface model voxels

4 / 24

CGI 2007 – Conservative Voxelization

Page 5: C ONSERVATIVE     V OXELIZATION

Applications

Voxel-ization

3D spatial analysis

volumetric modelling

virtualmedicine

collision detection

physically-based

simulation

haptic rendering

5 / 24

CGI 2007 – Conservative Voxelization

Page 6: C ONSERVATIVE     V OXELIZATION

Hardware-accelerated Voxelization

The basic ideaUse the rasterization functionality (2D scan-conversion) of graphics hardware to accelerate voxel-ization (3D scan-conversion)

Major advantageEfficient

6 / 24

CGI 2007 – Conservative Voxelization

Page 7: C ONSERVATIVE     V OXELIZATION

What’s Conservative?

standard rasterization conservative rasterization

7 / 24

CGI 2007 – Conservative Voxelization

Page 8: C ONSERVATIVE     V OXELIZATION

Why Is It Important?

Example: collision detection withstandard rasterization conservative rasterization

no collision 4 colliding pixels detected

8 / 24

CGI 2007 – Conservative Voxelization

Page 9: C ONSERVATIVE     V OXELIZATION

Contents

Introduction & Previous Work

The Main IdeaThe Main IdeaThe Main IdeaThe Main Idea

Algorithm & Implementation

Experimental Results

Conclusions & Future Work

9 / 24

CGI 2007 – Conservative Voxelization

Page 10: C ONSERVATIVE     V OXELIZATION

Illustration in 2D

The Main Idea

The viewing volumeA triangle to be voxelized

The viewing plane

Orthogonal projection

rasterization

pixels

Previous approaches

• Use the depth value of the pixel center • Generate a single voxel for each pixel

Conservative voxelization

The resulting voxels

• Compute the depth range in each pixel• Generate multiple voxels for each pixel

10 / 24

CGI 2007 – Conservative Voxelization

Page 11: C ONSERVATIVE     V OXELIZATION

Contents

Introduction & Previous Work

The Main Idea

Algorithm & ImplementationAlgorithm & ImplementationAlgorithm & ImplementationAlgorithm & Implementation

Experimental Results

Conclusions & Future Work

11 / 24

CGI 2007 – Conservative Voxelization

Page 12: C ONSERVATIVE     V OXELIZATION

Computing the Depth Range

Full covered pixels Partially covered pixels

• Compute the pixel/triangle intersection• Compute the depth range in the intersection region

12 / 24

CGI 2007 – Conservative Voxelization

Page 13: C ONSERVATIVE     V OXELIZATION

A convex polygon The minimal/maximal depth value lies on one of its

vertices

The idea Compute the depth values at all vertices Compare the depth values to get the depth range

The Pixel/Triangle Intersection

• Compute the intersection of two edges of the triangle and the pixel

• The depth value can be easily calculated;• Is the condition satisfied?

• The depth value is known;• Is the condition satisfied? (easy to know)

13 / 24

CGI 2007 – Conservative Voxelization

Page 14: C ONSERVATIVE     V OXELIZATION

Compute the minimal depth for each pixel

Compute the maximal depth in the same way

The Algorithm

Text

Text

Text

Text

If is inside the triangle

Let be the vertex of the pixel with the minimal depth value

Yes No

Compute the barycentric coordinate

None of the pixel vertices has the minimal depth• Compute the intersection points of triangle/pixel edges• Test if any triangle vertices are in the pixel

=

The computation is fast

The computation is slow

14 / 24

CGI 2007 – Conservative Voxelization

Page 15: C ONSERVATIVE     V OXELIZATION

Handling special cases

The result is conservative

Robustness Issues

Degenerate edges

Replace QR with Pj

Intersection of nearly parallel lines

Replace QT with QR

Degenerate triangles

Replace v1 with Q’L

15 / 24

CGI 2007 – Conservative Voxelization

Page 16: C ONSERVATIVE     V OXELIZATION

Contents

Introduction & Previous Work

The Main Idea

Algorithm & Implementation

Experimental ResultsExperimental ResultsExperimental ResultsExperimental Results

Conclusions & Future Work

16 / 24

CGI 2007 – Conservative Voxelization

Page 17: C ONSERVATIVE     V OXELIZATION

Accuracy Analysis

Theoretically

Accuracy: • A voxel is generated if and only if it intersects with the input model

ConservativeVoxelization

In practice

Slightly over-conservative: • All voxels intersecting the input model are generated• A few voxels not intersecting the input model are also generated

17 / 24

CGI 2007 – Conservative Voxelization

Page 18: C ONSERVATIVE     V OXELIZATION

Timing Statistics

voxelization timings in ms.

Performance comparison between Dong’s and our method

• Efficient for high resolution voxlization• Not very efficient for large model size

Analysis – the major cost lies in computing the depth range for each pixel – the cost is much lower for inner pixels than for boundary pixels – most of the pixels are inner pixels when the resolution is high

18 / 24

CGI 2007 – Conservative Voxelization

Page 19: C ONSERVATIVE     V OXELIZATION

Basic idea Voxelize two models with a common bounding box Compare the resulting volumes

Evaluation Accuracy

• High resolution supported• Classfication – colliding voxels

represent potentially colliding reg-ions, and noncolliding voxels rep-resent non-colliding regions

Efficiency • Computation completely in GPU

• Need to traverse eachmodel once

• Support deforming models

Application to Collision Detection

Collision detection between the buddha model and a morphing hand model. The collision detection is accomplished in approximately 114 ms.

19 / 24

CGI 2007 – Conservative Voxelization

Page 20: C ONSERVATIVE     V OXELIZATION

Demo

20 / 24

CGI 2007 – Conservative Voxelization

Page 21: C ONSERVATIVE     V OXELIZATION

Contents

Introduction & Previous Work

The Main Idea

Algorithm & Implementation

Experimental Results

Conclusions & Future WorkConclusions & Future WorkConclusions & Future WorkConclusions & Future Work

21 / 24

CGI 2007 – Conservative Voxelization

Page 22: C ONSERVATIVE     V OXELIZATION

Conclusions

Technical contributions

1

The ideaWe propose the idea of conservative vox-lization.

2

Algorithm• Fully implemented in the GPU• Conservative• Efficient• Low memory cons-umption• Suitable for def-ormable models

3

ApplicationWe demonstrate the application of our algorithm in collision detection of complex models.

22 / 24

CGI 2007 – Conservative Voxelization

Page 23: C ONSERVATIVE     V OXELIZATION

Future Work

More efficient algorithm Using lookup tables Need new functionalities of graphics hardware

More applications

Solid voxelization

23 / 24

CGI 2007 – Conservative Voxelization