Walk-Through Illustrations: Frame-Coherent Pen-and-Ink Style in a Game Engine Bert Greudenberg Maic Masuch Thomas Strothotte.

Slides:



Advertisements
Similar presentations
Why is photorealism the aim? People paint! What is NPR? NPR issues NonPhotorealistic Rendering.
Advertisements

1GR2-00 GR2 Advanced Computer Graphics AGR Lecture 17 Radiosity - Conclusion Non-PhotoRealistic Rendering.
9.1si31_2001 SI31 Advanced Computer Graphics AGR Lecture 9 Adding Realism Through Texture.
Saito, T. and Takahashi, T. Comprehensible Rendering of 3-D Shapes Proc. of SIGGRAPH '90 Genesis of Image Space NPR.
Color Wheel Warm Colors Cool Colors Primary Colors: Secondary Colors: Red/MagentaYellowBlue/ Cyan OrangeGreenPurple/violet The three main colors on the.
Week 7 - Monday.  What did we talk about last time?  Specular shading  Aliasing and antialiasing.
TECH 104 – Technical Graphics Communication
Non-Photo Realistic Rendering Jian Huang CS594 Fall 2003 This set of slides are modified from the NPR Course during SIGGRAPH’2003.
Chapter 6: Vertices to Fragments Part 2 E. Angel and D. Shreiner: Interactive Computer Graphics 6E © Addison-Wesley Mohan Sridharan Based on Slides.
17.1 Si31_2001 SI31 Advanced Computer Graphics AGR Lecture 17 Radiosity - Conclusion Non-PhotoRealistic Rendering.
Non-Photorealistic Rendering or More-Interesting Rendering (in a more positive sense) Presented by Adam Smith for CMPS160.
Suggestive Contours Final programming assignment Advanced topics in Computer Graphics.
Computer-Generated Pen-and-Ink Illustration Georges Winkenbach and David H. Salesin University of Washington SIGGRAPH 1994.
Graphics Systems I-Chen Lin’s CG slides, Doug James’s CG slides Angel, Interactive Computer Graphics, Chap 1 Introduction to Graphics Pipeline.
NPR - 2D to 3D, painting and rendering Daniel Teece Walt Disney Feature Animation Daniel Teece Walt Disney Feature Animation
NPR (Non-photorealistic Rendering) Billy Davidson CS 395 Advanced Graphics January 22, 2004.
The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Adrian Ilie Non-Photorealistic Rendering Techniques for a Game Engine COMP 238 Final Project.
Vector vs. Bitmap SciVis V
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 & visualization NPR – Non-photorealistic rendering.
V Obtained from a summer workshop in Guildford County July, 2014
Computer-Generated Pen- and-Ink Illustration Georges Winkenbach, David H. Salesin.
WAWERU HANNAH NYAKIO B02/53847/2012. PERSPECTIVE DRAWING  Perspective drawing is a drawing technique used to illustrate dimension through a flat surface.
Elements of Design. What are they? Line Colour Attributes Shape Categories Space Form.
Shadows Computer Graphics. Shadows Shadows Extended light sources produce penumbras In real-time, we only use point light sources –Extended light sources.
Grafis 3D. What is 3D?  3D Image x, y, z Tell a story, more information  2D Image x, y Communicate something simple (ie. cheat)
Vector vs. Bitmap
Chapter 3 Space. Three Kinds of Space Space as format: size, scale, and presentation. Space as the relationships among objects and the areas surrounding.
Light Using Texture Synthesis for Non-Photorealistic Shading from Paint Samples. Christopher D. Kulla, James D. Tucek, Reynold J. Bailey, Cindy M. Grimm.
09/09/03CS679 - Fall Copyright Univ. of Wisconsin Last Time Event management Lag Group assignment has happened, like it or not.
Walk-Through Illustrations Frame-Coherent Pen-and-Ink Style in a Game Engine Bert Freudenberg Maic Masuch Thomas Strothotte Institut für Simulation und.
CSE 581: Interactive Computer Graphics Spring 2012, UG 4 Tuesday, Thursday – 9:00AM – 10:18AM DL 0317 Raghu Machiraju Slides: Courtesy - Prof. Huamin Wang,
Rendering Complexity in Computer-Generated Pen- and-Ink Illustrations Brett Wilson & Kwan-Liu Ma The University of California, Davis.
Non-Photorealistic Rendering Motivation: Much of the graphical imagery created is not photographic in nature Particularly in some domains: –Art –Animation.
3D animation is rendered clip of animated 3D objects in a 3D environment. An example: Examples of movies released in 3D are Toy Story, Cars, Shrek, Wall-E,
Shader Study 이동현. Vision engine   Games Helldorado The Show Warlord.
1Computer Graphics Implementation II Lecture 16 John Shearer Culture Lab – space 2
Implementation II Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico.
Drawing with Pen and Ink. What’s the big deal? Drawing with pen and ink is different than with pencil For one thing, you can’t use the side of the pen.
Gesture and Contour Drawing!
Non-Photorealistic Rendering: Toon Shading David Luebke University of Virginia.
Realtime NPR Toon and Pencil Shading Joel Jorgensen May 4, 2010.
BUMP-MAPPING SET09115 Intro to Graphics Programming.
Advanced Computer Graphics Spring 2014 K. H. Ko School of Mechatronics Gwangju Institute of Science and Technology.
Orientable Textures for Image- Based Pen-And-Ink Illustration Michael P. Salisbury Michael T. Wong John F. Hughes David A. Salesin SIGGRAPH 1997 Andrea.
The Lit Sphere: A Model for Capturing NPR Shading from Art Peter-Pike Sloan, William Martin, Amy Gooch & Bruce Gooch.
NPR Animation Starcraft in Cartoon Speaker: Shuen-Huei Guan 2001/1/8.
컴퓨터 그래픽스 Real-time Rendering 1. Introduction.
Computer Graphics I, Fall 2010 Implementation II.
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 FORMS. Model dependent Threshold dependent View dependent Outline form of the object Interior form of the object Boundary.
Guilford County SciVis V104.03
Processing Images and Video for An Impressionist Effect Automatic production of “painterly” animations from video clips. Extending existing algorithms.
Applications and Rendering pipeline
Vector vs. Bitmap. Vector Images Vector images (also called outline images) are images made with lines, text, and shapes. Test type is considered to be.
Non-photorealistic rendering
Week 14 - Wednesday CS361.
Chapter 4:- Animation Eyad Alshareef Eyad Alshareef.
Week 7 - Monday CS361.
Project Overview Introduction & Product Analysis
Week 2 - Friday CS361.
Vector vs. Bitmap.
Non-Photorealistic Rendering
Non-Photorealistic Rendering Techniques for a Game Engine
Stylized Environmental Rendering
Five Minute Madness: 30 Years in 30 Minutes
Cel Shading Jason McCollum.
Presentation transcript:

Walk-Through Illustrations: Frame-Coherent Pen-and-Ink Style in a Game Engine Bert Greudenberg Maic Masuch Thomas Strothotte

It Looks All Crappy Cartman: Aw, screw it. It probably isn't all that good anyway. Kyle: Cartman! What are you talking about?! You LOVE Terrance and Phillip! Cartman: Yeah, but the animation's all crappy — it probably can't sustain itself over ninety minutes.

Who wants crappy animation? Tired of the gothic space dungeons? Tired of the gothic space dungeons? Tired of “realistic” animation that fools you for five seconds? Tired of “realistic” animation that fools you for five seconds? You need a change You need a change A non-photorealistic change! A non-photorealistic change!

3D Game Engines 3D game engines have made huge advances 3D game engines have made huge advances Engines primarily still focus on photorealistic images Engines primarily still focus on photorealistic images Game images are technically non photorealistic Game images are technically non photorealistic

NPR Here to Stay Research has turned to NPR of still images Research has turned to NPR of still images Great advances in Toon, Painterly, and Pen & Ink (i.e. South Park) Great advances in Toon, Painterly, and Pen & Ink (i.e. South Park) However, animating NPR or real-time rendering 2 problems occur. However, animating NPR or real-time rendering 2 problems occur.

What’s the Problem? Maintenance of frame-to-frame coherence Maintenance of frame-to-frame coherence –Hidden Surface Removal Objects appear and disappear correctly Objects appear and disappear correctly Ability of a 3D engine to render NP images in real time Ability of a 3D engine to render NP images in real time

Solution! Create an engine that facilitates a hybrid rendering pipeline Create an engine that facilitates a hybrid rendering pipeline Allows specification of the rendering style on a per object basis Allows specification of the rendering style on a per object basis More to follow

Computer Games and NPR No games achieves true photorealism No games achieves true photorealism Rendering style can be called photorealistic Rendering style can be called photorealistic –Shapes, spatial relationships, surface details

NPR Video Games Very few games incorporate NPR elements Very few games incorporate NPR elements Examples: Examples: –Cartoon Rendering –Pen & Ink Broken Arrow Broken Arrow

Cartoon Rendering Shading Model in 2D cartoon Shading Model in 2D cartoon –Games only use 2D data. –Visually appealing, but not that interactive Monkey Island III Monkey Island III Broken Sword Broken Sword

Monkey Island III

Pen and Ink Rendering NPRQuake by Gleicher NPRQuake by Gleicher Intercepts the calls to graphics libraries Intercepts the calls to graphics libraries Replaces them with different drawing primitives Replaces them with different drawing primitives Uses core GLQuake engine and maintains gameplay Uses core GLQuake engine and maintains gameplay

NPRQuake Sketch

NPRQuake Blue-Print

NPRQuake Brush-Stroke

Problems with NPRQuake Achieves non-photorealistic look Achieves non-photorealistic look Style elements do not preserve frame coherence Style elements do not preserve frame coherence –Outlines of objects vary from frame to frame –Results in lively but disturbing experience

How to Fix It? Few systems deal with frame to frame coherence. Few systems deal with frame to frame coherence. Many systems can create Pen & Ink illustrations Many systems can create Pen & Ink illustrations –But, probability is used to model the line deviations of hand drawings Not suitable for real time rendering in animations Not suitable for real time rendering in animations

Non-Photorealistic Visualization In Game Engine NP imaging allows the user to simplify an image by omitting details to control the viewer’s attention NP imaging allows the user to simplify an image by omitting details to control the viewer’s attention –Emphasize, Deemphasize certain elements of a scene Aim for pen-and-ink illustrations Aim for pen-and-ink illustrations –Silhouettes and creases are clearly drawn –Surface detail added through hatching

Hybrid Rendering Pipeline Able to specify rendering style of each object Able to specify rendering style of each object –Gain additional freedom in expression for the visualization Photorealistic Images – use normal texture mapping and shading Photorealistic Images – use normal texture mapping and shading NP Images – consist of modified shading, an outline, and NP textures (ink maps or hatch maps) NP Images – consist of modified shading, an outline, and NP textures (ink maps or hatch maps) Hybrid – combine photorealistic rendering and NP drawing styles Hybrid – combine photorealistic rendering and NP drawing styles

NP Elements in 3D Game Engine Properties of 3D game engine Properties of 3D game engine –Provide player with highly immersive experience Enhace speed, realism, and image quality Enhace speed, realism, and image quality –Preprocess as much data as possible –Let hardware handle most of the per-frame load Mip-Mapping, anti-aliasing Mip-Mapping, anti-aliasing

NP Elements in 3D Game Engine Non-Photorealism uses image space elements Non-Photorealism uses image space elements –Pixels generated on the screen are not a strict projection of the 3D scene objects –A triangle outline rendered as lines has a constant width independent of the actual distance of the triangle to the viewer

Outlining Silhouettes Silhouettes –Drawn to enhance the visual separation of objects from each other and background –Silhouette edges need to be determined every frame –Non-Convex edges are never drawn (second) –Sharp Edges are always drawn (third) –Only smooth convex edges are drawn (fourth) –Result with hidden lines removed

Hatching Textures are supposed to become smaller with increasing distance Textures are supposed to become smaller with increasing distance Hatching Hatching –shade by drawing or etching fine parallel or perpendicular lines –Pen & Ink hatching textures cause serious moire´e patterns –In motion this produces even worse artifacts than still images Prevents frame coherence Prevents frame coherence

How to Fix This? Common antidote Common antidote –Mip-mapping –Unfortunately, normal filtering process applied to large white areas and thin black lines of hatching texture cause lines to vanish –Visible structure is lost

Hatch Maps Normal mip-mapping Normal mip-mapping –Lines are black and well separated at the top level –Become lighter and closer at lower levels Hatch Map Hatch Map –Equally space black hatch lines for all mip-map levels –Only very lowest levels are gray values used to maintain tone

Hatch Maps Unfortunately, all over tone is not continuous Unfortunately, all over tone is not continuous Abrupt switch between hatch-map levels Abrupt switch between hatch-map levels Use Tri-linear Filtering Use Tri-linear Filtering

Ink Maps Hatching is a mechanical process Hatching is a mechanical process Hybrid Pipeline Hybrid Pipeline –Photorealistic: Mip-Mapping –Non-Photorealistic: Ink Map Adding details to surfaces is artistically challenging Adding details to surfaces is artistically challenging Construct ink maps Construct ink maps –Smooth animation achieved with carefully crafted ink maps –Frame Coherence is maintained using tri-linear filtering

What They Achieved Part of a medieval palace created for the UNREAL engine Part of a medieval palace created for the UNREAL engine

What they Achieved

Specifications 3D engine runs on: 3D engine runs on: – 750 MHz CPU –GeForce2 ultra graphics card Even on unoptimized models, engine runs at interactive speeds, i.e. 25 fps Even on unoptimized models, engine runs at interactive speeds, i.e. 25 fps

And Now….Zelda!!! The Legend of Zelda: The Wind Wakers The Legend of Zelda: The Wind Wakers Right now, this is the pinnacle of NPR in game engines. Right now, this is the pinnacle of NPR in game engines. –First game to max out hardware of Nintendo Gamecube –Combines great use of interactive 3D and NPR

Screenshots

More

Zelda Video!! Thank You Any Questions?