Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 16 of 41 William H. Hsu Department of Computing.

Slides:



Advertisements
Similar presentations
Compositing and Blending Ed Angel Professor Emeritus of Computer Science University of New Mexico 1 E. Angel and D. Shreiner: Interactive Computer Graphics.
Advertisements

CS 352: Computer Graphics Chapter 7: The Rendering Pipeline.
CP411 Computer Graphics, Wilfrid Laurier University Introduction # 1 Welcome to CP411 Computer Graphics 2012 Instructor: Dr. Hongbing Fan Introduction.
Lecture 29 of 42 Bezier Curves and Splines Wednesday, 02 April 2008
Discontinuity Edge Overdraw
Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics William H. Hsu Department of Computing and Information.
CGDD 4003 THE MASSIVE FIELD OF COMPUTER GRAPHICS.
1Notes. 2Atop  The simplest (useful) and most common form of compositing: put one image “atop” another  Image 1 (RGB) on top of image 2 (RGB)  For.
1 Angel: Interactive Computer Graphics 4E © Addison-Wesley 2005 Introduction to Computer Graphics Ed Angel Professor of Computer Science, Electrical and.
Painterly Rendering for Animation Barbara J. Meier Walt Disney Feature Animation SIGGRAPH 96.
Computer Graphics: Programming, Problem Solving, and Visual Communication Steve Cunningham California State University Stanislaus and Grinnell College.
Hidden Surface Removal
Computing & Information Sciences Kansas State University CIS 736 Advanced Computer Graphics William H. Hsu Department of Computing and Information Sciences,
Erdem Alpay Ala Nawaiseh. Why Shadows? Real world has shadows More control of the game’s feel  dramatic effects  spooky effects Without shadows the.
Ray Tracing Primer Ref: SIGGRAPH HyperGraphHyperGraph.
Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 28 of 41 William H. Hsu Department of Computing.
Lesson 1: Intro to Animation
Computing & Information Sciences Kansas State University Advanced CG 1 of 8: TexturingCIS 636/736: (Introduction to) Computer Graphics CIS 736 Computer.
Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics William H. Hsu Department of Computing and Information.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 10: Computer Graphics Computer Science: An Overview Tenth Edition.
CS 480/680 Computer Graphics Course Overview Dr. Frederick C Harris, Jr. Fall 2012.
Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 6 of 41 William H. Hsu Department of Computing.
Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 7 of 41 William H. Hsu Department of Computing.
What is ? Open Graphics Library A cross-language, multi-platform API for rendering 2D and 3D computer graphics. The API is used to interact with a Graphics.
Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 22 of 41 William H. Hsu Department of Computing.
Computing & Information Sciences Kansas State University Friday, 18 Jan 2008CIS 636/736: (Introduction to) Computer Graphics Lecture 00 of 42 Friday, 18.
Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 17 of 41 William H. Hsu Department of Computing.
Kansas State University Department of Computing and Information Sciences CIS 736: Computer Graphics Wednesday, February 23, 2000 William H. Hsu Department.
Computing & Information Sciences Kansas State University Lecture 27 of 42CIS 636/736: (Introduction to) Computer Graphics Lecture 27 of 42 Wednesday, 02.
Shading. What is Shading? Assigning of a color to a pixel in the final image. So, everything in shading is about how to select and combine colors to get.
CS 450: COMPUTER GRAPHICS REVIEW: INTRODUCTION TO COMPUTER GRAPHICS – PART 2 SPRING 2015 DR. MICHAEL J. REALE.
Week 2 - Friday.  What did we talk about last time?  Graphics rendering pipeline  Geometry Stage.
Computer Graphics 2 Lecture 8: Visibility Benjamin Mora 1 University of Wales Swansea Pr. Min Chen Dr. Benjamin Mora.
1 Angel and Shreiner: Interactive Computer Graphics 6E © Addison-Wesley 2012 Introduction to Computer Graphics 靜宜大學 資訊工程系 蔡奇偉 副教授
Introduction to Computer Graphics Dr.Giorgos A. Demetriou Dr. Stephania Loizidou Himona Computer Science Department Frederick University.
1 Angel and Shreiner: Interactive Computer Graphics 6E © Addison-Wesley 2012 Introduction to Computer Graphics Ed Angel Professor Emeritus of Computer.
1 Introduction to Computer Graphics SEN Introduction to OpenGL Graphics Applications.
Computer Graphics I, Fall 2008 Introduction to Computer Graphics.
1 Angel: Interactive Computer Graphics 5E © Addison-Wesley 2009 CS4610/7610: Introduction to Computer Graphics.
Computing & Information Sciences Kansas State University Lecture 20 of 42CIS 636/736: (Introduction to) Computer Graphics Lecture 21 of 42 William H. Hsu.
CSE 581: Interactive Computer Graphics Spring 2012, UG 4 Tuesday, Thursday – 9:00AM – 10:18AM DL 0317 Raghu Machiraju Slides: Courtesy - Prof. Huamin Wang,
3D Graphics for Game Programming Chapter IV Fragment Processing and Output Merging.
Computing & Information Sciences Kansas State University Lecture 15 of 42CIS 636/736: (Introduction to) Computer Graphics Lecture 15 of 42 William H. Hsu.
COMPUTER GRAPHICS CSCI 375. What do I need to know?  Familiarity with  Trigonometry  Analytic geometry  Linear algebra  Data structures  OOP.
Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 3 of 41 William H. Hsu Department of Computing.
Computing & Information Sciences Kansas State University Lecture 19 of 42CIS 636/736: (Introduction to) Computer Graphics Lecture 19 of 42 William H. Hsu.
CS-378: Game Technology Lecture #2.2: Clipping and Hidden Surfaces Prof. Okan Arikan University of Texas, Austin Thanks to James O’Brien, Steve Chenney,
Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 5 of 41 William H. Hsu Department of Computing.
Computing & Information Sciences Kansas State University Lecture 10 of 42CIS 636/736: (Introduction to) Computer Graphics CIS 636/736 Computer Graphics.
Real-Time rendering Chapter 4.Visual Appearance 4.4. Aliasing and antialiasing 4.5. Transparency,alpha,and compositing 4.6. Fog 4.7. Gamma correction
Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 9 of 41 William H. Hsu Department of Computing.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
Computing & Information Sciences Kansas State University Lecture 40 of 42 CIS 530 / 730 Artificial Intelligence Lecture 40 of 42 A Brief Survey of Computer.
Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 8 of 41 William H. Hsu Department of Computing.
Lecture 6 Rasterisation, Antialiasing, Texture Mapping,
Ray Tracing Fall, Introduction Simple idea  Forward Mapping  Natural phenomenon infinite number of rays from light source to object to viewer.
Computing & Information Sciences Kansas State University Lecture 12 of 42CIS 636/736: (Introduction to) Computer Graphics CIS 636/736 Computer Graphics.
Computing & Information Sciences Kansas State University Advanced CG 2 of 8: MappingsCIS 636/736: (Introduction to) Computer Graphics CIS 736 Computer.
CS559: Computer Graphics Lecture 12: Antialiasing & Visibility Li Zhang Spring 2008.
Computing & Information Sciences Kansas State University Lecture 30 of 42CIS 636/736: (Introduction to) Computer Graphics Lecture 30 of 42 Wednesday, 09.
Kansas State University Department of Computing and Information Sciences CIS 736: Computer Graphics Wednesday, March 1, 2000 William H. Hsu Department.
1cs426-winter-2008 Notes. 2 Atop operation  Image 1 “atop” image 2  Assume independence of sub-pixel structure So for each final pixel, a fraction alpha.
Kansas State University Department of Computing and Information Sciences CIS 736: Computer Graphics Friday, January 21, 2000 William H. Hsu Department.
Introduction to Computer Graphics
The Graphics Rendering Pipeline
Interactive Computer Graphics
Real-time Rendering Shadow Maps
UMBC Graphics for Games
Introduction to Computer Graphics
Introduction to Computer Graphics
Presentation transcript:

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 16 of 41 William H. Hsu Department of Computing and Information Sciences, KSU KSOL course pages: / Public mirror web site: Instructor home page: Readings: Today: §2.6, 20.1 Eberly 2 e OpenGL: A Primer on shading, alpha blending Khronos Group docs on transparency: Wikipedia, Painter’s Algorithm: Wikipedia, Z-buffering: Transparency, Painter’s Algorithm, & Z-Buffer Lab 3a: Shading & Transparency Lecture 16 of 41

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 16 of 41 Reading for Last Class: §4.1 – 4.3, Eberly 2 e ; CGA handout Reading for Today: §2.6, 20.1, Eberly 2 e ; OpenGL primer material Reading for Next Class: §5.1 – 5.2, Eberly 2 e Last Time: Scene Graphs; CGA Demos, Videos  Scene graphs and state – main topic  State of CGA: videos and discussion  Demos to download  Adobe Maya:  NewTek Lightwave: Today: Shading and Transparency in OpenGL  Transparency revisited  OpenGL how-to:  Alpha blending (15.020, )  Screen-door transparency (15.030)  Painter’s algorithm & depth buffering (z-buffering) Lecture Outline

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 16 of 41 Where We Are

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 16 of 41 Review [1]: Scene Graphs Scene Graph: General Data Structure used in CG  Used to: compute visibility, set up rendering pipeline  Actual graph: general graph, forest, or rooted tree Scene Graph Traversal: Initial Step – Drives Rendering Features of Scene Graphs  Spatial partitioning: e.g., using bounding volume hierarchies  Leaves: primitive components  Interior nodes: assembly operations, modelview transformations  Root(s): scene or major objects Images © 2007 A. Bar-Zeev

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 16 of 41 Review [2]: Aesthetic Considerations Non-Photorealistic Rendering: Aimed at Achieving Natural Aesthetic  Cartoon shaders: use sharp gradient (thresholded)  Pencil shaders: blurring, stippling CGA and Realism Aliasing (see Wikipedia:  Term from signal processing  Two sampled signals indistinguishable from (aliases of) one another  Examples: jaggies, Moiré vibration (Moiré pattern)  Anti-aliasing: operations to prevent such effects Temporal Aliasing  Similar effect in animation  Small artifact can be much more jarring!  Example: think of flecks in traditional film reels © 2004 – 2009 Wikipedia, Aliasing © 2004 – 2009 Wikipedia, Jaggies

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 16 of 41 Review[3]: CG Feature Films & Shorts Wall-E © 2008 Disney/Pixar Kung-Fu Panda © 2008 DreamWorks Animation SKG Shrek Forever After © 2010 DreamWorks Animation SKG Toy Story 3 © 2010 Disney/Pixar Happy Feet © 2006 Warner Brothers Luxo Jr. © 1986 Pixar Animation Studios Tron: Legacy © 2010 Walt Disney Pictures Monsters Inc. 2 © 2012 Disney/Pixar

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 16 of 41 Review [4]: OpenGL Shading (Overview) Frank Pfenning Professor of Computer Science School of Computer Science Carnegie Mellon University Adapted from slides © 2003 F. Pfenning, Carnegie Mellon University Set Up Point Light Sources Set Up Materials, Turn Lights On Start Drawing ( glBegin … glEnd ) See also: OpenGL: A Primer, 3 e (Angel)

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 16 of 41 Transparency in OpenGL [1]: Transparent vs. Translucent, Blended © 1997 – 2011 Khronos Group

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 16 of 41 Transparency in OpenGL [2]: Blending vs. Screen Door © 1997 – 2011 Khronos Group

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 16 of 41 Transparency in OpenGL [3]: Screen Door © 1997 – 2011 Khronos Group Screen door: Viola et al. (2004), Technical University of Vienna, IEEE Vis 2004

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 16 of 41 Transparency in OpenGL [4]: Glass © 1997 – 2011 Khronos Group Alpha blending: Lim (2010), Goon Creative, Maya Transparency Tutorial

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 16 of 41 Transparency in OpenGL [5]: Alpha & Painter’s Algorithm © 1997 – 2011 Khronos Group © 2004 – 2009 Wikipedia, Painter’s Algorithm

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 16 of 41 Transparency in OpenGL [6]: Painter’s algorithm & Z-buffering © 1997 – 2011 Khronos Group © 2009 Wikipedia, Z-buffering

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 16 of 41 Transparency in OpenGL [6]: Partial Transparency © 1997 – 2011 Khronos Group

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 16 of 41 Summary Reading for Last Class: §4.1 – 4.3, Eberly 2 e ; CGA handout Reading for Today: §2.6, 20.1, Eberly 2 e ; OpenGL primer material Reading for Next Class: §5.1 – 5.2, Eberly 2 e Last Time: Scene Graphs  Maintaining state  Coming up: traversal CGA Demos, Videos  State of CGA: videos  Issues: photorealism, hardware, traditional (non-CG) animation  Techniques showcased: multipass texturing, alpha, portals Shading and Transparency in OpenGL  Alpha blending  Painter’s algorithm – less efficient, can handle non-opaque objects  Depth buffering (z-buffering) – in hardware, fast, opaque only

Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 16 of 41 Terminology Non-Photorealistic Rendering  Cartoon shaders  Pencil shaders CGA and Realism  Aliasing – reconstructed image differs from original  Alias – artifact in reconstructed image (jaggies, Moiré pattern, etc.)  Anti-aliasing – techniques (e.g., area sampling) for avoiding aliasing  Temporal aliasing – aliasing over time (e.g., in animation)  Temporal anti-aliasing – smoothing out aliasing over time Shading and Transparency in OpenGL  Alpha blending – using A channel of R, G, B, A to combine colors  Painter’s algorithm aka priority fill – back-to-front rendering  Depth buffering (z-buffering) – checking z values