530 likes | 692 Views
Computer-Generated Watercolor. Cassidy J. Curtis Sean E. Anderson Joshua E. Seims Kurt W. Fleischer David H. Salesin. Outline. Introduction Related work Background Overview Watercolor simulation Rendering Applications Results Conclusion. Introduction.
E N D
Computer-Generated Watercolor Cassidy J. Curtis Sean E. Anderson Joshua E. Seims Kurt W. Fleischer David H. Salesin
Outline • Introduction • Related work • Background • Overview • Watercolor simulation • Rendering • Applications • Results • Conclusion
Introduction • Various artistic effects of watercolor
Related work • Simulating artists’ traditional media and tools • Watercolor : [David Small 1991] • Sumie : [Guo and Kunii 1991] • Commercial package • Fractal Design Painter
Background • Properties of watercolor • Watercolor paper • Pigment • Binder • Surfactant
Background • Watercolor Effects • a) dry-brush • b) Edge darkening • c) Backruns • d) granulation and separation of pigments • e) Flow patterns • f) color glazing
Overview • Computer-generated watercolor 1. Fluid (and pigment) simulation for each glaze 2. Rendering Glaze: physical properties, area
Fluid simulation • Three-layer model
Fluid simulation • Paper Generation • Height field model ( 0 < h < 1 ) • Based on pseudo-random process • Fluid capacity c: proportional to h
Moving Water For each time step Moving Pigments Transferring Pigments Applying Capillary Flow Fluid simulation • Main loop
Moving Water For each time step Moving Pigments Transferring Pigments Applying Capillary Flow Fluid simulation • Main loop
Moving Water Navier-Stoke Eq. Moving Pigments Viscous drag k Transferring Pigments Paper slope h Applying Capillary Flow Mass conserv. Flow outward Moving water • conditions of water 1. To remain within the wet-area mask 2. To flow outward into nearby region 3. To be damped to minimize oscillating waves 4. To be perturbed by the texture of the paper 5. To be affected by local changes 6. To present the edge-darkening effect
Moving Water Moving Pigments Transferring Pigments Applying Capillary Flow Fluid simulation • Configuration • Staggered grid i,j
Moving Water Moving Pigments Transferring Pigments Applying Capillary Flow Fluid simulation • Updating the water velocities • Governing Equation (2D Navier-Stoke Eqn.)
Moving Water Moving Pigments Transferring Pigments Applying Capillary Flow Fluid simulation • Derivation of Navier-Stoke Eqn.(1/5) • Basic Eqn.: • For unit volume:
Moving Water Moving Pigments Transferring Pigments Applying Capillary Flow Control volume solid fluid Fluid simulation • Derivation of Navier-Stoke Eqn.(2/5) • Two kind of measurements
Moving Water Moving Pigments Transferring Pigments Applying Capillary Flow Fluid simulation • Derivation of Navier-Stoke Eqn.(3/5) • Eulerian view
Moving Water Moving Pigments Transferring Pigments Applying Capillary Flow Fluid simulation • Derivation of Navier-Stoke Eqn.(4/5) • Governing Eq.: • Forces: • Gravity: • Viscosity: • Pressure:
Moving Water Moving Pigments Transferring Pigments Applying Capillary Flow Fluid simulation • Derivation of Navier-Stoke Eqn.(5/5) • Navier-Stoke Eqn. • For 2D case,
Moving Water Moving Pigments Transferring Pigments Applying Capillary Flow Fluid simulation • Updating the water velocities • Numerical integration for u
Moving Water Moving Pigments Transferring Pigments Applying Capillary Flow Fluid simulation • Updating the water velocities • Applying paper slope effect: • Applying Drag Force:
Moving Water Moving Pigments Transferring Pigments Applying Capillary Flow Fluid simulation • Mass conservation (1/3) • Divergence free condition
Moving Water Moving Pigments Transferring Pigments Applying Capillary Flow Fluid simulation • Mass conservation (2/3) • Relaxation (iterative procedure)
Moving Water Moving Pigments Transferring Pigments Applying Capillary Flow Fluid simulation • Mass conservation (3/3) • Relaxation (iterative procedure)
Moving Water Moving Pigments Transferring Pigments Applying Capillary Flow Fluid simulation • Edge darkening • To flow outward • Remove some water at the boundary
Moving Water Moving Pigments 0 0 0 1 1 1 0 .1 .4 .6 .9 1 0 0 0 1 1 1 0 .1 .4 .6 .9 1 0 0 0 1 1 1 0 .1 .4 .6 .9 1 Transferring Pigments M M’ 0 0 0 .4 .1 0 Applying Capillary Flow 0 0 0 .4 .1 0 0 0 0 .4 .1 0 (1-M’)M Fluid simulation • Edge darkening dry wet
Moving Water For each time step Moving Pigments Transferring Pigments Applying Capillary Flow Fluid simulation • Main loop
Moving Water Moving Pigments Transferring Pigments Applying Capillary Flow Fluid simulation • Moving Pigments • To move as specified by the velocity field u,v
Moving Water Moving Pigments Transferring Pigments Applying Capillary Flow Fluid simulation • Moving Pigments • To move as specified by the velocity field u,v
Moving Water For each time step Moving Pigments Transferring Pigments Applying Capillary Flow Fluid simulation • Main loop
Moving Water Moving Pigments Adsorption Transferring Pigments Applying Capillary Flow Desorption Fluid simulation • Transferring Pigments • Adsorption and desorption
Moving Water For each time step Moving Pigments Transferring Pigments Applying Capillary Flow Fluid simulation • Main loop
Moving Water Moving Pigments Transferring Pigments Applying Capillary Flow Fluid simulation • Backruns • Diffusing water through the capillary layer • Spreading slowly into a drying region • Transfer water to its dryer neighbors until they are saturated
Fluid simulation • Drybrush effect • By excluding any lower pixel than threshold
Rendering • Optical properties of pigments • Optical composition – subtractive color mixing
S backscattered absorbed K Rendering • Optical properties of pigments • Kubelka-Munk (KM) Model • To compute Reflectance R and Transmittance T using K and S unit length
Rendering • Optical properties of pigments • Kubelka-Munk (KM) Model
Rendering • Optical properties of pigments • Kubelka-Munk (KM) Model • For multiple layers
Rendering • Optical properties of pigments • Kubelka-Munk (KM) Model We need S and K values Make user choose them intuitively
Rendering • Optical properties of pigments • User selects Rw and Rb
Rendering • Optical properties of pigments • User selects Rw and Rb
Applications • 1. Interactive painting with watercolors • 2. Automatic image “watercolorization” • 3. Non-photorealistic rendering of 3D models
Applications • 1. Interactive painting with watercolors
Applications • 2. Automatic image “watercolorization” • Color separation • Brushstroke Planning
Applications • 2. Automatic image “watercolorization” • Color separation • Determine the thickness of each pigment by brute-force search for all color combinations
Applications • 2. Automatic image “watercolorization” • Brushstroke planning
Applications • 3. Non-photorealistic rendering of 3D models • Using “photorealistic” scene of 3D model