Mesh Color Cem Yuksel John Keyser Donald H. House Texas A&M University SIGGRAPH 2010 2010/12/06...

28
Mesh Color Cem Yuksel John Keyser Donald H. House Texas A&M University SIGGRAPH 2010 2010/12/06 Xiang

Transcript of Mesh Color Cem Yuksel John Keyser Donald H. House Texas A&M University SIGGRAPH 2010 2010/12/06...

Page 1: Mesh Color Cem Yuksel John Keyser Donald H. House Texas A&M University SIGGRAPH 2010 2010/12/06 Xiang.

Mesh ColorCem Yuksel John Keyser Donald H. House

Texas A&M University

SIGGRAPH 2010

2010/12/06 Xiang

Page 2: Mesh Color Cem Yuksel John Keyser Donald H. House Texas A&M University SIGGRAPH 2010 2010/12/06 Xiang.

Outline

1. Introduction2. Mesh Color Structure3. Mesh Color Properties4. Filtering5. Experimental Result6. Disscusion7. Conclusion8. Reference

Page 3: Mesh Color Cem Yuksel John Keyser Donald H. House Texas A&M University SIGGRAPH 2010 2010/12/06 Xiang.

1. Introduction

2D texture

3D texture

TextureMapping

Some problem & Some challenge

Page 4: Mesh Color Cem Yuksel John Keyser Donald H. House Texas A&M University SIGGRAPH 2010 2010/12/06 Xiang.

Texture Mapping Challenge

• 2D texture− Seams− No local texture detail adjustment− Very sensitive to model topology

• 3D texture− Challenge to One-to-one mapping− Sharp and thin edge requires high textue resolution to

avoid color bleeding− Slightest change in the textured 3D model may require to

regenerate map− Big memory requirement

Color bleeding

Page 5: Mesh Color Cem Yuksel John Keyser Donald H. House Texas A&M University SIGGRAPH 2010 2010/12/06 Xiang.

Mesh Color Structure

Number of color samples per vertex = 1Number of color samples per edge =

Number of color samples per face =

With different resolution, Add color samples on triangle.

Page 6: Mesh Color Cem Yuksel John Keyser Donald H. House Texas A&M University SIGGRAPH 2010 2010/12/06 Xiang.

Mesh Color Properties No mapping No discontinuities (no seams) Guaranteed one-to-one correspondence Correct MIP-map filtering Local resolution adjustment Permits model editing and subdivision Compatible with current graphics pipeline

Page 7: Mesh Color Cem Yuksel John Keyser Donald H. House Texas A&M University SIGGRAPH 2010 2010/12/06 Xiang.

Mesh Color Structure

The 3D surface position of any color sample can be computed using barycentric coordinates based on the index of the color sample.

[1,0,0]

[0,1,0] [0,0,1]

The barycentric coordinate of Color Sample Cij

Like standard map, mesh colors can be usable in the current graphics pipeline.

Page 8: Mesh Color Cem Yuksel John Keyser Donald H. House Texas A&M University SIGGRAPH 2010 2010/12/06 Xiang.

Mesh Color Structure

• Colors are shared along edges - Guaranteed continuity

Page 9: Mesh Color Cem Yuksel John Keyser Donald H. House Texas A&M University SIGGRAPH 2010 2010/12/06 Xiang.

Mesh Color Structure

• Color sample density can be concentrated on areas with hight detail - achieving maximum texture detail with minimal memory consumption

Non-uniform Face Resolution

Page 10: Mesh Color Cem Yuksel John Keyser Donald H. House Texas A&M University SIGGRAPH 2010 2010/12/06 Xiang.

Mesh Color Structure

• Color sample density can be concentrated on areas with hight detail - achieving maximum texture detail with minimal memory consumption

Non-uniform Face Resolution Shared Edge

Page 11: Mesh Color Cem Yuksel John Keyser Donald H. House Texas A&M University SIGGRAPH 2010 2010/12/06 Xiang.

Editting Mesh Color Geometry

• Mesh colors can easily support most other mesh editing operations without the need for resampling.

Page 12: Mesh Color Cem Yuksel John Keyser Donald H. House Texas A&M University SIGGRAPH 2010 2010/12/06 Xiang.

Other Mesh

• Quad Mesh can use bilinear coordinates.

triangulate the polygonposition sample use bilinear interpolation

Page 13: Mesh Color Cem Yuksel John Keyser Donald H. House Texas A&M University SIGGRAPH 2010 2010/12/06 Xiang.

How to project to screen pixel?

Page 14: Mesh Color Cem Yuksel John Keyser Donald H. House Texas A&M University SIGGRAPH 2010 2010/12/06 Xiang.

Nearest Filtering

Find the nearest triangle, and use the barycentric coordinates to interpolate the color of the red point.

Page 15: Mesh Color Cem Yuksel John Keyser Donald H. House Texas A&M University SIGGRAPH 2010 2010/12/06 Xiang.

Nearest Filtering

Interpolation with weight from the points of the triangle

Page 16: Mesh Color Cem Yuksel John Keyser Donald H. House Texas A&M University SIGGRAPH 2010 2010/12/06 Xiang.

Nearest Filtering

Page 17: Mesh Color Cem Yuksel John Keyser Donald H. House Texas A&M University SIGGRAPH 2010 2010/12/06 Xiang.

Linear Filtering

• Staircase artifacts of nearest-filtering can be hidden by linear filtering.

Nearest filtering Linear filtering

blending

Page 18: Mesh Color Cem Yuksel John Keyser Donald H. House Texas A&M University SIGGRAPH 2010 2010/12/06 Xiang.

Mip-map FilteringMIP-map filtering

R=8 R=4 R=2 R=1

Face & Edge Vertex

Page 19: Mesh Color Cem Yuksel John Keyser Donald H. House Texas A&M University SIGGRAPH 2010 2010/12/06 Xiang.

FilteringStaircase artifact

Under sampling artifact

blurring

Page 20: Mesh Color Cem Yuksel John Keyser Donald H. House Texas A&M University SIGGRAPH 2010 2010/12/06 Xiang.

Filtering

• Correct Filtering - Mesh Colors result is the same as 2D Texture

Page 21: Mesh Color Cem Yuksel John Keyser Donald H. House Texas A&M University SIGGRAPH 2010 2010/12/06 Xiang.

Experiment Result

Page 22: Mesh Color Cem Yuksel John Keyser Donald H. House Texas A&M University SIGGRAPH 2010 2010/12/06 Xiang.

Experiment Result

Page 23: Mesh Color Cem Yuksel John Keyser Donald H. House Texas A&M University SIGGRAPH 2010 2010/12/06 Xiang.

Experiment Result

Memory Efficient

Page 24: Mesh Color Cem Yuksel John Keyser Donald H. House Texas A&M University SIGGRAPH 2010 2010/12/06 Xiang.

Experiment Result

Page 25: Mesh Color Cem Yuksel John Keyser Donald H. House Texas A&M University SIGGRAPH 2010 2010/12/06 Xiang.

Performance

Fast

under Hardware support

Page 26: Mesh Color Cem Yuksel John Keyser Donald H. House Texas A&M University SIGGRAPH 2010 2010/12/06 Xiang.

Discussion

• Periodic texture tiling is not supported.• If discontinuities is desired, mesh color can’t

support.• Non-equal edge – result isn’t good

Use polygon meshUse subdivide Non-equal edge

Page 27: Mesh Color Cem Yuksel John Keyser Donald H. House Texas A&M University SIGGRAPH 2010 2010/12/06 Xiang.

Conclusion

1. Easy to use2. Easy to implement3. High quality4. High performance5. Mesh Colors are ideally suited for

– 3D painting– Storing precomputed data

• Ambient occlusion

6. Mesh Colors provide a solution to the fundamental problems of texture mapping.

Page 28: Mesh Color Cem Yuksel John Keyser Donald H. House Texas A&M University SIGGRAPH 2010 2010/12/06 Xiang.

Reference

• [1] L´E VY, B., AND MALLET, J.-L. 1998. Non-distorted texture mapping for sheared triangulated meshes. In Proceedings of SIGGRAPH’98, 343–352.

• [2] BENNIS, C., V´EZIEN, J.-M., AND IGL´ESIAS, G. 1991. Piecewise surface flattening for non-distorted texture mapping. Proc. SIGGRAPH ’91, ACM SIGGRAPH Comp. Graph. 25, 4, 237–246.