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 2002.04.10.

Slides:



Advertisements
Similar presentations
Visible-Surface Detection(identification)
Advertisements

8.1si31_2001 SI31 Advanced Computer Graphics AGR Lecture 8 Polygon Rendering.
Compositing and Blending Ed Angel Professor Emeritus of Computer Science University of New Mexico 1 E. Angel and D. Shreiner: Interactive Computer Graphics.
CS 352: Computer Graphics Chapter 7: The Rendering Pipeline.
RealityEngine Graphics Kurt Akeley Silicon Graphics Computer Systems.
Week 7 - Monday.  What did we talk about last time?  Specular shading  Aliasing and antialiasing.
Week 11 - Wednesday.  Image based effects  Skyboxes  Lightfields  Sprites  Billboards  Particle systems.
David Luebke1/19/99 CS 551/651: Antialiasing David Luebke
Part I: Basics of Computer Graphics
Compositing and Blending Mohan Sridharan Based on slides created by Edward Angel 1 CS4395: Computer Graphics.
Compositing and Blending - Chapter 8 modified by Ray Wisman Ed Angel Professor of Computer Science, Electrical and Computer Engineering,
Image Compositing Angel 8.11 Angel: Interactive Computer Graphics5E © Addison-Wesley
CHAPTER 10 Alpha Blending and Fog © 2008 Cengage Learning EMEA.
Hank Childs, University of Oregon November 15 th, 2013 Volume Rendering, Part 2.
Chapter 2: Time and Space Lecturer: Norhayati Mohd Amin.
Real-Time Rendering SPEACIAL EFFECTS Lecture 03 Marina Gavrilova.
Chapter 6: Vertices to Fragments Part 2 E. Angel and D. Shreiner: Interactive Computer Graphics 6E © Addison-Wesley Mohan Sridharan Based on Slides.
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.
7/2/2006Based on: Angel (4th Edition) & Akeine-Möller & Haines (2nd Edition)1 CSC345: Advanced Graphics & Virtual Environments Lecture 4: Visual Appearance.
CS248 Midterm Review. CS248 Midterm Mon, November 5, 7-9 pm, Terman Aud Mon, November 5, 3-5 pm, Gates 392 Mostly “short answer” questions Covers through.
Introduction to 3D Graphics John E. Laird. Basic Issues u Given a internal model of a 3D world, with textures and light sources how do you project it.
02/14/02(c) University of Wisconsin 2002, CS 559 Last Time Filtering Image size reduction –Take the pixel you need in the output –Map it to the input –Place.
Hidden Surface Removal
MULTIMEDIA TECHNOLOGY SMM 3001 MEDIA - GRAPHICS. In this chapter how the computer creates, stores, and displays graphic images how the computer creates,
Shadows Computer Graphics. Shadows Shadows Extended light sources produce penumbras In real-time, we only use point light sources –Extended light sources.
Foundations of Computer Graphics (Spring 2012) CS 184, Lecture 9: Raster Graphics and Pipeline
Filtering theory: Battling Aliasing with Antialiasing Tomas Akenine-Möller Department of Computer Engineering Chalmers University of Technology.
1 Computer Graphics Week13 –Shading Models. Shading Models Flat Shading Model: In this technique, each surface is assumed to have one normal vector (usually.
DIGITAL GRAPHICS & ANIMATION Complete LESSON 5 CREATING SPECIAL EFFECTS.
Computer Graphics Inf4/MSc Computer Graphics Lecture 9 Antialiasing, Texture Mapping.
Antialiasing CAP4730: Computational Structures in Computer Graphics.
Vector vs. Bitmap
Computer Graphics Lecture 1 July 11, Computer Graphics What do you think of? The term “computer graphics” is a blanket term used to refer to the.
Graphics Graphics Korea University cgvr.korea.ac.kr 1 Chapter 6 Special Effects 강 신 진강 신 진
CSC418 Computer Graphics n BSP tree n Z-Buffer n A-buffer n Scanline.
Filtering and Color To filter a color image, simply filter each of R,G and B separately Re-scaling and truncating are more difficult to implement: –Adjusting.
Week 2 - Friday.  What did we talk about last time?  Graphics rendering pipeline  Geometry Stage.
Advanced Computer Graphics Depth & Stencil Buffers / Rendering to Textures CO2409 Computer Graphics Week 19.
Visible-Surface Detection Jehee Lee Seoul National University.
CS 450: COMPUTER GRAPHICS ANTIALIASING SPRING 2015 DR. MICHAEL J. REALE.
3D Graphics for Game Programming Chapter IV Fragment Processing and Output Merging.
Week 6 - Wednesday.  What did we talk about last time?  Light  Material  Sensors.
Week 10 - Wednesday.  What did we talk about last time?  Shadow volumes and shadow mapping  Ambient occlusion.
Multi-pass Rendering. © 2002 James K. Hahn, N.H. Baek2 Multi-pass Rendering Repeat: image  Rendering pass  result imageRepeat: image  Rendering pass.
Game Programming 06 The Rendering Engine
Digital Image Compositing. Compositing for volume rendering c1 c2 c3 The initial pixel color = Black opaque Back-to-Front compositing: use ‘under’ operator.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
Compositing and Blending
Computer Graphics Blending CO2409 Computer Graphics Week 14.
Lecture 6 Rasterisation, Antialiasing, Texture Mapping,
Visual Appearance Chapter 4 Tomas Akenine-Möller Department of Computer Engineering Chalmers University of Technology.
UniS CS297 Graphics with Java and OpenGL Blending.
Single Pass Point Rendering and Transparent Shading Paper by Yanci Zhang and Renato Pajarola Presentation by Harmen de Weerd and Hedde Bosman.
Photo-realistic Rendering and Global Illumination in Computer Graphics Spring 2012 Visual Appearance K. H. Ko School of Mechatronics Gwangju Institute.
CS559: Computer Graphics Lecture 12: Antialiasing & Visibility Li Zhang Spring 2008.
Shadows David Luebke University of Virginia. Shadows An important visual cue, traditionally hard to do in real-time rendering Outline: –Notation –Planar.
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.
Compositing and Blending Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico.
Computer Graphics I, Fall 2008 Compositing and Blending.
Chapter 6. Blending, Antialiasing, Fog, and Polygon Offset Computer Graphics (spring, 2009) School of Computer Science University of Seoul.
Antialiasing. What is alias? Alias - A false signal in telecommunication links from beats between signal frequency and sampling frequency (from dictionary.com)
Discrete Techniques.
Week 7 - Monday CS361.
Introduction to Computer Graphics with WebGL
Week 11 - Wednesday CS361.
Visual Appearance Chapter 4
The Graphics Rendering Pipeline
Angel: Interactive Computer Graphics5E © Addison-Wesley 2009
Hank Childs, University of Oregon
© University of Wisconsin, CS559 Spring 2004
Presentation transcript:

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 李珉禎

4.4 Aliasing & Antialiasing (1/6) Aliasing Visual artifact is called “ the jaggies ” Antialiasing efforts to avoid it Two other common problem areas Texture aliasing : section Line aliasing

4.4 Aliasing & Antialiasing (2/6) Line Anti-aliasing Method To treat the line as a quadrilateral one pixel wide To consider it an infinitely thin, transparent, glowing object To render the line as an antialiased texture Supersampling Techniques By using more samples per screen grid cell and blending these in some fashion, an average pixel color can be computed

4.4 Aliasing & Antialiasing (3/6) To implement Higher sampling rates (1/2) Combine the neighboring samples to create an image To render the scene at a higher resolution ex) Image of 500*400  To render an image of 1000*800  generated with 4 samples per pixel (:hardware accelerator) Accumulation buffer View moved half a pixel in the screen x- or y- direction as needed Such effects as motion blur and depth of field real-time rendering 으로 구현하기에 expensive 한 단점

4.4 Aliasing & Antialiasing (4/6) To implement Higher sampling rates (2/2) Multisampling To increase the sampling rate per pixel For generating high-quality rendering But at non-interactive speeds Used the coverage mask & z-depth.. 4*4 sub grid 16bit mask for this cell ( )

4.4 Aliasing & Antialiasing (5/6) How each polygon covers a grid cell?  have some limitations Size of the Coverage mask 9 level (common) 65 level (arbitrary) Box filter simplicity Lack of gamma correction Discussed in Section 4.7.

4.4 Aliasing & Antialiasing (6/6) Supersampling schemes expensive to support in hard ware  다른 application 단계에서 지원 ex) Direct3D Edge antialiasing Problem: all edges are redrawn, application must identify likely edges to redraw Full-scene antialiasing Requires the polygons be sorted from back to front Rendering with only one pass through the data Problem: Expensive

4.5 Transparency,Alpha & Compositing (1/7) Transparency effect in real-time rendering systems Simplistic Limited Effects normally unavailable include …  semi-transparent The blending of light (refraction) Reflectivity Transmission changes due to the viewing angle But, powerful tool for a variety of techniques(see Chapter 6. Special effect)

4.5 Transparency,Alpha &Compositing (2/7) Method1: Screen-door transparency Simple method for giving the illusion Checkerboard fill pattern  leaving the object behind it partially visible Problems with this technique include: Only 50% transparent Only one transparent object can be convincingly rendered on one area of the screen

4.5 Transparency,Alpha &Compositing (3/7) Method 2: alpha blending (1/3) For more general and flexible transparency effects RGB color & Z-buffer depth are associated with each pixel alpha(a) Another component Value describing the degree of opacity of an object for a given pixel 1.0 means : opaque 0.0 means : not obscured Each pixel covered : RGBa (=RGBA)

Method 2: alpha blending (2/3) Example : Blending a=0.6/surface(0.8,0.7,0.1)/Light blue(0.7,0.7,0.9)  (0.76,0.7,0.42) C 0 = aC s + (1- a)C d C 0 :resulting color,C s :source, C d :destination 4.5 Transparency,Alpha &Compositing (4/7) CdCd CsCs C0C0 a=0.6

4.5 Transparency,Alpha &Compositing (5/7) Method 2: alpha blending (3/3) To render transparent objects properly into a scene usually requires sorting Back-to-front order Blending equation is order-dependent Over Over operators Not commonly used in real-time application Can be used for antialiasing edges Transparency or antialiased edges C 0 = aC s + (1- a)C d C 0 :resulting color,C s :source, C d :destination

4.5 Transparency,Alpha &Compositing (6/7) Method 3: compositing (1/2) For blending together photographs or renderings of various objects Two ways to store the RGBa values generated [ex) surface(0.8,0.7,0.1)/ a = 0.6] Premultiplied alphas: RGBa is (0.8, 0.7, 0.1, 0.4) Unmultiplied alphas: RGBa is (0.48, 0.42, 0.06, 0.4) Advantage of Premultiplied alphas : C 0 = C s + (1- a)C d

4.5 Transparency,Alpha &Compositing (7/7) Method 3: compositing (2/2) A concept related to the alpha channel is chroma-keying In the film industry this process is called blue-screen matting

4.6. Fog (1/5) Simple atmospheric effect Can be added to the final image Several purposes Increases the level of realism for outdoor scenes Increases with the distance from the viewer To provide smoother culling of objects by the far plane without fog, a popping effect is experienced Often implemented in hardware Little or no additional cost

4.6. Fog (2/5) color of the fog(c p ) As f decreases, the effect of the fog increasesLinear fog Exponential fog Squared exponential fog c p = f c s +(1- f ) c f c s : color of a shaded surface/ c f : color of fog/ Fog factor  f ∈ [0,1]

4.6. Fog (3/5) increases Linear fog : exponential fog : squared exponential fog : Z p :depth from the viewer/Scalar d f : to control the density

4.6. Fog (4/5) exp exp Originalfog color=pinklinear fog exp 0.33exp 0.66

4.6. Fog (5/5) Compute fog Z-depth vs. Radial fog

4.7. Gamma Correction (1/5) To display them on a monitor  pixel values computed  physical relationship voltage input to an electron gun in a CRT(cathod-ray tube)monitor the light output by the screen Gamma value :2.3~2.6 NTSC,the color TV encoding scheme:2.2 HDTV :2.222 I:intensity generated/ V:input voltage/ e :brightness

4.7. Gamma Correction (2/5) 그림 4.17 At its simplest, assuming black level is zero: Ex) gamma of 2.2/c i =0.5  gamma-corrected c is 0.73

4.7. Gamma Correction (3/5) Gamma correction is important to real-time graphics in a few areas: Cross-platform compatibility :SGI,Apple Mac. Color fidelity, consistency, and interpolation Dithering Line and edge antialiasing quality Alpha blending and compositing Texturing

4.7. Gamma Correction (4/5) gamma -corrected =1.0 gamma-corrected=0.2gamma -corrected =5.0

4.7. Gamma Correction (5/5) Problem 1 :banding(=contouring) artifacts Implemented in some hardware Many applications is to ignore Problem 2 :some software(e.g.,games) include a control  not a user preference