30
Rendering Complexity in Computer-Generated Pen-and-Ink Illustrations Brett Wilson & Kwan-Liu Ma The University of California, Davis

Rendering Complexity in Computer-Generated Pen- and-Ink Illustrations Brett Wilson & Kwan-Liu Ma The University of California, Davis

Embed Size (px)

Citation preview

Page 1: Rendering Complexity in Computer-Generated Pen- and-Ink Illustrations Brett Wilson & Kwan-Liu Ma The University of California, Davis

Rendering Complexity in Computer-Generated

Pen-and-Ink Illustrations

Brett Wilson & Kwan-Liu Ma

The University of California, Davis

Page 2: Rendering Complexity in Computer-Generated Pen- and-Ink Illustrations Brett Wilson & Kwan-Liu Ma The University of California, Davis

How would an artist treat this scene?

• Ambiguous boundaries

• Ambiguous depth

Page 3: Rendering Complexity in Computer-Generated Pen- and-Ink Illustrations Brett Wilson & Kwan-Liu Ma The University of California, Davis

Method 1: Abstraction

• Merge similar regions

• Strokes don’t followgeometry exactly

• Good color / texture

Page 4: Rendering Complexity in Computer-Generated Pen- and-Ink Illustrations Brett Wilson & Kwan-Liu Ma The University of California, Davis

Method 2: Separation

• Separate similar regions

• Geometry is clear

• Color is not as true

Page 5: Rendering Complexity in Computer-Generated Pen- and-Ink Illustrations Brett Wilson & Kwan-Liu Ma The University of California, Davis

How can a computermake these decisions?

• Introduction to NPR pipelines

• Hybrid 2D / 3D pipeline

• Abstraction: when and how?– Silhouette rendering– Hatching

Page 6: Rendering Complexity in Computer-Generated Pen- and-Ink Illustrations Brett Wilson & Kwan-Liu Ma The University of California, Davis

Image-based NPR

• Good abstraction• Low detail — always lose information

Image Image

Page 7: Rendering Complexity in Computer-Generated Pen- and-Ink Illustrations Brett Wilson & Kwan-Liu Ma The University of California, Davis

Geometry-based NPR

• Poor abstraction• High detail — gain information

Geometry Image

Page 8: Rendering Complexity in Computer-Generated Pen- and-Ink Illustrations Brett Wilson & Kwan-Liu Ma The University of California, Davis

Geometry rendering techniques

• Hierarchical textures [Winkenbach & Salesin 1994]

• Arbitrary meshes [Girshick et al. 2000]

• Smoothed direction fields [Hertzmann & Zorin 2000]

Page 9: Rendering Complexity in Computer-Generated Pen- and-Ink Illustrations Brett Wilson & Kwan-Liu Ma The University of California, Davis

Neither of these techniquesworks well for complex scenes.

• 2D approach gives too little detail, no relative importance

• 3D approach gives too much detail, hard to pick out important things

• Challenge: Intelligent use of abstraction

Page 10: Rendering Complexity in Computer-Generated Pen- and-Ink Illustrations Brett Wilson & Kwan-Liu Ma The University of California, Davis

2+D NPR processing

• Hamel & Strothotte: Capturing and Re-Using Rendering Styles for NPR [EG ’99]

• Generate multiple renderings• Match image attributes to example

input

• Discard geometry

Page 11: Rendering Complexity in Computer-Generated Pen- and-Ink Illustrations Brett Wilson & Kwan-Liu Ma The University of California, Davis

Tree rendering.

• Deussen & Strothotte: Computer-Generated Pen-and-Ink Illustrations of Trees [SIGGRAPH 2000]

• Generate 2D depth renderings to extract important feature lines of the foliage.

• Requires complex areas (leaves) to be tagged.

Page 12: Rendering Complexity in Computer-Generated Pen- and-Ink Illustrations Brett Wilson & Kwan-Liu Ma The University of California, Davis

A generalized hybrid pipeline.

• Add rendering and segmentation to the middle of the pipeline.

Page 13: Rendering Complexity in Computer-Generated Pen- and-Ink Illustrations Brett Wilson & Kwan-Liu Ma The University of California, Davis

Silhouette rendering

• Generate a complexity map

• Indicates regions of high geometric complexity

• Simplify areas likely to be confusing

Page 14: Rendering Complexity in Computer-Generated Pen- and-Ink Illustrations Brett Wilson & Kwan-Liu Ma The University of California, Davis

A complexity map generatedfrom an edge rendering.Silhouette rendering Complexity map

• Many other ways to measure complexity

Page 15: Rendering Complexity in Computer-Generated Pen- and-Ink Illustrations Brett Wilson & Kwan-Liu Ma The University of California, Davis

Silhouette image should match a grayscale rendering.

Edges Target

Too light Too dark

Page 16: Rendering Complexity in Computer-Generated Pen- and-Ink Illustrations Brett Wilson & Kwan-Liu Ma The University of California, Davis

Resulting edge rendering

• Use Deussen’s technique to keep edges in order of importance

• Add occluded edgesfor darkening

Page 17: Rendering Complexity in Computer-Generated Pen- and-Ink Illustrations Brett Wilson & Kwan-Liu Ma The University of California, Davis

Grayscale rendering with hatching.

• Artists don’t draw every object with separate strokes

• Small, similar objects grouped and use the same strokes

• Apply based on complexity

Page 18: Rendering Complexity in Computer-Generated Pen- and-Ink Illustrations Brett Wilson & Kwan-Liu Ma The University of California, Davis

Segmentation for hatching

• Use segmentation to identify groups of strokes.

– Depth– Angle

– Color– Texture– …etc.

Page 19: Rendering Complexity in Computer-Generated Pen- and-Ink Illustrations Brett Wilson & Kwan-Liu Ma The University of California, Davis

Notes on segmentation.

• Much easier than general image segmentation

• No image understanding necessary

• Simple segmentation is acceptable– Region growing

Page 20: Rendering Complexity in Computer-Generated Pen- and-Ink Illustrations Brett Wilson & Kwan-Liu Ma The University of California, Davis

Segmentation-based hatching with important silhouette lines.

Page 21: Rendering Complexity in Computer-Generated Pen- and-Ink Illustrations Brett Wilson & Kwan-Liu Ma The University of California, Davis

Primate Chest Isosurface

• 3.5 M triangles

• High detail

• Ambiguous area

Page 22: Rendering Complexity in Computer-Generated Pen- and-Ink Illustrations Brett Wilson & Kwan-Liu Ma The University of California, Davis

Silhouette edges

Page 23: Rendering Complexity in Computer-Generated Pen- and-Ink Illustrations Brett Wilson & Kwan-Liu Ma The University of California, Davis

Fully hatched rendering

Page 24: Rendering Complexity in Computer-Generated Pen- and-Ink Illustrations Brett Wilson & Kwan-Liu Ma The University of California, Davis

The rendering is separated into complex and non-complex regions.

Simple Complex

Page 25: Rendering Complexity in Computer-Generated Pen- and-Ink Illustrations Brett Wilson & Kwan-Liu Ma The University of California, Davis

Hybrid pen/paint rendering

• Hatching fornon-complex areas

• Solid black shadingfor complex areas

• Preserves feel whilesimplifying rendering

Page 26: Rendering Complexity in Computer-Generated Pen- and-Ink Illustrations Brett Wilson & Kwan-Liu Ma The University of California, Davis

Close-up comparison of hybrid rendering

Page 27: Rendering Complexity in Computer-Generated Pen- and-Ink Illustrations Brett Wilson & Kwan-Liu Ma The University of California, Davis

Sharp boundaries

• Blur operationaffects boundaries

• “Knock out” large objects

• Future work:Clustering in Z?

Page 28: Rendering Complexity in Computer-Generated Pen- and-Ink Illustrations Brett Wilson & Kwan-Liu Ma The University of California, Davis

Conclusion

• Abstraction– When– How

• How will the viewer perceive the scene?– Incorporate segmentation in 3D pipeline

• Clearer, more artistically believable pictures

Page 29: Rendering Complexity in Computer-Generated Pen- and-Ink Illustrations Brett Wilson & Kwan-Liu Ma The University of California, Davis

Future work

• Better models

• Higher-quality hatching

• More rendering styles in general

• More possibilities with segmentation

Page 30: Rendering Complexity in Computer-Generated Pen- and-Ink Illustrations Brett Wilson & Kwan-Liu Ma The University of California, Davis

Thank You

• Funded by the U.S. National Science Foundation under– ACI 9983641 (PECASE

award)– ACI 0325934 (ITR)– ACI 0222991