Graphics Graphics Korea University cgvr.korea.ac.kr Lighting, Fogging, Alpha Blending & Progressive Meshes Byeong-Seon Jeong 2002.1.22.

Slides:



Advertisements
Similar presentations
1 Graphics CSCI 343, Fall 2013 Lecture 18 Lighting and Shading.
Advertisements

Virtual Realism LIGHTING AND SHADING. Lighting & Shading Approximate physical reality Ray tracing: Follow light rays through a scene Accurate, but expensive.
Graphics Graphics Korea University cgvr.korea.ac.kr Illumination Model 고려대학교 컴퓨터 그래픽스 연구실.
Lighting and Illumination Lighting is the major problem in computer graphics, for either realism or real-time compositions- harder than modeling Consider.
1. What is Lighting? 2 Example 1. Find the cubic polynomial or that passes through the four points and satisfies 1.As a photon Metal Insulator.
Based on slides created by Edward Angel
1 Angel: Interactive Computer Graphics 5E © Addison-Wesley 2009 Shading I.
University of New Mexico
Computer Graphics - Class 10
UFCEKT-20-33D Modelling and Animation 3D Modelling & Animation Lighting.
IMGD 1001: Illumination by Mark Claypool
Lighting and Shading Wen-Chieh (Steve) Lin
3/23/2005 © Dr. Zachary Wartell 1 Illumination Models and Surface- Rendering Methods.
1 CSCE 641: Computer Graphics Lighting Jinxiang Chai.
Status – Week 277 Victor Moya.
7M836 Animation & Rendering
Objectives Learn to shade objects so their images appear three- dimensional Learn to shade objects so their images appear three- dimensional Introduce.
University of British Columbia CPSC 414 Computer Graphics © Tamara Munzner 1 Shading Week 5, Wed 1 Oct 2003 recap: lighting shading.
1 Angel: Interactive Computer Graphics 4E © Addison-Wesley 2005 Shading I Ed Angel Professor of Computer Science, Electrical and Computer Engineering,
Course Website: Computer Graphics 16: Illumination.
02/04/03 Page 1 Rendering Visibility Lighting Texturing.
LIGHTING Part One - Theory based on Chapter 6. Lights in the real world Lights bounce off surfaces and reflect colors, scattering light in many directions.
CS 480/680 Computer Graphics Shading I Dr. Frederick C Harris, Jr.
LIGHTING JEFF CHASTINE 1. WHAT IS LIGHT? A very complex process Find a dark area – how is it being lit? Light bounces (mirrors, shiny objects) Light refracts.
Fundamentals of Computer Graphics Part 6 Shading prof.ing.Václav Skala, CSc. University of West Bohemia Plzeň, Czech Republic ©2002 Prepared with Angel,E.:
CS 445 / 645: Introductory Computer Graphics
Lecture 5: 3D Rendering Pipeline (II) Prof. Hsien-Hsin Sean Lee School of Electrical and Computer Engineering Georgia Institute of Technology.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
COMPUTER GRAPHICS CS 482 – FALL 2014 AUGUST 27, 2014 FIXED-FUNCTION 3D GRAPHICS MESH SPECIFICATION LIGHTING SPECIFICATION REFLECTION SHADING HIERARCHICAL.
CS324e - Elements of Graphics and Visualization Checkerboard World.
Shading 03/19/2003. Lighting Principles Lighting based on how objects reflect light –Surface characteristics –Light color and direction –Global lighting.
Shading & Texture. Shading Flat Shading The process of assigning colors to pixels. Smooth Shading Gouraud ShadingPhong Shading Shading.
Graphics Graphics Korea University cgvr.korea.ac.kr 1 Chapter 6 Special Effects 강 신 진강 신 진
CSC418 Computer Graphics n Illumination n Lights n Lightinging models.
University of Texas at Austin CS 378 – Game Technology Don Fussell CS 378: Computer Game Technology Basic Rendering Pipeline and Shading Spring 2012.
CSE 381 – Advanced Game Programming GLSL Lighting.
Illumination and Shading
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
Course Introduction to virtual engineering Óbuda University John von Neumann Faculty of Informatics Institute of Applied Mathematics Lecture and laboratory.
Graphics Graphics Korea University cgvr.korea.ac.kr 1 Surface Rendering Methods 고려대학교 컴퓨터 그래픽스 연구실.
Graphics Graphics Korea University cgvr.korea.ac.kr 1 7. Speed-up Techniques Presented by SooKyun Kim.
Lecture Fall 2001 Illumination and Shading in OpenGL Light Sources Empirical Illumination Shading Transforming Normals Tong-Yee Lee.
Zhang & Liang, Computer Graphics Using Java 2D and 3D (c) 2007 Pearson Education, Inc. All rights reserved. 1 Chapter 9 Lighting and Texturing.
Visual Appearance Chapter 4 Tomas Akenine-Möller Department of Computer Engineering Chalmers University of Technology.
Local Illumination and Shading
Where We Stand So far we know how to: –Transform between spaces –Rasterize –Decide what’s in front Next –Deciding its intensity and color.
1 CSCE 441: Computer Graphics Lighting Jinxiang Chai.
UW EXTENSION CERTIFICATE PROGRAM IN GAME DEVELOPMENT 2 ND QUARTER: ADVANCED GRAPHICS Lighting.
In the name of God Computer Graphics. Where We Stand So far we know how to: –Transform between spaces –Draw polygons Next –Deciding a pixel’s intensity.
CDS 301 Fall, 2008 From Graphics to Visualization Chap. 2 Sep. 3, 2009 Jie Zhang Copyright ©
OpenGL Shading. 2 Objectives Learn to shade objects so their images appear three-dimensional Introduce the types of light-material interactions Build.
1 CSCE 441: Computer Graphics Lighting Jinxiang Chai.
3D Rendering Techniques Light Source: Shading is also dependent on the lighting used. Usually, upon rendering a scene a number of different lighting techniques.
1 CSCE 441: Computer Graphics Lighting Jinxiang Chai.
Computer Graphics Ken-Yi Lee National Taiwan University (the slides are adapted from Bing-Yi Chen and Yung-Yu Chuang)
Computer Graphics: Illumination
Illumination Models and Surface-Rendering Methods CEng 477 Introduction to Computer Graphics.
Computer Graphics Lecture 26 Mathematics of Lighting and Shading Part II Taqdees A. Siddiqi
Illumination and Shading. Illumination (Lighting) Model the interaction of light with surface points to determine their final color and brightness OpenGL.
Chapter 5. Lighting Computer Graphics (spring, 2009) School of Computer Science University of Seoul.
© University of Wisconsin, CS559 Spring 2004
Visual Appearance Chapter 4
Unit-7 Lighting and Shading
Austin Grosel & Aaron Ebbinghaus
Fundamentals of Computer Graphics Part 6 Shading
Isaac Gang University of Mary Hardin-Baylor
Computer Graphics Material Colours and Lighting
Illumination Model 고려대학교 컴퓨터 그래픽스 연구실.
Illumination Model 고려대학교 컴퓨터 그래픽스 연구실.
CS 480/680 Computer Graphics Shading.
Presentation transcript:

Graphics Graphics Korea University cgvr.korea.ac.kr Lighting, Fogging, Alpha Blending & Progressive Meshes Byeong-Seon Jeong

CGVR Graphics Korea University cgvr.korea.ac.kr Contents Lighting Fogging Alpha Blending Progressive Meshes Demo

CGVR Graphics Korea University cgvr.korea.ac.kr Lighting Ambient Light is effectively everywhere in a scene a general level of light that fills an entire scene has no position or direction, only color and intensity Direct Light Point  give off light equally in all directions  have color and position within a scene, but no single direction

CGVR Graphics Korea University cgvr.korea.ac.kr Lighting(directional) Directional  emit parallel light  have only color and direction, not position  a light source at near infinite distance, such as the sun

CGVR Graphics Korea University cgvr.korea.ac.kr Lighting(spot) Spot  is made up of a bright inner cone and a larger outer cone  have color, position, and direction in which they emit light

CGVR Graphics Korea University cgvr.korea.ac.kr Lighting(global illumination) Global Illumination Formula

CGVR Graphics Korea University cgvr.korea.ac.kr Lighting(ambient) Lighting Model Ambient  provides constant lighting for a scene  lights all object vertices the same  Formula

CGVR Graphics Korea University cgvr.korea.ac.kr Lighting(ambient)  Scene

CGVR Graphics Korea University cgvr.korea.ac.kr Lighting(ambient) Source Code

CGVR Graphics Korea University cgvr.korea.ac.kr Lighting(diffuse) Diffuse  comes from one direction  is scattered equally in all directions once it hits a surface  Formula

CGVR Graphics Korea University cgvr.korea.ac.kr Lighting(diffuse)  Attenuation Factor

CGVR Graphics Korea University cgvr.korea.ac.kr Lighting(diffuse)  Spotlight Factor

CGVR Graphics Korea University cgvr.korea.ac.kr Lighting(diffuse)  Scene

CGVR Graphics Korea University cgvr.korea.ac.kr Lighting(diffuse)  Source Code

CGVR Graphics Korea University cgvr.korea.ac.kr Lighting(specular) Specular  comes from a particular direction  tends to bounce off the surface in a preferred direction  Shiny metal, plastic  Formula

CGVR Graphics Korea University cgvr.korea.ac.kr Lighting(specular)  Scene

CGVR Graphics Korea University cgvr.korea.ac.kr Lighting(specular)  Source Code

CGVR Graphics Korea University cgvr.korea.ac.kr Lighting(emissive) Emissive  is emitted by an object  Glow  Formula

CGVR Graphics Korea University cgvr.korea.ac.kr Lighting(emissive)  Scene

CGVR Graphics Korea University cgvr.korea.ac.kr Lighting(emissive)  Source Code

CGVR Graphics Korea University cgvr.korea.ac.kr Fogging Adding fog to a 3-D scene can enhance realism provide ambiance or set a mood, and obscure artifacts Formula

CGVR Graphics Korea University cgvr.korea.ac.kr Fogging(factors) Factors  Linear

CGVR Graphics Korea University cgvr.korea.ac.kr Fogging(factors)  Exp

CGVR Graphics Korea University cgvr.korea.ac.kr Fogging(factors)  Exp2

CGVR Graphics Korea University cgvr.korea.ac.kr Fogging(graph) The Illumination graph of the formula

CGVR Graphics Korea University cgvr.korea.ac.kr Fogging(scene) Scene

CGVR Graphics Korea University cgvr.korea.ac.kr Fogging(source code) Source code

CGVR Graphics Korea University cgvr.korea.ac.kr Alpha Blending combines the color value of the processed polygon pixel with the pixel already stored in the frame buffer Formula

CGVR Graphics Korea University cgvr.korea.ac.kr Alpha Blending(scene) Scene

CGVR Graphics Korea University cgvr.korea.ac.kr Alpha Blending(source code) Source Code

CGVR Graphics Korea University cgvr.korea.ac.kr Progressive Meshes A progressive mesh is one in which the vertex information is stored internally in a special tree that can be accessed to render the mesh with any number of vertices. This procedure is fast, so progressive meshes are ideal for level-of-detail scenarios, where objects in the distance are rendered with fewer polygons.

CGVR Graphics Korea University cgvr.korea.ac.kr Progressive Meshes(diagram) Progressive Mesh Flow Diagram Graphic files Ex. *.3DS, *.ASE etc Dynamic LOD User input Ex: Distance *.X file load Material & Texture setup Progressive Mesh creation Progressive Mesh Level Control Rendering Initialization Update frame

CGVR Graphics Korea University cgvr.korea.ac.kr Progressive Meshes(scene) Scene

CGVR Graphics Korea University cgvr.korea.ac.kr Demo