preserving sharp edges in geometry images

32
MATHIEU GAUTHIER PIERRE POULIN LIGUM, DEPT. I.R.O. UNIVERSITÉ DE MONTRÉAL GRAPHICS INTERFACE 2009 Preserving Sharp Edges in Geometry Images

Upload: siusan

Post on 24-Feb-2016

60 views

Category:

Documents


0 download

DESCRIPTION

Preserving Sharp Edges in Geometry Images. Mathieu Gauthier Pierre Poulin LIGUM, Dept . I.R.O. Université De Montréal Graphics INTERFACE 2009. Geometry Images. What are they ?. Simple mesh representation data structure - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Preserving  Sharp  Edges  in  Geometry  Images

MATHIEU GAUTHIERPIERRE POULIN

LIGUM, DEPT. I .R .O.UNIVERSITÉ DE MONTRÉAL

GRAPHICS INTERFACE 2009

Preserving Sharp Edges in Geometry Images

Page 2: Preserving  Sharp  Edges  in  Geometry  Images

Geometry Images

Simple mesh representation data structure Encodes mesh geometry and connectivity in

an image-like array

What are they?

257 × 257 Geometry Image

Reconstruction

Vertices Positions4 Neighbours = 1 Quad

Geometry Images Motivation Grid Alignment Sampling Remeshing Results Video Conclusions & Future Work

Page 3: Preserving  Sharp  Edges  in  Geometry  Images

Geometry ImagesHow to create them?

Original Model Cut Sampling Geometry Image

ReconstructionSampling GridParameterization

Geometry Images Motivation Grid Alignment Sampling Remeshing Results Video Conclusions & Future Work

Page 4: Preserving  Sharp  Edges  in  Geometry  Images

Motivation

…And there in lies the problem: The regular grid used to sample the parameterization cannot capture sharp features

The problem

Geometry Images Motivation Grid Alignment Sampling Remeshing Results Video Conclusions & Future Work

Page 5: Preserving  Sharp  Edges  in  Geometry  Images

Motivation

Add constraints such that sharp features align with the sampling grid in the parameterization domain

It makes the process very difficult to converge

Non-linear, energy function is not smooth, infinity or no good solution

One solution

Geometry Images Motivation Grid Alignment Sampling Remeshing Results Video Conclusions & Future Work

Page 6: Preserving  Sharp  Edges  in  Geometry  Images

MotivationSimple example

Slightly perturbating the grid, such as done in dual contouring [JLSW02], might simply and more easily resolve some alignment problems

Geometry Images Motivation Grid Alignment Sampling Remeshing Results Video Conclusions & Future Work

Page 7: Preserving  Sharp  Edges  in  Geometry  Images

Grid Alignment to the Sharp FeaturesIdentifying sharp features

Input 3D Model Parameterization

Sharp Edge Sharp Corner

Chain of Sharp Edges = Sharp Segment

Geometry Images Motivation Grid Alignment Sampling Remeshing Results Video Conclusions & Future Work

Page 8: Preserving  Sharp  Edges  in  Geometry  Images

Grid Alignment to the Sharp FeaturesCorner & Edge Snapping - Part 1

Geometry Images Motivation Grid Alignment Sampling Remeshing Results Video Conclusions & Future Work

Page 9: Preserving  Sharp  Edges  in  Geometry  Images

Grid Alignment to the Sharp FeaturesCorner & Edge Snapping - Part 2

Geometry Images Motivation Grid Alignment Sampling Remeshing Results Video Conclusions & Future Work

Page 10: Preserving  Sharp  Edges  in  Geometry  Images

Grid Alignment to the Sharp FeaturesCorner & Edge Snapping - Part 3

Geometry Images Motivation Grid Alignment Sampling Remeshing Results Video Conclusions & Future Work

Page 11: Preserving  Sharp  Edges  in  Geometry  Images

Sampling

UVs coordinates are no longer implicitWe can no longer use 1 normal per vertex, we

need more, especially for lighting.

What about UVs and normals?

Geometry Images Motivation Grid Alignment Sampling Remeshing Results Video Conclusions & Future Work

Page 12: Preserving  Sharp  Edges  in  Geometry  Images

SamplingNormals

Because of the regular structure of the geometry image and the way we remesh, we will never need more than 8 normals around a vertex (one per octant)

Geometry Images Motivation Grid Alignment Sampling Remeshing Results Video Conclusions & Future Work

Page 13: Preserving  Sharp  Edges  in  Geometry  Images

SamplingNormals of Corners

To sample the normals around a sharp corner, we simply iterate in CCW order between sharp edges, compute the angle-weighted normal and assign it to all the associated octants

Geometry Images Motivation Grid Alignment Sampling Remeshing Results Video Conclusions & Future Work

Page 14: Preserving  Sharp  Edges  in  Geometry  Images

Sampling

For a sample snapped to a sharp edge, the procedure is very similar, only two normals will be computed and stored, in the respective octant

Normals of Sharp Edges

Geometry Images Motivation Grid Alignment Sampling Remeshing Results Video Conclusions & Future Work

Page 15: Preserving  Sharp  Edges  in  Geometry  Images

SamplingBack to Our Example

12

3

4 5

6

78

Geometry Images Motivation Grid Alignment Sampling Remeshing Results Video Conclusions & Future Work

Page 16: Preserving  Sharp  Edges  in  Geometry  Images

SamplingBack to Our Example

12

3

4 5

6

7

8

Geometry Images Motivation Grid Alignment Sampling Remeshing Results Video Conclusions & Future Work

Page 17: Preserving  Sharp  Edges  in  Geometry  Images

SamplingResult

1 Position Image (9x9) 8 Normal Images (9x9)

Geometry Images Motivation Grid Alignment Sampling Remeshing Results Video Conclusions & Future Work

Page 18: Preserving  Sharp  Edges  in  Geometry  Images

RemeshingAlgorithm

Remeshing from geometry images is very similar to the original method

A vertex is created for each image pixelFor each group of four pixels, two triangles

are created…But since we have up to 8 normals per

vertex, more vertices may need to be createdFaces must also be connected to the

appropriate vertices

Geometry Images Motivation Grid Alignment Sampling Remeshing Results Video Conclusions & Future Work

Page 19: Preserving  Sharp  Edges  in  Geometry  Images

Remeshing

1. For each image pixel, we create as many vertices as there are different normals (up to 8) and store them in an array[8]

2. When creating the faces, we use the following rule to select which vertex to connect.

Algorithm

Geometry Images Motivation Grid Alignment Sampling Remeshing Results Video Conclusions & Future Work

Page 20: Preserving  Sharp  Edges  in  Geometry  Images

RemeshingExample

Geometry Images Motivation Grid Alignment Sampling Remeshing Results Video Conclusions & Future Work

Page 21: Preserving  Sharp  Edges  in  Geometry  Images

ResultsSquare Torus (Original Model)

Geometry Images Motivation Grid Alignment Sampling Remeshing Results Video Conclusions & Future Work

Page 22: Preserving  Sharp  Edges  in  Geometry  Images

ResultsSquare Torus (Comparison)

Geometry Images Motivation Grid Alignment Sampling Remeshing Results Video Conclusions & Future Work

Page 23: Preserving  Sharp  Edges  in  Geometry  Images

ResultsSquare Torus (Position and Normal images)

Geometry Images Motivation Grid Alignment Sampling Remeshing Results Video Conclusions & Future Work

Page 24: Preserving  Sharp  Edges  in  Geometry  Images

ResultsFandisk (Original Model)

Geometry Images Motivation Grid Alignment Sampling Remeshing Results Video Conclusions & Future Work

Page 25: Preserving  Sharp  Edges  in  Geometry  Images

ResultsFandisk (Remeshings)

Geometry Images Motivation Grid Alignment Sampling Remeshing Results Video Conclusions & Future Work

129×129 Geometry Images33×33 Geometry Images

Page 26: Preserving  Sharp  Edges  in  Geometry  Images

ResultsFandisk (129×129 Position and Normal images)

Geometry Images Motivation Grid Alignment Sampling Remeshing Results Video Conclusions & Future Work

Page 27: Preserving  Sharp  Edges  in  Geometry  Images

ResultsCSG (Orignal Model and 257×257 Remeshing)

Geometry Images Motivation Grid Alignment Sampling Remeshing Results Video Conclusions & Future Work

Page 28: Preserving  Sharp  Edges  in  Geometry  Images

Results257×257 Positon and Normal Geometry Images

Geometry Images Motivation Grid Alignment Sampling Remeshing Results Video Conclusions & Future Work

Page 29: Preserving  Sharp  Edges  in  Geometry  Images

Results

Start!

Video

Geometry Images Motivation Grid Alignment Sampling Remeshing Results Video Conclusions & Future Work

Page 30: Preserving  Sharp  Edges  in  Geometry  Images

Conclusion

Simple and efficient techniqueDoes not over-constrain the parameterization

processCan be added to any geometry image

generation pipelineCan only encode a maximum of 8 normalsMust store these 8 normals and 1 uv

coordinates

Wrap up

Geometry Images Motivation Grid Alignment Sampling Remeshing Results Video Conclusions & Future Work

Page 31: Preserving  Sharp  Edges  in  Geometry  Images

Future Work

Once the grid is snapped to sharp features, it may be possible to add an extra relaxation step to deform the parameterization and bring back the grid to a regular shape

Try something other than a greedy algorithm, maybe something like a quadric error metric could help find a better overall solution

Geometry Images Motivation Grid Alignment Sampling Remeshing Results Video Conclusions & Future Work

Page 32: Preserving  Sharp  Edges  in  Geometry  Images

Thank You!

Questions? Comments?

Geometry Images Motivation Grid Alignment Sampling Remeshing Results Video Conclusions & Future Work