cs-184: computer graphicsvis.berkeley.edu/courses/cs184-fa10/www/slides/23-npr.pdf · 2010. 11....
TRANSCRIPT
CS-184: Computer Graphics
Lecture 23: Non-Photorealistic Rendering
Maneesh AgrawalaUniversity of California, Berkeley
Announcements
Final Project: multiple due dates• Project proposal due Wed Nov 17, 11pm• Progress report 1 due Mon Nov 22, 11pm• Progress report 2 due Wed Dec 1, 11pm• Final report due Wed Dec 8, 11pm
3
Conveying ShapeLines
Shading
From Gooch2
4
Topics
Photographs vs. drawings
Types of lines
Lines of curvature
Silhouettes and contours
Graphical drawing conventions
Texture and tone
Effects of drawing style
5
A photographic depiction captures the exact appearance of the object as we actually see it
Subtle, complex details of coloration and texture are fully represented, with great accuracy
Photograph of the right hip bone (lateral aspect).Johannes W. Rohen and Chihiro Yokochi.
Color Atlas of Anatomy:A Photographic Study of the Human Body,Igaku-Shoin, 1993.
A drawing offers thepossibility to clarify structural or conceptual information that may be difficult to perceive in even a very good photo.
Color drawing of the same subject.
Sobotta Atlas of Human Anatomy, 11th English edition, vol. 2, edited by Jochen Staubesand, translated and edited by Anna N. Taylor,Urban & Schwarzenberg, 1990.
Photo vs. Drawing in Archaeology
James B. Porter. “Relief Monuments”, inThe Student's Guide to Archaeological Illustrating, Brian D. Dillon, ed., Institute of Archaeology, University of California, Los Angeles, 1981
Photo vs. Drawing in Archaeology
James B. Porter. “Relief Monuments”, inThe Student's Guide to Archaeological Illustrating, Brian D. Dillon, ed., Institute of Archaeology, University of California, Los Angeles, 1981
Doorty Cross, Kilfenora Cathedral12th Century
Photo vs. drawing
Hand-drawn illustrations are routinely used to emphasize important features that are difficult to capture in a photograph, while minimizing secondary detail
Drawings are also useful to portray information that cannot be captured or represented photographically, such as hidden surfaces
12
Types of Lines
Lines Signify Features
Geometric features
Creases
Boundaries
Self-intersections
Silhouettes
Isoparametric lines
Parabolic lines
Principal directions of curvature
14
Classic Geometric Line Types
Discontinuities Boundaries Silhouettes
Isoparametric
15
Lines in Images
Photoshop “Find Edges …”16
From Dan Kersten17
Causes of Image Discontinuities
Lines Signify Features
Material features
Texture features
Material boundaries
Lighting features
Attached and unattached shadows
Highlights and highlight boundaries
Isoluminance contours
Luminance extrema
18
How to Create Drawings?
Picasso, Portrait of Igor Stravinsky, 1920. Graphite and charcoal, Musée Picasso, Paris, France
19
Which lines to draw?
How to draw the lines?
20
Two Big Issues
Lines of Curvature
Normal Curvature
Curvature applet: http://www.ies.co.jp/math/java/calc/curve/curve.html22
Space Curve
23
Hilbert and Cohn-Vossen [1952]Geometry and the Imagination
24
Curvature of Surfaces
25
Curvature of Surfaces
Hilbert and Cohn-Vossen [1952]Geometry and the Imagination
26
Curvature of Surfaces
Hilbert and Cohn-Vossen [1952]Geometry and the Imagination
Hilbert and Cohn-Vossen [1952]Geometry and the Imagination
27
Curvature of Surfaces
Hilbert and Cohn-Vossen [1952]Geometry and the Imagination
28
Curvature of Surfaces
Principal Curvatures
Hilbert and Cohn-Vossen [1952]Geometry and the Imagination
29
Lumbosacral and Sacro-iliac fusion . Russell Drake, medical illustrator, Mayo Foundation, 1932.
Russell Drake’s “single line system of shading” the flow of the shape is conveyed
through the directions of the carefully drawn strokes
Artistic Inspiration
V. Interrante
31
Principal Directions
Klein bottleFrom Hertzmann and Zorin
32
K1 = curvature in first principal direction
K2 = curvature in second principal direction
Gaussian curvature: K = K1 K2
Mean curvature: H = (K1 + K2) / 2
K > 0 : elliptic, convex or concave
K < 0 : hyperbolic, saddle-shaped
K = 0 : parabolic, cylindrical or planar
33
Guassian Curvature
Gaussian Curvature
34
Parabolic Lines
Felix Klein: Apollo35
Silhouettes and Contours
Occluding Contour
From Koenderink, Solid Shape
37
Definitions [Koenderink 84]
Rim – the closed space curve on the shape that makes up the silhouette; the space curve is smooth and has no discontinuities except when the surface is discontinuous; the rim is not a plane curve!
Contour – the projection of the rim; the projection may have singularities
Silhouette – the visible part of the contour
38
Occluding Contour
39
DeCarlo, Finkelstein, Rusinkiewicz, Santella, Suggestive contours for conveying shape, SIGGRAPH 2003
DeCarlo, Finkelstein, Rusinkiewicz, Santella, Suggestive contours for conveying shape, SIGGRAPH 2003
Suggestive Contours
40
Suggestive Contours - DEMO
Silhouettes alone Silhouettes + suggestive contours
41
Graphical Drawing Conventions
Drawing Parameters
Haloed lines
Taper near t-junction
Control of line weight
Highlighting
Eye-lashing
Sketchiness
43
45
Illustration Rules (Dooley & Cohen)
Importance• Low• Medium• High
Types• Boundaries• Creases• Silhouettes• Isoparametric
46
Line Weight
From Martin (reproduced in Gooch and Gooch)
Single weight Two weights Distance weighting
47
Highlighting
49
Texture and Tone
Arthur L. Guptill (1976) Rendering in Pen and Ink, Watson-Guptill Publications, figure 94
Stroke Collections
53
Prioritized Stroke Textures[Salisbury et al. ’94][Winkenbach et al. ’94]
Art Maps[Klein et al. 2000]
s
cale
tone
Pen and Ink Illustration [Winkenbach and Salesin 94]
54
tone
te
xtur
e
Pen and Ink Illustration [Winkenbach and Salesin 94]
Collection of stroke images
Will blend → design with high coherence
Stroke nesting property
tone
s
cale
55
Pen and Ink Illustration [Winkenbach and Salesin 94]
56
Pen and Ink Illustration [Winkenbach and Salesin 94]
57
Assessing the effect of non-photorealisic rendered imagesin CAD, Schumann, Strothotte, Raab, Laser, CHI 96
Effects of Drawing Style
59
Comparison:CAD
Comparison: Shaded
60
Comparison: Sketch
61
Draft vs. Presentation
62
Affect vs. Cognition
63
Summary
Illustrations often better than photographs
Enhance important features
Deemphasize unimportant detail
Grand challenge
Produce a good line drawing
What lines, not just how to draw lines
64