Post on 11-Oct-2020
1
Simulating Drawing
• Start with line-drawing methods
• Modify algorithms to produce lines that look hand-drawn
COSC 455
2
Simulating Drawing
• Simulating charcoal pencil
• Simulating colored pencil
• Simulating pen-and-ink
COSC 455
3
Simulating Drawing
• Simulating graphite pencil
? Sousa and Buchanan (’99)
• Simulating colored pencil
• Simulating pen-and-ink
COSC 455
4
Sousa and Buchanan
• Simulate graphite pencil.
• looked at physical interaction of drawing materials(pencil, paper, eraser and blender).
• Not physically accurate, but visually correct.
COSC 455
5
Sousa and Buchanan
• consider techniques an artist must master.
• order pencil materials are used
• applied pressure
• how the pencil is shaped
• how the pencil is held
COSC 455
6
Sousa and Buchanan
• Drawing primitives : build up tones and texturesusing the drawing materials.
• Rendering : Using the drawing primitives to outline,shade, shadow, or textures images based on refe-rence images or 3d objects emulating pencil dra-wings.
• High level tools : Allow user control of the drawingprocess.
COSC 455
7
Sousa and Buchanan
example pen-cil/blender/eraser swatchesstrokes and marks on manydifferent types of paper.
COSC 455
8
Sousa and Buchanan
Looked at these with a scanning electron microscope.
COSC 455
9
Sousa & Buchanan: Pencil Model
• Degree of hardness
? 19 degrees, determined by graphite and lead con-tent, more graphite → softer and thicker.
? wax is a lubricant? % mass of graphite, clay, and wax particles
• Lead thickness
? Linear interpolation between 2mm and 4mm.
• Tip shape
• Pressure distribution coefficients
COSC 455
10
Sousa & Buchanan: Pencil Modelnumber graphite clay wax thickness
9H .41 .53 .05 2mm8H .44 .50 .057H .47 .47 .05
. 2H .60 .34 .05H .63 .31 .05F .66 .28 .05
HB .68 .26 .05B .71 .23 .05
2B .74 .20 .053B .76 .18 .05
. 8B .90 .04 .05 4mm
COSC 455
11
Pencil Model: Tip shape
COSC 455
12
Pencil Model: Pressure
c, ci ∈ 0, 1c is the center pres-sure and the ci arefor the tip outline ver-tices.
COSC 455
13
Paper Model
• Paper weight (thickness)
• Amount of lead to fill surface of grain
• Amount of lead to fill volume of grain
• Grain porous threshold
• Lead threshold volume
COSC 455
14
Paper ModelDigital samples of paper textures
COSC 455
15
Paper ModelPaper grain (roughness) is a height field.
COSC 455
16
Pencil/Paper Interaction
COSC 455
17
Pencil/Paper Interaction
COSC 455
18
Pencil/Paper Interaction
• Pencil angle, paper grain, pressure, pressure distri-bution, pencil tip, etc.
• As pencil moves across paper the grain ”bitesthelead, depositing pencil materials onto paper.
• The paper may possibly be damaged as well. Theamou
COSC 455
19
Blender and Eraser Modelabsorptive & dispersive properties of lead on paper
COSC 455
20
Blender and Eraser Types and Tips
COSC 455
21
Rendering
a) real, b) automatic with pencil only, c) eraser andblender as well.
COSC 455
22
Rendering
COSC 455
23
Rendering
COSC 455
24
Rendering
COSC 455
25
Rendering
COSC 455
26
3D Rendering
• Render outline sketch using silhouette & crease li-nes.
• Render reference image in greyscale using Phongshading. Tone-match of each face rendered with si-mulated pencil strokes.
COSC 455
27
3D Rendering
Using various pencils and pressures.
COSC 455
28
3D Rendering
Using various tones
COSC 455
29
3D Rendering
COSC 455
30
3D Rendering
COSC 455
31
3D Rendering
COSC 455
32
3D Rendering
COSC 455
33
Colored Pencil Drawings
• Takagi et al. ’99
• volumetric paper model(pulp & binding agent)
• color lead distributed onpaper
• colored particles redistri-buted by brushed water
• volume rendered.
COSC 455
34
Colored Pencil Drawings
COSC 455
35
Pen-and-Ink Illustration
• omit extraneous detail
• focus attention on relevant features
• clarifying and simplifying shapes
• exposing hidden parts
• can use less space
• can be easier to reproduce
• LOD often more natural
COSC 455
36
Pen-and-Ink Illustration
• Stylized illustrations can be more effective than pho-tos
• Anatomy is almost entirely done with illustrations
• Architectural concept models
• assembly instructions
• repair manuals
• economy of expression
COSC 455
38
Pen-and-Ink Illustration
• Winkenbach and Salesin (’94, ’96)
• Looked at how humans produced pen-and-ink illu-strations, then applied these rules and techniques to3D models.
? pen gives off no color or tone? color and shading suggested by combinations of
strokes? covering a large area with tone is time-consuming
and difficult? tone cannot be lightened once it is drawn.
COSC 455
39
Pen-and-Ink Illustration
• Stroke - when the nib contacts the paper tracing outa path with thickness varied by pressure
? Too thin will look washed out, too thick detractsfrom delicate features
? frequently necessary to vary pen position and niboften turns
? strokes should look natural, not mechanical, stro-kes should vary in thickness
? wavy lines indicate an unfinished design.
COSC 455
40
Pen-and-Ink Illustration
• tone - amount of visible light reflected to observerfrom a point
? This must be done using combinations of strokes.
• If the character of the strokes indicating tone are va-ried, they can also be used for texture.
COSC 455
41
Pen-and-Ink Illustration• tones by lines of roughly equal weight and spacing• correct arrangement of adjacent tones more import-
ant than an individual tone• sometimes must force tone by contrast or shadows
to distinguish features/objects• Character of strokes important for conveying texture,
geometry and lighting.
? crisp straight lines for glass? horizontal surfaces hatched with horizontal lines? absence of detail for glare? sketchy lines for old & carful stippling for new
COSC 455
42
Pen-and-Ink Illustration: Outlines• for contours & to mark important interior features
• outline stroke conveys texture: crisp straight lines forhard objects, a variety of lines for soft objects.
• Thick outlines for shadows or to bring foreward.
• Outlines should become ”haloed” and fade awaywhere one object passes behind another obect.
• Outlines must be introduced when omitting tones
• Indication for outlines as important as for tones.
COSC 455
43
Pen-and-Ink Illustration: pipeline• 3D model• Texture - assigned to 3D surface as ”stroke textures”.• Lighting model (Phong)• Visible surface (BSP trees)• Shadows - object-space• Consider 2D adjacency.• “stroke textures” for hatching (no scan conversion)• clip the strokes, then apply waviness• outlines - boundary and interior outlines (suggest
shadow directions or give view-dependent accents)
COSC 455
44
Pen-and-Ink Illustration: Strokescharacter by varying waviness and pressure
pressure even for grain varies between planks
COSC 455
45
Prioritized Stroke Textures
• List of strokes with priority, draw strokes
• in priority order until desired tone reached
• allow the textures to scale well.
COSC 455
46
Strokes Indicate Both Texture and Tone
• cross-hatching
• stippling
• bricks
• shingles
• grass
COSC 455
47
Indication
• suggest texture without drawing every last stroke.
• can make illustration more powerful - suggestion
• economy
• just enough detail in the right places
• fading detail appropriately
• difficult to learn
• They use a semi-automatic way - user specifieswhere detail is needed.
COSC 455
48
Indication: User specified detail
COSC 455
49
Indication: Example without Indication
COSC 455
50
Indication: Example with Indication
COSC 455
51
Outlines
• boundary outlines - surround visible polygons, con-siders adjaceny info and textures of surrounding fa-ces
• interior outlines - used within polygons to suggestshadow dirrection and give view-dependent accents
COSC 455
52
Outlines: View Dependent
COSC 455
53
Texture from Boundary Outlines
COSC 455
54
Texture from Boundary Outlines
Only draw an outline ifinsufficient contrast.
COSC 455
55
Shadows
COSC 455
56
Shadows
COSC 455
57
Shadows
COSC 455
58
Example
COSC 455
59
Pen-and-Ink for Parametric Surfaces
COSC 455
60
Controlled Density
COSC 455
61
Controlled Density
COSC 455
62
Variations in Lighting
COSC 455
63
Examples
COSC 455
64
Examples
COSC 455
65
Examples
COSC 455
66
Pen-and-Ink from Reference Image
Salisbury et al. (’94, ’96)first system (’94) allowed user to paint over referenceimage
COSC 455
67
Pen-and-Ink from Reference Image
Salisbury et al. (’94, ’96)2nd system allows scale-independent illustrations &interactive editing of stroke texture orientation.
COSC 455
68
Pen-and-Ink from Reference Image
COSC 455
69
Pen-and-Ink from Reference Image
COSC 455
70
Pen-and-Ink from Reference Image
COSC 455
71
Pen-and-Ink from Reference Image
COSC 455
72
Pen-and-Ink from Reference Image
COSC 455
73
Watercolor Painting
Curtis et al. ’97
COSC 455
74
Watercolor Painting
• three layer fluid model
? shallow-water - water & pigment flow above paper? pigment-depostion - pigment deposited onto and
lifted from paper? capillary - diffuse absorption via capillary action
• With a bit of physics, water and pigment is movedaround paper, each layer (glaze) is stored.
• glazes are composited using a lighting model thathandles absorption and scattering of light.
COSC 455
75
Watercolor Painting: 3-Layer model
COSC 455
76
Watercolor Painting: Example colors
COSC 455
77
Watercolor Painting: Example colors
COSC 455
78
Interactive Water Coloring (almost)
COSC 455
79
Watercolorization
COSC 455
80
Watercolorization
COSC 455
81
Watercolorization
COSC 455
82
Watercolorization
COSC 455
83
Watercolorization
COSC 455
84
Graftals - Kowalski et al. ’99
rendering fur grassand trees
COSC 455
85
Graftals - Kowalski et al. ’99
COSC 455
86
Graftals - Kowalski et al. ’99
COSC 455
87
Graftals - Kowalski et al. ’99
movie kowalski.mov
COSC 455
88
Painterly Rendering
• Meier ’96 - Disney
• Brush strokes stick to model, not viewplane
• frame-to-frame coherence for animation
COSC 455
89
Painterly Rendering
COSC 455
90
Painterly Rendering
COSC 455
91
Painterly Rendering
COSC 455
92
WYSIWIG NPR - Kalnins, et al. 2002
Draw strokesonto a3D model.
COSC 455
93
WYSIWIG NPR - Kalnins, et al. 2002
COSC 455
94
WYSIWIG NPR - Kalnins, et al. 2002
movie wnpr aud uncmp3.avi
COSC 455
95
Coherent Stylized Silhouettes
Kalnins et al. 2003temporal coherence for outlines
COSC 455
96
Coherent Stylized Silhouettes
movie css-final-divx.aviJot demo
COSC 455
97
Magic Camera
Farell Eaves
98
Magic Camera
Farell Eaves
99
Magic Camera
Farell Eaves
100
Magic Camera
NPR Camera!images by Farell Eaves.
http://www.ljworld.com/section/arts/story/85743/new image every time.
Farell Eaves
101
Magic Camera
Farell Eaves
102
Magic Camera
Farell Eaves
103
Magic Camera
Farell Eaves
104
Magic Camera
Farell Eaves
105
Magic Camera
Farell Eaves
106
Magic Camera
Farell Eaves
107
Magic Camera
Farell Eaves
108
Links
www.cs.utah.edu/npr/pages.cpsc.ucalgary.ca/ mario/
Farell Eaves