23
Non-Photorealistic Rendering Mike Wade April 22, 1999

Non-Photorealistic Rendering

Embed Size (px)

DESCRIPTION

Non-Photorealistic Rendering. Mike Wade April 22, 1999. What is Non-Photorealistic Rendering?. Produces images which are non-photorealistic “NPR”. Why NPR?. Sometimes we don’t need/want photographs or rendered images Photographs, renderings might be too “good” - PowerPoint PPT Presentation

Citation preview

Page 1: Non-Photorealistic Rendering

Non-Photorealistic Rendering

Mike Wade

April 22, 1999

Page 2: Non-Photorealistic Rendering

What is Non-Photorealistic Rendering?

• Produces images which are non-photorealistic

• “NPR”

Page 3: Non-Photorealistic Rendering

Why NPR?

• Sometimes we don’t need/want photographs or rendered images

• Photographs, renderings might be too “good”

• Hand-drawn/painted animations are more energetic

Page 4: Non-Photorealistic Rendering

How?

• Pen and Ink

• Toon shading

• Painterly Rendering

Page 5: Non-Photorealistic Rendering

Paint By Numbers:Abstract Image Representations

Paul Haeberli

SIGGRAPH 1990

Page 6: Non-Photorealistic Rendering

Goal

• Convert synthetic or natural scene into impressionistic image

• Created an interactive painting program

• Painting: an ordered list of brush strokes

• User could define:– location, color, size, direction, shape

Page 7: Non-Photorealistic Rendering

Two Approaches to Animation

• Generate a new sequence of stroke attributes for each frame– Coherent?

• Create single array of brush strokes– Move scene behind that array– “Shower Door” effect

Page 8: Non-Photorealistic Rendering

Painterly Rendering for Animation

Barbara J. Meier

SIGGRAPH 1996

Page 9: Non-Photorealistic Rendering

Goal

• Eliminate “shower door”– but not too much

Page 10: Non-Photorealistic Rendering

“Particle System Approach”

• Particle set represents geometry of a surface

• Particles are rendered as 2d brush strokes

Page 11: Non-Photorealistic Rendering

Generating Particle Set

• Surface is known

• Decompose into triangles that represent surface

• Randomly distribute particles into triangles

Page 12: Non-Photorealistic Rendering

Particles Rendered Painterly

• Based upon particle:– orientation– color– size– position

• Transformed to screen space

• Furthest from viewpoint rendered first

Page 13: Non-Photorealistic Rendering

Animation

• Keep track of where the particles move

• Draw each frame as above

Page 14: Non-Photorealistic Rendering

Maintaining Hand-drawedness

• Use randomness– perturb brush stroke attributes– user defined– use same randomness for each frame for each

particle in animation

Page 15: Non-Photorealistic Rendering

A brief interlude of fun

Page 16: Non-Photorealistic Rendering

Processing Images and Video for An Impressionistic Effect

Peter Litwinowicz

SIGGRAPH 1997

Page 17: Non-Photorealistic Rendering

Goal

• Automatically generate impressionistic animations from videovideo

Page 18: Non-Photorealistic Rendering

Generating Strokes

• Strokes have:– position– length– radius– orientation– color

Page 19: Non-Photorealistic Rendering

Injecting randomness

• Used to create hand-drawn look– All previous stroke attributes may be slightly

perturbed– Also: order drawn– User-defined limits

Page 20: Non-Photorealistic Rendering

Stroke Clipping

• Used to show edges

1) Convert to grayscale, blur

2) Find the edges

3) Grow stroke from center until reaches an edge

• Fall-off so the stroke is not perfect

Page 21: Non-Photorealistic Rendering

Orientation

• May use a “fixed” orientation for stroke

• Or: Angle lines normal to gradient of intensity image– Be careful with small gradients

Page 22: Non-Photorealistic Rendering

Rendering Video

• First frame: as described above

• Optical flow is used to find subsequent stroke centers

Page 23: Non-Photorealistic Rendering

Optical Flow

• Avoid sparseness in image– Add stroke centers– DeLaunay triangulation– Mix new strokes in with old

• Avoid clumping– Remove strokes which are “too close”