Cel Shading Jason McCollum. Overview Nonphotorealistic Rendering (NPR) Cel-shading Concepts Demonstration.

Slides:



Advertisements
Similar presentations
Saito, T. and Takahashi, T. Comprehensible Rendering of 3-D Shapes Proc. of SIGGRAPH '90 Genesis of Image Space NPR.
Advertisements

CS 352: Computer Graphics Chapter 7: The Rendering Pipeline.
Ray tracing. New Concepts The recursive ray tracing algorithm Generating eye rays Non Real-time rendering.
Non-Photorealistic Rendering FORMS. Mesh (~170) Parametric (~16) Implicit/CSG (~9) Volumetric (~28) 3D Object Representation in NPR Point Cloud (~4)
Computer Graphics Visible Surface Determination. Goal of Visible Surface Determination To draw only the surfaces (triangles) that are visible, given a.
Non-Photorealistic Rendering: Toon Shading David Luebke University of Virginia.
Hardware Support for Non-photorealistic Rendering: A summary Paper last updated by Ramesh Raskar February 2002 Presented by Rachel Probert.
Real-Time Rendering SPEACIAL EFFECTS Lecture 03 Marina Gavrilova.
黃聰賢. Light Position Mesh Polygon Shadow Polygon  Clear color buffer and stencil buffer  Render the scene with ambient only.
Computer Graphics Sohaib A Khan CS101 Wk02 Topical Lecture.
CS5500 Computer Graphics © Chun-Fa Chang, Spring 2007 CS5500 Computer Graphics April 19, 2007.
Practical and Robust Stenciled Shadow Volumes for Hardware-Accelerated Rendering Cass Everitt and Mark J. Kilgard Speaker: Alvin Date: 5/28/2003 NVIDIA.
Computer Graphics 14: Surface Detection Methods
Shadow Silhouette Maps Pradeep Sen, Mike Cammarano, Pat Hanrahan Stanford University.
Hidden Surface Elimination Wen-Chieh (Steve) Lin Institute of Multimedia Engineering I-Chen Lin’ CG Slides, Rich Riesenfeld’s CG Slides, Shirley, Fundamentals.
Shadow Algorithms Gerald Matzka Computer Science Seminar.
Suggestive Contours Final programming assignment Advanced topics in Computer Graphics.
The edge buffer : A data structure for easy silhouette rendering by John W. Buchanan and Mario C. Sousa.
Vertices and Fragments III Mohan Sridharan Based on slides created by Edward Angel 1 CS4395: Computer Graphics.
Ever wonder how they made STAR WARS or TOY STORY? The development of Computer Graphics is responsible for a revolution in art and media. Starting with.
The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Adrian Ilie Non-Photorealistic Rendering Techniques for a Game Engine COMP 238 Final Project.
Non-photorealistic Rendering Pablo Picasso - The Bird Cage No electrons were harmed during the production of this presentation.
Non-Photorealistic Rendering Greg Turk College of Computing and GVU Center.
Non-Photorealistic Rendering - This is the attempt to make a realistic scene or object look as if it were hand drawn.
Week 14 - Wednesday.  What did we talk about last time?  Collision handling  Collision detection  Collision determination  Collision response  BSPs.
Computer Graphics Shadows
Art-Based Rendering of Fur, Grass, and Trees Michael A. Kowalski, Lee Markosian, J.D. Northrup, Lubomir Bourdev, Ronen Barzel.
Computer-Generated Pen- and-Ink Illustration Georges Winkenbach, David H. Salesin.
Under the Hood: 3D Pipeline. Motherboard & Chipset PCI Express x16.
Shadows Computer Graphics. Shadows Shadows Extended light sources produce penumbras In real-time, we only use point light sources –Extended light sources.
Animations By Georgia Waldram-Higham. CGI-(Computer generated imagery) Computer-generated imagery (CGI) is the application of computer graphics to create.
03/30/05© 2005 University of Wisconsin NPR Today “Stylized Rendering Techniques for Scalable Real-Time 3D Animation”, Adam Lake, Carl Marshall, Mark Harris.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 10: Computer Graphics Computer Science: An Overview Tenth Edition.
Technology and Historical Overview. Introduction to 3d Computer Graphics  3D computer graphics is the science, study, and method of projecting a mathematical.
3D Visualisation of Simulation Data. Informal Seminar 08/03/2004. By Chris Sweet.
CSE 381 – Advanced Game Programming Basic 3D Graphics
Walk-Through Illustrations Frame-Coherent Pen-and-Ink Style in a Game Engine Bert Freudenberg Maic Masuch Thomas Strothotte Institut für Simulation und.
Lecture by: Martin Deschamps CSE 4431
VIS Group, University of Stuttgart Tutorial T4: Programmable Graphics Hardware for Interactive Visualization Non-photorealistic rendering (Daniel Weiskopf)
Implementation II Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico.
Non-Photorealistic Rendering: Toon Shading David Luebke University of Virginia.
Ramesh Raskar University of North Carolina at Chapel Hill Ramesh Raskar University of North Carolina at Chapel Hill Image Precision Silhouette Edges Michael.
Computer Graphics Lecture 08 Fasih ur Rehman. Last Class Ray Tracing.
Review on Graphics Basics. Outline Polygon rendering pipeline Affine transformations Projective transformations Lighting and shading From vertices to.
Cel shading By jared brock.
Honours Graphics 2008 Session 12. Today’s focus Non-photorealistic rendering …other topics requested in class…
A Very Brief Overview of Non-Photorealistic Rendering Conrad Albrecht-Buehler Graduate Thesis Seminar September 24, 2001.
NPR Animation Starcraft in Cartoon Speaker: Shuen-Huei Guan 2001/1/8.
Computer-Generated Medical, Technical, and Scientific Illustration SIGGRAPH 2005 Course #31 Half-Day, Tuesday, 2 August, 8:30 am - 12:15 pm Level: Intermediate.
Computer Graphics I, Fall 2010 Implementation II.
Non-Photorealistic Rendering FORMS. Model dependent Threshold dependent View dependent Outline form of the object Interior form of the object Boundary.
Real Time Nonphotorealistic Rendering. How to achieve real time NPR? Economy of line: present a lot of information with very few strokes. Silhouettes.
Nonphotorealistic rendering Computational Photography, Bill Freeman Fredo Durand May 9, 2006 Drawing from: NPR Siggraph 1999 course, Green et al.
Painterly Rendering for Animation Introduction speaks of focus and detail –Small brush strokes focus and provide detail –Large strokes are abstract and.
Non-Photorealistic Rendering CS 446: Real-Time Rendering & Game Technology David Luebke University of Virginia.
Isometric Drawings & Orthographic Drawings Tutorial 5d.
CS 445 / 645: Introductory Computer Graphics Review.
Shadows David Luebke University of Virginia. Shadows An important visual cue, traditionally hard to do in real-time rendering Outline: –Notation –Planar.
1 Computer Graphics Week11 : Hidden Surface Removal.
Non-Photorealistic Rendering FORMS. Model dependent Threshold dependent View dependent Outline form of the object Interior form of the object Boundary.
Non-photorealistic rendering
Week 14 - Wednesday CS361.
Non-Photorealistic Rendering
Non-Photorealistic Rendering Techniques for a Game Engine
Stylized Environmental Rendering
Cel Shading Jason McCollum.
Non-Photorealistic Rendering (NPR)
Non-Photorealistic Rendering (NPR)
Presentation transcript:

Cel Shading Jason McCollum

Overview Nonphotorealistic Rendering (NPR) Cel-shading Concepts Demonstration

Why NPR? Expression Communication  Emotion  Mood Flexibility  Change styles simply by changing rendering method. Image source: NYU Media Research LAB, Original: NPR:

Example: Image source: [Strothotte T., Schlechtweg, S. 2002]  Each rendering has a different “feel”.  Bottom 2 images would most likely be presented to customer as concept art.  Top 2 images would most likely be presented to a customer as the final design.

Cel Shading Also called Cartoon Shading, or Hard Shading. Named after the process of inking and coloring cels (clear plastic sheets) in hand- drawn animation. 3D objects look like a 2D cartoon. Two steps: Shading, Outline Drawing

Cel-Shading Example Image source: Intel Corporation,

Shading 1D Textures – a 1 x n texture. Texture Coordinate: Consider this texture: Texture Coordinate:

Choosing Texture Coordinate Use light equation to pick a texture coordinate. Recall the lighting model: nl θ eye

Choosing Texture Coordinate LIGHT COSθ TEXTURE n l 1 0 0˚0˚90˚ l l l l

Outlining When is an edge part of the object outline? 1. Border – The edge is not shared. 2. Silhouette – An edge is shared between a front- facing and back-facing polygon. 3. Hard edges – An edge shared by polygons that meet within some angle threshold (0° through 180°). Border Silhouette Hard Edges

Algorithms Software:(after drawing shading) Build an edge list. for each edge in edge list if edge not shared then draw edge. if edge belongs to front-facing and back-facing polygon then draw edge if edge belongs to two front-facing polygons that meet within some threshold then draw edge Hardware: (after drawing shading) Use Z-Buffer and hardware support for drawing front-facing or back-facing polygons.

Using the OpenGL pipeline 1. Set Z-Buffer comparison to less than or equal. ::glDepthFunc(GL_LEQUAL) 2. Tell the hardware to draw only back-facing polygons, and to draw them in wireframe mode. ::glCullFace(GL_FRONT) ::glPolygonMode(GL_BACK, GL_LINE) 3. Set line width > 1.0 for outlines ::glLineWidth(w) 4. Draw model.

Using the Hardware (continued) + = The border comes from the Z-Buffer test. The only edges of the back-facing wireframe that are drawn are the edges that are at the same depth as the shaded front-facing polygons (i.e., silhouette edges). Shading Back faces of wireframe sphere Final cell-shaded sphere

Trade Offs SoftwareHardware Have to maintain an edge list. No additional data structures. Outline can be drawn in the same rendering pass as the shading. Outline requires another rendering pass. Allows borders, outlines, and hard edges. Draws only silhouettes and certain borders. More difficult to implement.Very easy to implement.

Real-time Demonstration Cel Shading in GEE

Examples Left: Screenshot from the game XIII (UbiSoft), an example of real-time cel shading. Right: Image from Hotaru, a short animation created using a cel-shading plugin (unReal) for Lightwave3D.

Related Resources NeHe’s cel-shading tutorial: lesson 37. Many resources for cel shading: BESM – Freeware (source code available) plugin for Lightwave 3D: Hotaru animation - XIII game -

Academic Resources Lake, A., Marshall, C., Harris, M., and Blackstein, M. Stylized rendering techniques for scalable real-time 3d animation. Proceedings of NPAR 2000, Ramesh Raskar. Hardware support for non-photorealistic rendering. Proceedings of SIGGRAPH/Eurographics Workshop on Graphics Hardware, pages , August L. Markosian, M. Kowalski, S. Trychin, and J. Hughes. Real-Time NonPhotorealistic Rendering. In SIGGRAPH 97 Conference Proceedings, August Gooch B., Gooch A. Non-Photorealistic Rendering. A.K. Peters, (available in Noble Library) Strothotte T., Schlechtweg, S. Non-Photorealistic Computer Graphics: Modeling, Rendering, and Animation. Morgan Kaufmann Publishers, (available in Noble Library)