Non photorealistic Rendering

Similar documents
Non photorealistic Rendering

NPR. CS 334 Non-Photorealistic Rendering. Daniel G. Aliaga

Real-Time Hatching. Abstract. 1 Introduction

Preprint draft: to appear in ACM SIGGRAPH do not distribute. Real-Time Hatching

Seamless Integration of Stylized Renditions in Computer-Generated Landscape Visualization

Non-Photorealistic Rendering

12/3/2007. Non-Photorealistic Rendering (NPR) What is NPR exactly? What is NPR exactly? What is NPR exactly? What is NPR exactly?

Fine Tone Control in Hardware Hatching

Art Based Rendering of Fur by Instancing Geometry

Real-Time Charcoal Rendering Using Contrast Enhancement Operators

INSPIRE: An Interactive Image Assisted Non-Photorealistic Rendering System

Real-Time Pen-and-Ink Illustration of Landscapes

NPR.js : A JavaScript library for Interactive Non- Photorealistic Rendering in WebGL. Michael Price ScM Thesis Project Documentation

View-Dependent Particles for Interactive Non-Photorealistic Rendering

A model to blend renderings

View-Dependent Particles for Interactive Non-Photorealistic Rendering

Nonphotorealistic Virtual Environment Navigation from Images

A GPU-Based Approach to Non-Photorealistic Rendering in the Graphic Style of Mike Mignola

Art-based Rendering with Continuous Levels of Detail

Enhancing Information on Large Scenes by Mixing Renderings

Detail control in line drawings of 3D meshes

Non-Photo Realistic Rendering. Jian Huang

CMSC 491A/691A Artistic Rendering. Artistic Rendering

I d like to start this section with a quote from David Byrne in an article for Utne. In the article he was mostly talking about 2D design and

Real-Time Painterly Rendering for MR Applications

Expressive rendering. Joëlle Thollot

GPU real time hatching

Medical Visualization - Illustrative Visualization 2 (Summary) J.-Prof. Dr. Kai Lawonn

Hardware-Accelerated Interactive Illustrative Stipple Drawing of Polygonal Objects Vision, Modeling, and Visualization 2002

Non-Photorealistic Experimentation Jhon Adams

A Survey of Pen-and-Ink Illustration in Non-photorealistic

Nonphotorealism. Christian Miller CS Fall 2011

Art-Based Rendering of Fur, Grass, and Trees

Real-Time Pencil Rendering

WUCSE : Painting lighting and viewing effects

WYSIWYG NPR: Drawing Strokes Directly on 3D Models

Types of Computer Painting

Real-time non-photorealistic rendering

IEEE TRANSACTIONS ON VISUALIZATION AND COMPUTER GRAPHICS, VOL. 12, NO. 1, JANUARY/FEBRUARY

Fast silhouette and crease edge synthesis with geometry shaders

Non-Photorealistic Rendering (NPR) Christian Richardt, Rainbow Group

Artistic Silhouettes: A Hybrid Approach

Rendering Silhouettes with Virtual Lights

Real-Time Halftoning: A Primitive For Non-Photorealistic Shading

Paint by Numbers and Comprehensible Rendering of 3D Shapes

A Hybrid Approach to Real-Time Abstraction

3 NON-PHOTOREALISTIC RENDERING FOR OUTDOOR SCENE Irene Liew Suet Fun Mohd Shahrizal Sunar

Stylized Rendering of 3D Scanned Real World Environments

D animation. Advantages of 3-D3. Advantages of 2-D2. Related work. Key idea. Applications of Computer Graphics in Cel Animation.

CS452/552; EE465/505. Finale!

Nonphotorealistic rendering

Non-Photorealistic Rendering: From a general view to Suggestive contours

A Loose and Sketchy Approach in a Mediated Reality Environment

Image-Space Painterly Rendering

MIX RENDERINGS TO FOCUS PLAYER'S ATTENTION

Segmentation-Based 3D Artistic Rendering

Non-photorealistic Rendering

Simple Silhouettes for Complex Surfaces

Introduction. Illustrative rendering is also often called non-photorealistic rendering (NPR)

Rendering Nonphotorealistic Strokes with Temporal and Arc-Length Coherence

Tonal Art Maps with Image Space Strokes

Interactive Volume Illustration

Tutorial on GPU Programming #2. Joong-Youn Lee Supercomputing Center, KISTI

Photorealism vs. Non-Photorealism in Computer Graphics

Published Research on Line Drawings from 3D Data

Real-Time Rendering of Watercolor Effects for Virtual Environments

Stroke-based Real-time. Non-Photorealistic Rendering

EFFICIENT STIPPLE RENDERING

Real-Time Watercolor Illustrations of Plants Using a Blurred Depth Test

CMSC 491A/691A Artistic Rendering. Announcements

SEVER INSTITUTE OF TECHNOLOGY MASTER OF SCIENCE DEGREE THESIS ACCEPTANCE. (To be the first page of each copy of the thesis)

2.5D Cartoon Models. Abstract. 1 Introduction. 2 Related Work. Takeo Igarashi The University of Tokyo. Frédo Durand MIT CSAIL. Alec Rivers MIT CSAIL

Effectiveness of Silhouette Rendering Algorithms in Terrain Visualisation

Stylizing 2.5-D Video

A Multiresolution Model for Non-photorealistic Rendering of Trees

Painterly Rendering Framework from Composition

Chapter 3 ATI. Jason L. Mitchell

Employing Approximate 3D Models to Enrich Traditional Computer Assisted Animation

Real-Time Non- Photorealistic Rendering

Advanced Computer Graphics: Non-Photorealistic Rendering

Chromatic Aberration. CEDEC 2001 Tokyo, Japan

Stylistic Reuse of View-Dependent Animations

Stroke Pattern Analysis and Synthesis

Non-Photorealistic Virtual Environments

Computer-Generated Pen & Ink Illustration

Sketchy Shade Strokes

Decoupling Strokes and High-Level Attributes for Interactive Traditional Drawing


CS 354R: Computer Game Technology

THE combination of Darwin s theory and computer graphics

Feature Lines on Surfaces

Level of Details in Computer Rendering

Stylized strokes for coherent line drawings

Stylized Hatching for 3D Animation

ITS 102: Visualize This! Lecture 7: Illustrative Visualization. Introduction

Interactive Exploration of Remote Isosurfaces with Point-Based Non-Photorealistic Rendering

Image Precision Silhouette Edges

Pipeline Operations. CS 4620 Lecture Steve Marschner. Cornell CS4620 Spring 2018 Lecture 11

Lecture 13: Reyes Architecture and Implementation. Kayvon Fatahalian CMU : Graphics and Imaging Architectures (Fall 2011)

Multiresolution Meshes. COS 526 Tom Funkhouser, Fall 2016 Slides by Guskov, Praun, Sweldens, etc.

Transcription:

EECS 487 Non photorealistic Rendering Lee Markosian December 11, 2006

Whether to use photorealism depends on the purpose of the image: Documentation Illustration Story telling Expression

Whether to use photorealism depends on the purpose of the image: Training/simulation (yes) Documentation (yes) Illustration (not usually) Story telling (sometimes) Expression (sometimes)

Qualities of hand drawn images Many details left out Some details emphasized Stylization / abstraction used to evoke complex things Recognizable individual style

Dr. Seuss

Realistic modeling and rendering of plant ecosystems, SIGGRAPH 1998

Monet

Uri Shulevitz

Charles Burns

Louise Gordon

Vesalius (1514 1564)

David Suter

talk overview motivation technical illustration pen & ink rendering painterly rendering graftals stroke based rendering tonal art maps

Technical illustration Saito and Takahashi, Siggraph 90 Purpose: render 3D models in styles that are more comprehensible Method: Render various intermediate images Do image processing operations on them Combine the results

Problem Parameters need careful tuning for good results Can be a problem in animations if frequent parameter tuning is needed!

talk overview motivation technical illustration pen & ink rendering painterly rendering graftals stroke based rendering tonal art maps

Pen and Ink Winkenbach and Salesin, Siggraph 94 Purpose: render 3D models as pen & ink drawings Method: annotate model with procedural textures Render tonal reference image Use it to guide pen and ink textures

Pen and Ink Salisbury, Anderson, Lischinski and Salesin, Siggraph 96 Purpose: define a scale independent representation for pen & ink images

Scaling with fixed number of strokes: bad

Scaling with variable number of strokes: good

Salisbury et al.: method store lo res greyscale image annotated with discontinuities filter greyscale image to desired size, run stroke generation algorithm on it repeatedly try to generate a stroke at random location in image keep stroke if it does not exceed target

Detect sharp features, then modify blurring algorithm to preserve them

Problems Only produces still images Would not provide temporal coherence What s the application?

talk overview motivation technical illustration pen & ink rendering painterly rendering graftals stroke based rendering tonal art maps

Painterly rendering: Meier 1996

Painterly rendering Meier, Siggraph 96 Problem: produce animations in a painterly style with temporal coherence of strokes Method: populate surfaces with stroke particles render with the help of reference images

video

Problem Particles have fixed distribution Need prescribed camera path newer work addresses that: A dynamic drawing algorithm for interactive painterly rendering:

talk overview motivation technical illustration pen & ink rendering painterly rendering graftals stroke based rendering tonal art maps

Art based Rendering of Fur, Grass and Trees. Kowalski, Markosian, Northrup, Bourdev, Barzel, Holden & Hughes. SIGGRAPH 1999.

Dr. Seuss

Graftal textures Detail elements (graftals) generated as needed

Graftals simple bit of geometry (e.g. leaf or tuft ) oriented in local frame can choose level of detail

Needed for placement of graftals: Controlled screen space density Placement on surfaces Controlled placement (e.g. only near silhouettes) Persistence between frames

Problems Graftal textures defined in code hard to edit how to integrate with UI? Coherence Graftals still appear/disappear suddenly Better at low frame rates!

Art based Rendering w/ Continuous Levels of Detail. Markosian, Meier, Kowalski, Holden, Northrup, & Hughes. NPAR 2000.

Basic graftals Collection of drawing primitives triangle strips / fans plus strokes Shared vertices Local coordinate frame Tuft: hierarchy of graftals

The local frame Base position (e.g. on surface) y (e.g. surface normal) x (e.g. cross product of y and view y vector) y x canonical space x local frame

Placement and duplication Designer creates a few example graftals Copies can be generated on surfaces explicitly procedurally Random variation can be used copies are not exact

Level of detail (LOD) Graftal computes current LOD Decides which primitives to draw

Computing LOD LOD can be derived from: apparent size orientation elapsed time

σ: ratio of current size to rest size σ =.7 σ=1 σ = 1.4

Orientation Value used to selectively suppress LOD E.g.: 1 v n

Movie

Discussion Coherence: much better! Slower Introducing / removing elements Fading & thinning work well Growing looks creepy LOD mechanism too inflexible Need direct UI

Pen & Ink: trees Deussen and Strothotte, Siggraph 00 Problem: temporally coherent pen and ink rendering of trees Method: Draw leaf entities w/ controlled size/abstraction Do image processing on depth buffer

talk overview motivation technical illustration pen & ink rendering painterly rendering graftals stroke based rendering tonal art maps

WYSIWYG NPR: Drawing Strokes Directly on 3D Models. Kalnins, Markosian, Meier, Kowalski, Lee, Davidson, Webb, Hughes & Finkelstein. SIGGRAPH 2002.

Contributions Direct user control for NPR Better silhouettes New media simulation Stroke synthesis by example Hatching with LODs

Overview of Components Base Coat Brush Style Paper Effect Decals Outlines Hatching

Per stroke: Brush Style Color Width Paper effect Rendered as triangle strips.

Strokes in OpenGL Based on Skeletal strokes Hsu et al., UIST 93

Paper Effect Height field texture: Peaks catch pigment Valleys resist pigment Implementation: Pixel shader

Re map alpha with a paper texture heightfield 1 1 1 a a a 0 a peak 1 0 a valley 1 0 a 1 intermediate

talk overview motivation technical illustration pen & ink rendering painterly rendering graftals stroke based rendering tonal art maps

Real Time Hatching Emil Praun Princeton University Hugues Hoppe Microsoft Research Matthew Webb Princeton University Adam Finkelstein Princeton University

Goal Stroke based rendering of 3D models Strokes convey: tone material shape

Challenges Interactive camera and lighting control Temporal (frame to frame) coherence Spatial continuity Artistic freedom

Approach Set of textures Example stroke Result Mesh Preprocess Real Time

Tonal Art Maps Collection of stroke images Will blend design with high coherence scale Stroke nesting property tone

Generating Tonal Art Maps Draw or import bitmap for one stroke Automatically fill TAM with strokes When placing stroke in an image, add it to all finer & darker images Fill table column by column, coarse to fine Space strokes evenly

Even Spacing of Strokes Choose best stroke from large candidate pool Fitness = uniformity & progress towards tone candidate stroke candidate stroke candidate stroke candidate stroke

Even Spacing of Strokes Choose best stroke from large candidate pool Fitness = uniformity & progress towards tone candidate stroke 1 TAM column (same tone)

Texture Blending tone tone v1 v2 6 way blend final v3

Texture Blending Pack grayscale tones in R,G,B channels 6 tones in 2 textures Use multitexture engine single pass 6 way blend Vertex programs compute blend weights static vertex data!!vp1.0 #Vertex Program for Real-Time Hatching. //output vertex homogeneous coordinates DP4 R2.x, c[0], v[opos]; DP4 R2.y, c[1], v[opos]; DP4 R2.z, c[2], v[opos]; DP4 R2.w, c[3], v[opos]; MOV o[hpos], R2; //stroke texture coordinates, transformed DP3 o[tex0].x, c[4], v[tex0]; DP3 o[tex0].y, c[5], v[tex0]; DP3 o[tex1].x, c[4], v[tex0]; DP3 o[tex1].y, c[5], v[tex0]; // splotch mask coordinates MOV o[tex2], v[tex0]; //get the Gouraud shade DP3 R1, c[8], v[nrml]; //apply clamp-linear tone transfer function MUL R1, R1, c[9].x; ADD R1, R1, c[9].y; MAX R1, R1, c[9].z; MIN R1, R1, c[9].w; //now look up the weights for the TAMs blending EXP R2.y, R1.x; //frac(tone) ARL A0.x, R1.x; MOV R3, c[a0.x + 10]; MAD R3, -R2.y, R3, R3; MAD o[col1], R2.y, c[a0.x + 11], R3; MOV R4, c[a0.x + 20]; MAD R4, -R2.y, R4, R4; MAD o[col0], R2.y, c[a0.x + 21], R4; END

Texturing Arbitrary Surfaces Lapped Textures [Praun et al. 2000]

Direction Field Based on surface principal curvatures Optimized to be smooth [Hertzmann & Zorin 2000] Symmetry: 180º instead of 90º

Result

Result

Result

Summary Real time hatching for NPR Strokes rendered as textures High coherence TAMs prevent blend artifacts 6 way blend very fast on modern graphics

Future Work More general TAMs View dependent stroke direction Automatic indication Bill Plympton

Wednesday last class course evaluations review for final homework due final exam: December 21, 1:30 3:30 pm EECS 1301 1303