Advanced Computer Graphics CSE 190 [Spring 2015], Lecture 7 Ravi Ramamoorthi

Slides:



Advertisements
Similar presentations
 Over-all: Very good idea to use more than one source. Good motivation (use of graphics). Good use of simplified, loosely defined -- but intuitive --
Advertisements

Surface Simplification using Quadric Error Metrics Guowei Wu.
Surface Simplification Using Quadric Error Metrics Speaker: Fengwei Zhang September
Efficient access to TIN Regular square grid TIN Efficient access to TIN Let q := (x, y) be a point. We want to estimate an elevation at a point q: 1. should.
Advanced Computer Graphics (Fall 2010) CS 283, Lecture 7: Quadric Error Metrics Ravi Ramamoorthi
Advanced Computer Graphics CSE 190 [Spring 2015], Lecture 10 Ravi Ramamoorthi
View-Dependent Simplification of Arbitrary Polygonal Environments David Luebke.
Developer’s Survey of Polygonal Simplification Algorithms Based on David Luebke’s IEEE CG&A survey paper.
Measuring Simplification Error Jonathan Cohen Computer Science Department Johns Hopkins University
MATHIEU GAUTHIER PIERRE POULIN LIGUM, DEPT. I.R.O. UNIVERSITÉ DE MONTRÉAL GRAPHICS INTERFACE 2009 Preserving Sharp Edges in Geometry Images.
5/1/2000Deepak Bandyopadhyay / UNC Chapel Hill 1 Extended Quadric Error Functions for Surface Simplification Deepak Bandyopadhyay COMP 258 F2000 Project.
High-Quality Simplification with Generalized Pair Contractions Pavel Borodin,* Stefan Gumhold, # Michael Guthe,* Reinhard Klein* *University of Bonn, Germany.
New quadric metric for simplifying meshes with appearance attributes Hugues Hoppe Microsoft Research IEEE Visualization 1999 Hugues Hoppe Microsoft Research.
Stefan Gumhold,* Pavel Borodin, # Reinhard Klein # *University of Tuebingen, Germany # University of Bonn, Germany Intersection Free Simplification.
CS CS 175 – Week 4 Mesh Decimation General Framework, Progressive Meshes.

Mesh Simplification Global and Local Methods:
Advanced Computer Graphics (Fall 2010) CS 283, Lecture 4: 3D Objects and Meshes Ravi Ramamoorthi
Polygonal Mesh – Data Structure and Smoothing
Visualization and graphics research group CIPIC January 21, 2003Multiresolution (ECS 289L) - Winter Dynamic View-Dependent Simplification for Polygonal.
Advanced Computer Graphics (Spring 2006) COMS 4162, Lecture 11: Quadric Error Metrics Ravi Ramamoorthi Some material.
Visualization and graphics research group CIPIC January 21, 2003Multiresolution (ECS 289L) - Winter Surface Simplification Using Quadric Error Metrics.
Advanced Computer Graphics (Spring 2005) COMS 4162, Lecture 10: Mesh simplification Ravi Ramamoorthi Many slides courtesy.
CSE554SimplificationSlide 1 CSE 554 Lecture 7: Simplification Fall 2014.
10/14/03CS679 - Fall Copyright Univ. of Wisconsin Last Time Level of Detail.
Surface Simplification Using Quadric Error Metrics Michael Garland Paul S. Heckbert.
A D V A N C E D C O M P U T E R G R A P H I C S CMSC 635 January 15, 2013 Quadric Error Metrics 1/20 Quadric Error Metrics.
Presented By Greg Gire Advised By Zoë Wood California Polytechnic State University.
10/02/2001CS 638, Fall 2001 Today Level of Detail Overview Decimation Algorithms LOD Switching.
DPL10/16/2015 CS 551/651: Simplification Continued David Luebke
Mesh Data Structure. Meshes Boundary edge: adjacent to 1 face Regular edge: adjacent to 2 faces Singular edge: adjacent to >2 faces Mesh: straight-line.
Level of Detail: Choosing and Generating LODs David Luebke University of Virginia.
1 Dr. Scott Schaefer Surface Simplification. 2/32 Surface Simplification Given a closed polygon model, reduce the number of polygons and maintain appearance.
Surface Simplification Using Quadric Error Metrics Garland & Heckbert Siggraph 97.
Levels of Detail COMP 770 3/25/09. Problem Models can be very detailed Look great when close up Last week we explored one way of attacking this problem.
CSE554SimplificationSlide 1 CSE 554 Lecture 7: Simplification Fall 2013.
CSE554Fairing and simplificationSlide 1 CSE 554 Lecture 6: Fairing and Simplification Fall 2012.
Simplifying Surfaces with Color and Texture using Quadric Error Metrics Michael Garland Paul S. Heckbert Carnegie Mellon University October 1998 Michael.
Polygonal Simplification Techniques
Mesh Coarsening zhenyu shu Mesh Coarsening Large meshes are commonly used in numerous application area Modern range scanning devices are used.
Advanced Computer Graphics CSE 190 [Spring 2015], Lecture 8 Ravi Ramamoorthi
CS418 Computer Graphics John C. Hart
Surface Simplification Using Quadric Error Metrics Michael Garland Paul S. Heckbert August 1997 Michael Garland Paul S. Heckbert August 1997.
Advanced Computer Graphics CSE 190 [Spring 2015], Lecture 9 Ravi Ramamoorthi
Greg Humphreys CS445: Intro Graphics University of Virginia, Fall 2003 Subdivision Surfaces Greg Humphreys University of Virginia CS 445, Fall 2003.
Solid Modeling 2002 A Multi-resolution Topological Representation for Non-manifold Meshes Leila De Floriani, Paola Magillo, Enrico Puppo, Davide Sobrero.
ALGORITHMS FOR POLYGON REDUCTION Author: Ing. Roman Schulz FIT VUT, 2008.
Level of Detail: Generating LODs David Luebke University of Virginia.
DPL2/10/2016 CS 551/651: Final Review David Luebke
Mesh Resampling Wolfgang Knoll, Reinhard Russ, Cornelia Hasil 1 Institute of Computer Graphics and Algorithms Vienna University of Technology.
Rendering Large Models (in real time)
COMPUTER GRAPHICS CS 482 – FALL 2015 SEPTEMBER 10, 2015 TRIANGLE MESHES 3D MESHES MESH OPERATIONS.
DPL3/10/2016 CS 551/651: Simplification Continued David Luebke
Advanced Computer Graphics (Spring 2013) Mesh representation, overview of mesh simplification Many slides courtesy Szymon Rusinkiewicz.
Decimation of Triangle Meshes Paper by W.J.Schroeder et.al Presented by Guangfeng Ji.
A Multiphase Approach to Efficient Surface Simplification Michael Garland Eric Shaffer University of Illinois at Urbana–Champaign Michael Garland Eric.

Advanced Computer Graphics
Decimation Of Triangle Meshes
CS Computer Graphics II
CS475 3D Game Development Level Of Detail Nodes (LOD)
Today Runtime LOD Spatial Data Structures Overview
Boundary Representations and Topology
Parallel Model Simplification of Very Large Polygonal Meshes
Craig Schroeder October 26, 2004
Jarek Rossignac GVU Center Georgia Institute of Technology
Meshes.
Visibility Preserving Terrain Simplification An Experimental Study
Chap 10. Geometric Level of Detail
Subdivision Surfaces 고려대학교 컴퓨터 그래픽스 연구실 cgvr.korea.ac.kr.
Presentation transcript:

Advanced Computer Graphics CSE 190 [Spring 2015], Lecture 7 Ravi Ramamoorthi

To Do  Assignment 1, Due Apr 24  Any last minute issues or difficulties?  Starting Geometry Processing  Assignment 2 due May 15  This lecture starts discussing relevant content  Please START EARLY. Can do most after this week  Contact us for difficulties, help finding partners etc.

Motivation  A polygon mesh is a collection of triangles  We want to do operations on these triangles  E.g. walk across the mesh for simplification  Display for rendering  Computational geometry  Best representations (mesh data structures)?  Compactness  Generality  Simplicity for computations  Efficiency

Desirable Characteristics 1  Generality – from most general to least  Polygon soup  Only triangles  2-manifold: ≤ 2 triangles per edge  Orientable: consistent CW / CCW winding  Closed: no boundary  Compact storage Mesh Data Structures

Desirable characteristics 2  Efficient support for operations:  Given face, find its vertices  Given vertex, find faces touching it  Given face, find neighboring faces  Given vertex, find neighboring vertices  Given edge, find vertices and faces it touches  These are adjacency operations important in mesh simplification (homework), many other applications

Outline  Independent faces  Indexed face set  Adjacency lists  Winged-edge  Half-edge Overview of mesh decimation and simplification

Independent Faces Faces list vertex coordinates  Redundant vertices  No topology information Face Table F 0 : (x 0,y 0,z 0 ), (x 1,y 1,z 1 ), (x 2,y 2,z 2 ) F 1 : (x 3,y 3,z 3 ), (x 4,y 4,z 4 ), (x 5,y 5,z 5 ) F 2 : (x 6,y 6,z 6 ), (x 7,y 7,z 7 ), (x 8,y 8,z 8 ) F0F0F0F0 F1F1F1F1 F2F2F2F2

Indexed Face Set  Faces list vertex references – “shared vertices”  Commonly used (e.g. OFF file format itself)  Augmented versions simple for mesh processing Vertex Table v 0 : (x 0,y 0,z 0 ) v 1 : (x 1,y 1,z 1 ) v 2 : (x 2,y 2,z 2 ) v 3 : (x 3,y 3,z 3 ) v 4 : (x 4,y 4,z 4 ) Face Table F 0 : 0, 1, 2 F 1 : 1, 4, 2 F 2 : 1, 3, 4 Note CCW ordering F0F0F0F0 F1F1F1F1 F2F2F2F2 v0v0v0v0 v1v1v1v1 v3v3v3v3 v4v4v4v4 v2v2v2v2

Indexed Face Set  Storage efficiency?  Which operations supported in O(1) time? Vertex Table v 0 : (x 0,y 0,z 0 ) v 1 : (x 1,y 1,z 1 ) v 2 : (x 2,y 2,z 2 ) v 3 : (x 3,y 3,z 3 ) v 4 : (x 4,y 4,z 4 ) Face Table F 0 : 0, 1, 2 F 1 : 1, 4, 2 F 2 : 1, 3, 4 Note CCW ordering F0F0F0F0 F1F1F1F1 F2F2F2F2 v0v0v0v0 v1v1v1v1 v3v3v3v3 v4v4v4v4 v2v2v2v2

Efficient Algorithm Design  Can sometimes design algorithms to compensate for operations not supported by data structures  Example: per-vertex normals  Average normal of faces touching each vertex  With indexed face set, vertex  face is O(n)  Naive algorithm for all vertices: O(n 2 )  Can you think of an O(n) algorithm?

Efficient Algorithm Design  Can sometimes design algorithms to compensate for operations not supported by data structures  Example: per-vertex normals  Average normal of faces touching each vertex  With indexed face set, vertex  face is O(n)  Naive algorithm for all vertices: O(n 2 )  Can you think of an O(n) algorithm?  Useful to augment with vertex  face adjacency  For all vertices, find adjacent faces as well  Can be implemented while simply looping over faces

Outline  Independent faces  Indexed face set  Adjacency lists  Winged-edge  Half-edge Overview of mesh decimation and simplification

Full Adjacency Lists  Store all vertex, face, and edge adjacencies F0F0F0F0 F1F1F1F1 F2F2F2F2 v0v0v0v0 v1v1v1v1 v3v3v3v3 v4v4v4v4 v2v2v2v2 e2e2e2e2 e0e0e0e0 e3e3e3e3 e4e4e4e4 e6e6e6e6 e1e1e1e1 e5e5e5e5 Edge Adjacency Table e 0 : v 0, v 1 ; F 0,ø; ø,e 2,e 1,ø e 1 : v 1,v 2 ; F 0,F 1 ; e 5,e 0,e 2,e 6 … Face Adjacency Table F 0 : v 0,v 1,v 2 ; F 1,ø,ø; e 0,e 2,e 0 F 1 : v 1,v 4,v 2 ; ø,F 0,F 2 ; e 6,e 1,e 5 F 2 : v 1,v 3,v 4 ; ø,F 1,ø; e 4,e 5,e 3 Vertex Adjacency Table v 0 : v 1,v 2 ; F 0 ; e 0,e 2 v 1 : v 3,v 4,v 2,v 0 ; F 2,F 1,F 0 ; e 3,e 5,e 1,e 0 …

Full adjacency: Issues  Garland and Heckbert claim they do this  Easy to find stuff  Issue is storage  And updating everything once you do something like an edge collapse for mesh simplification  I recommend you implement something simpler (like indexed face set plus vertex to face adjacency)

Partial Adjacency Lists  Store some adjacencies, use to derive others  Many possibilities… Edge Adjacency Table e 0 : v 0, v 1 ; F 0,ø; ø,e 2,e 1,ø e 1 : v 1,v 2 ; F 0,F 1 ; e 5,e 0,e 2,e 6 … Face Adjacency Table F 0 : v 0,v 1,v 2 ; F 1,ø,ø; e 0,e 2,e 0 F 1 : v 1,v 4,v 2 ; ø,F 0,F 2 ; e 6,e 1,e 5 F 2 : v 1,v 3,v 4 ; ø,F 1,ø; e 4,e 5,e 3 Vertex Adjacency Table v 0 : v 1,v 2 ; F 0 ; e 0,e 2 v 1 : v 3,v 4,v 2,v 0 ; F 2,F 1,F 0 ; e 3,e 5,e 1,e 0 … F0F0F0F0 F1F1F1F1 F2F2F2F2 v0v0v0v0 v1v1v1v1 v3v3v3v3 v4v4v4v4 v2v2v2v2 e2e2e2e2 e0e0e0e0 e3e3e3e3 e4e4e4e4 e6e6e6e6 e1e1e1e1 e5e5e5e5

Partial Adjacency Lists  Some combinations only make sense for closed manifolds Edge Adjacency Table e 0 : v 0, v 1 ; F 0,ø; ø,e 2,e 1,ø e 1 : v 1,v 2 ; F 0,F 1 ; e 5,e 0,e 2,e 6 … Face Adjacency Table F 0 : v 0,v 1,v 2 ; F 1,ø,ø; e 0,e 2,e 0 F 1 : v 1,v 4,v 2 ; ø,F 0,F 2 ; e 6,e 1,e 5 F 2 : v 1,v 3,v 4 ; ø,F 1,ø; e 4,e 5,e 3 Vertex Adjacency Table v 0 : v 1,v 2 ; F 0 ; e 0,e 2 v 1 : v 3,v 4,v 2,v 0 ; F 2,F 1,F 0 ; e 3,e 5,e 1,e 0 … F0F0F0F0 F1F1F1F1 F2F2F2F2 v0v0v0v0 v1v1v1v1 v3v3v3v3 v4v4v4v4 v2v2v2v2 e2e2e2e2 e0e0e0e0 e3e3e3e3 e4e4e4e4 e6e6e6e6 e1e1e1e1 e5e5e5e5

Outline  Independent faces  Indexed face set  Adjacency lists  Winged-edge  Half-edge Overview of mesh decimation and simplification

Winged, Half Edge Representations  Idea is to associate information with edges  Compact Storage  Many operations efficient  Allow one to walk around mesh  Usually general for arbitrary polygons (not triangles)  But implementations can be complex with special cases relative to simple indexed face set++ or partial adjacency table

Winged Edge  Most data stored at edges  Vertices, faces point to one edge each Edge Adjacency Table e 0 : v 0, v 1 ; F 0, ø; ø,e 2,e 1, ø e 1 : v 1,v 2 ; F 0,F 1 ; e 5,e 0,e 2,e 6 … Face Adjacency Table F 0 : v 0,v 1,v 2 ; F 1, ø, ø; e 0,e 2,e 0 F 1 : v 1,v 4,v 2 ; ø,F 0,F 2 ; e 6,e 1,e 5 F 2 : v 1,v 3,v 4 ; ø,F 1, ø; e 4,e 5,e 3 Vertex Adjacency Table v 0 : v 1,v 2 ; F 0 ; e 0,e 2 v 1 : v 3,v 4,v 2,v 0 ; F 2,F 1,F 0 ; e 3,e 5,e 1,e 0 … F0F0F0F0 F1F1F1F1 F2F2F2F2 v0v0v0v0 v1v1v1v1 v3v3v3v3 v4v4v4v4 v2v2v2v2 e2e2e2e2 e0e0e0e0 e3e3e3e3 e4e4e4e4 e6e6e6e6 e1e1e1e1 e5e5e5e5

Winged Edge  Each edge stores 2 vertices, 2 faces, 4 edges – fixed size  Enough information to completely “walk around” faces or vertices  Think how to implement  Walking around vertex  Finding neighborhood of face  Other ops for simplification v begin v end F left F right e forw,right e forw,left e back,left e back,right

Half Edge  Instead of single edge, 2 directed “half edges”  Makes some operations more efficient  Walk around face very easily (each face need only store one pointer) v begin he next F left he inv

Outline  Independent faces  Indexed face set  Adjacency lists  Winged-edge  Half-edge Overview of mesh decimation and simplification

Mesh Decimation Triangles : 41,855 27,970 20,922 12,939 8,385 4,766 Division, Viewpoint, Cohen

Mesh Decimation  Reduce number of polygons  Less storage  Faster rendering  Simpler manipulation  Desirable properties  Generality  Efficiency  Produces “good” approximation Michelangelo’s St. Matthew Original model: ~400M polygons

Primitive Operations Simplify model a bit at a time by removing a few faces  Repeated to simplify whole mesh Types of operations  Vertex cluster  Vertex remove  Edge collapse (main operation used in assignment)

Vertex Cluster  Method  Merge vertices based on proximity  Triangles with repeated vertices can collapse to edges or points  Properties  General and robust  Can be unattractive if results in topology change

Vertex Remove  Method  Remove vertex and adjacent faces  Fill hole with new triangles (reduction of 2)  Properties  Requires manifold surface, preserves topology  Typically more attractive  Filling hole well not always easy

Edge Collapse  Method  Merge two edge vertices to one  Delete degenerate triangles  Properties  Special case of vertex cluster  Allows smooth transition  Can change topology

Mesh Decimation/Simplification Typical: greedy algorithm  Measure error of possible “simple” operations (primarily edge collapses)  Place operations in queue according to error  Perform operations in queue successively (depending on how much you want to simplify model)  After each operation, re-evaluate error metrics

Geometric Error Metrics  Motivation  Promote accurate 3D shape preservation  Preserve screen-space silhouettes and pixel coverage  Types  Vertex-Vertex Distance  Vertex-Plane Distance  Point-Surface Distance  Surface-Surface Distance

Vertex-Vertex Distance  E = max(|v3−v1|, |v3−v2|)  Appropriate during topology changes  Rossignac and Borrel 93  Luebke and Erikson 97  Loose for topology-preserving collapses v1v1v1v1 v2v2v2v2 v3v3v3v3

Vertex-Plane Distance  Store set of planes with each vertex  Error based on distance from vertex to planes  When vertices are merged, merge sets  Ronfard and Rossignac 96  Store plane sets, compute max distance  Error Quadrics – Garland and Heckbert 96  Store quadric form, compute sum of squared distances a b c dadadada dbdbdbdb dcdcdcdc

Point-Surface Distance  For each original vertex, find closest point on simplified surface  Compute sum of squared distances

Surface-Surface Distance Compute or approximate maximum distance between input and simplified surfaces  Tolerance Volumes - Guéziec 96  Simplification Envelopes - Cohen/Varshney 96  Hausdorff Distance - Klein 96  Mapping Distance - Bajaj/Schikore 96, Cohen et al. 97

Geometric Error Observations  Vertex-vertex and vertex-plane distance  Fast  Low error in practice, but not guaranteed by metric  Surface-surface distance  Required for guaranteed error bounds Edge swap vertex-vertex ≠ surface-surface

Mesh Simplification Advanced Considerations  Type of input mesh?  Modifies topology?  Continuous LOD?  Speed vs. quality?

View-Dependent Simplification  Simplify dynamically according to viewpoint  Visibility  Silhouettes  Lighting Hoppe

7,809 tris 3,905 tris 1,951 tris 488 tris 975 tris Appearance Preserving Caltech & Stanford Graphics Labs and Jonathan Cohen

Summary  Many mesh data structures  Compact storage vs ease, efficiency of use  How fast and easy are key operations  Mesh simplification  Reduce size of mesh in efficient quality-preserving way  Based on edge collapses mainly  Choose appropriate mesh data structure  Efficient to update, edge-collapses are local  Fairly modern ideas (last years)  Think about some of it yourself, see papers given out  We will cover simplification, quadric metrics next