17
Fast Paint Texture Aaron Hertzmann New York University Pierce Groover CS 395 – NPR Thursday, January 22, 2004

Fast Paint Texture Aaron Hertzmann New York University Pierce Groover CS 395 – NPR Thursday, January 22, 2004

Embed Size (px)

Citation preview

Page 1: Fast Paint Texture Aaron Hertzmann New York University Pierce Groover CS 395 – NPR Thursday, January 22, 2004

Fast Paint Texture

Aaron HertzmannNew York University

Pierce Groover

CS 395 – NPR

Thursday, January 22, 2004

Page 2: Fast Paint Texture Aaron Hertzmann New York University Pierce Groover CS 395 – NPR Thursday, January 22, 2004

Overview

• Texture plays important part in visual appearance

• Methods can take a long time• Let’s build faster/easy algorithm to

work with existing programs and hardware

Page 3: Fast Paint Texture Aaron Hertzmann New York University Pierce Groover CS 395 – NPR Thursday, January 22, 2004

Overview

Page 4: Fast Paint Texture Aaron Hertzmann New York University Pierce Groover CS 395 – NPR Thursday, January 22, 2004

Other work

• Simulated buildup of material– Cockshott et al. ’92, Curtis et al. 97– Processing time, fluid dynamics

• Fixed texture maps– Bronskill, Litwinowicz, Meier,

Markosian– No paint mixing or building– No consistent lighting on individual

strokes

Page 5: Fast Paint Texture Aaron Hertzmann New York University Pierce Groover CS 395 – NPR Thursday, January 22, 2004

Implementation - Overview

• Raw color image (brush strokes)• Height field is computed

– Height of the painted surface at each pixel

• Final painting generated by bump-mapping the raw image (Phong shading)

Page 6: Fast Paint Texture Aaron Hertzmann New York University Pierce Groover CS 395 – NPR Thursday, January 22, 2004

Brush Strokes

• Hertzmann and Perlin 2000– Could be any type of stroke though

• Brush stroke specified by a smooth curve – brush radius – solid color.– texture mapped

• Brush strokes are tesselated as triangle strips

Page 7: Fast Paint Texture Aaron Hertzmann New York University Pierce Groover CS 395 – NPR Thursday, January 22, 2004

Brush Strokes

Opacity Map

Page 8: Fast Paint Texture Aaron Hertzmann New York University Pierce Groover CS 395 – NPR Thursday, January 22, 2004

Base Image

• Render a color image– Paint color for each

pixel, without lighting

• Composite every brush stroke in back-to-front order– Use opacity map and

paint color

Page 9: Fast Paint Texture Aaron Hertzmann New York University Pierce Groover CS 395 – NPR Thursday, January 22, 2004

Height Map

• Per-pixel height of the painted surface.• Initialized to black (zero height)• Height determined by texture map, then…

– First strokes are drawn very dark, later strokes drawn lighter.

– Boundaries between the two appear as height discontinuities

• Note that the height map is not cumulative. – Adding stroke heights difficult to prevent

hidden strokes

Page 10: Fast Paint Texture Aaron Hertzmann New York University Pierce Groover CS 395 – NPR Thursday, January 22, 2004

Height Map

Texture MapHeight Field

Page 11: Fast Paint Texture Aaron Hertzmann New York University Pierce Groover CS 395 – NPR Thursday, January 22, 2004

Lighting

• Bump-map original flat image using directional derivatives from height map– Phong shading

• Done!

Page 12: Fast Paint Texture Aaron Hertzmann New York University Pierce Groover CS 395 – NPR Thursday, January 22, 2004

Results

Page 13: Fast Paint Texture Aaron Hertzmann New York University Pierce Groover CS 395 – NPR Thursday, January 22, 2004

Results

Page 14: Fast Paint Texture Aaron Hertzmann New York University Pierce Groover CS 395 – NPR Thursday, January 22, 2004

Results

Page 15: Fast Paint Texture Aaron Hertzmann New York University Pierce Groover CS 395 – NPR Thursday, January 22, 2004

Results

Page 16: Fast Paint Texture Aaron Hertzmann New York University Pierce Groover CS 395 – NPR Thursday, January 22, 2004

Future Work

• New types of stroke textures and new lighting functions

• Hardware vertex shaders

• Paint textures have the shiny, static appearance of viscous oil paint – More styles could probably be achieved with

suitable stroke textures, height and opacity textures.

Page 17: Fast Paint Texture Aaron Hertzmann New York University Pierce Groover CS 395 – NPR Thursday, January 22, 2004

Thank You

Questions?