graphics graphics lab @ korea university cgvr.korea.ac.kr lighting, fogging, alpha blending &...
TRANSCRIPT
![Page 1: Graphics Graphics Lab @ Korea University cgvr.korea.ac.kr Lighting, Fogging, Alpha Blending & Progressive Meshes Byeong-Seon Jeong 2002.1.22](https://reader035.vdocuments.mx/reader035/viewer/2022062301/5697c0261a28abf838cd58fe/html5/thumbnails/1.jpg)
Graphics
cgvr.korea.ac.kr Graphics Lab @ Korea University
Lighting, Fogging, Alpha Blending & Progressive
MeshesByeong-Seon Jeong
2002.1.22
![Page 2: Graphics Graphics Lab @ Korea University cgvr.korea.ac.kr Lighting, Fogging, Alpha Blending & Progressive Meshes Byeong-Seon Jeong 2002.1.22](https://reader035.vdocuments.mx/reader035/viewer/2022062301/5697c0261a28abf838cd58fe/html5/thumbnails/2.jpg)
cgvr.korea.ac.kr
CGVR
Graphics Lab @ Korea University
Contents
Lighting Fogging Alpha Blending Progressive Meshes Demo
![Page 3: Graphics Graphics Lab @ Korea University cgvr.korea.ac.kr Lighting, Fogging, Alpha Blending & Progressive Meshes Byeong-Seon Jeong 2002.1.22](https://reader035.vdocuments.mx/reader035/viewer/2022062301/5697c0261a28abf838cd58fe/html5/thumbnails/3.jpg)
cgvr.korea.ac.kr
CGVR
Graphics Lab @ Korea University
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
![Page 4: Graphics Graphics Lab @ Korea University cgvr.korea.ac.kr Lighting, Fogging, Alpha Blending & Progressive Meshes Byeong-Seon Jeong 2002.1.22](https://reader035.vdocuments.mx/reader035/viewer/2022062301/5697c0261a28abf838cd58fe/html5/thumbnails/4.jpg)
cgvr.korea.ac.kr
CGVR
Graphics Lab @ Korea University
Lighting(directional)
Directional emit parallel light have only color and direction, not position a light source at near infinite distance, such as the sun
![Page 5: Graphics Graphics Lab @ Korea University cgvr.korea.ac.kr Lighting, Fogging, Alpha Blending & Progressive Meshes Byeong-Seon Jeong 2002.1.22](https://reader035.vdocuments.mx/reader035/viewer/2022062301/5697c0261a28abf838cd58fe/html5/thumbnails/5.jpg)
cgvr.korea.ac.kr
CGVR
Graphics Lab @ Korea University
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
![Page 6: Graphics Graphics Lab @ Korea University cgvr.korea.ac.kr Lighting, Fogging, Alpha Blending & Progressive Meshes Byeong-Seon Jeong 2002.1.22](https://reader035.vdocuments.mx/reader035/viewer/2022062301/5697c0261a28abf838cd58fe/html5/thumbnails/6.jpg)
cgvr.korea.ac.kr
CGVR
Graphics Lab @ Korea University
Lighting(global illumination)
Global Illumination Formula
![Page 7: Graphics Graphics Lab @ Korea University cgvr.korea.ac.kr Lighting, Fogging, Alpha Blending & Progressive Meshes Byeong-Seon Jeong 2002.1.22](https://reader035.vdocuments.mx/reader035/viewer/2022062301/5697c0261a28abf838cd58fe/html5/thumbnails/7.jpg)
cgvr.korea.ac.kr
CGVR
Graphics Lab @ Korea University
Lighting(ambient)
Lighting Model Ambient
provides constant lighting for a scene lights all object vertices the same Formula
![Page 8: Graphics Graphics Lab @ Korea University cgvr.korea.ac.kr Lighting, Fogging, Alpha Blending & Progressive Meshes Byeong-Seon Jeong 2002.1.22](https://reader035.vdocuments.mx/reader035/viewer/2022062301/5697c0261a28abf838cd58fe/html5/thumbnails/8.jpg)
cgvr.korea.ac.kr
CGVR
Graphics Lab @ Korea University
Lighting(ambient)
Scene
![Page 9: Graphics Graphics Lab @ Korea University cgvr.korea.ac.kr Lighting, Fogging, Alpha Blending & Progressive Meshes Byeong-Seon Jeong 2002.1.22](https://reader035.vdocuments.mx/reader035/viewer/2022062301/5697c0261a28abf838cd58fe/html5/thumbnails/9.jpg)
cgvr.korea.ac.kr
CGVR
Graphics Lab @ Korea University
Lighting(ambient)
Source Code
![Page 10: Graphics Graphics Lab @ Korea University cgvr.korea.ac.kr Lighting, Fogging, Alpha Blending & Progressive Meshes Byeong-Seon Jeong 2002.1.22](https://reader035.vdocuments.mx/reader035/viewer/2022062301/5697c0261a28abf838cd58fe/html5/thumbnails/10.jpg)
cgvr.korea.ac.kr
CGVR
Graphics Lab @ Korea University
Lighting(diffuse)
Diffuse comes from one direction is scattered equally in all directions once it hits a surface Formula
![Page 11: Graphics Graphics Lab @ Korea University cgvr.korea.ac.kr Lighting, Fogging, Alpha Blending & Progressive Meshes Byeong-Seon Jeong 2002.1.22](https://reader035.vdocuments.mx/reader035/viewer/2022062301/5697c0261a28abf838cd58fe/html5/thumbnails/11.jpg)
cgvr.korea.ac.kr
CGVR
Graphics Lab @ Korea University
Lighting(diffuse)
Attenuation Factor
![Page 12: Graphics Graphics Lab @ Korea University cgvr.korea.ac.kr Lighting, Fogging, Alpha Blending & Progressive Meshes Byeong-Seon Jeong 2002.1.22](https://reader035.vdocuments.mx/reader035/viewer/2022062301/5697c0261a28abf838cd58fe/html5/thumbnails/12.jpg)
cgvr.korea.ac.kr
CGVR
Graphics Lab @ Korea University
Lighting(diffuse)
Spotlight Factor
![Page 13: Graphics Graphics Lab @ Korea University cgvr.korea.ac.kr Lighting, Fogging, Alpha Blending & Progressive Meshes Byeong-Seon Jeong 2002.1.22](https://reader035.vdocuments.mx/reader035/viewer/2022062301/5697c0261a28abf838cd58fe/html5/thumbnails/13.jpg)
cgvr.korea.ac.kr
CGVR
Graphics Lab @ Korea University
Lighting(diffuse)
Scene
![Page 14: Graphics Graphics Lab @ Korea University cgvr.korea.ac.kr Lighting, Fogging, Alpha Blending & Progressive Meshes Byeong-Seon Jeong 2002.1.22](https://reader035.vdocuments.mx/reader035/viewer/2022062301/5697c0261a28abf838cd58fe/html5/thumbnails/14.jpg)
cgvr.korea.ac.kr
CGVR
Graphics Lab @ Korea University
Lighting(diffuse)
Source Code
![Page 15: Graphics Graphics Lab @ Korea University cgvr.korea.ac.kr Lighting, Fogging, Alpha Blending & Progressive Meshes Byeong-Seon Jeong 2002.1.22](https://reader035.vdocuments.mx/reader035/viewer/2022062301/5697c0261a28abf838cd58fe/html5/thumbnails/15.jpg)
cgvr.korea.ac.kr
CGVR
Graphics Lab @ Korea University
Lighting(specular)
Specular comes from a particular direction tends to bounce off the surface in a preferred direction Shiny metal, plastic Formula
![Page 16: Graphics Graphics Lab @ Korea University cgvr.korea.ac.kr Lighting, Fogging, Alpha Blending & Progressive Meshes Byeong-Seon Jeong 2002.1.22](https://reader035.vdocuments.mx/reader035/viewer/2022062301/5697c0261a28abf838cd58fe/html5/thumbnails/16.jpg)
cgvr.korea.ac.kr
CGVR
Graphics Lab @ Korea University
Lighting(specular)
Scene
![Page 17: Graphics Graphics Lab @ Korea University cgvr.korea.ac.kr Lighting, Fogging, Alpha Blending & Progressive Meshes Byeong-Seon Jeong 2002.1.22](https://reader035.vdocuments.mx/reader035/viewer/2022062301/5697c0261a28abf838cd58fe/html5/thumbnails/17.jpg)
cgvr.korea.ac.kr
CGVR
Graphics Lab @ Korea University
Lighting(specular)
Source Code
![Page 18: Graphics Graphics Lab @ Korea University cgvr.korea.ac.kr Lighting, Fogging, Alpha Blending & Progressive Meshes Byeong-Seon Jeong 2002.1.22](https://reader035.vdocuments.mx/reader035/viewer/2022062301/5697c0261a28abf838cd58fe/html5/thumbnails/18.jpg)
cgvr.korea.ac.kr
CGVR
Graphics Lab @ Korea University
Lighting(emissive)
Emissive is emitted by an object Glow Formula
![Page 19: Graphics Graphics Lab @ Korea University cgvr.korea.ac.kr Lighting, Fogging, Alpha Blending & Progressive Meshes Byeong-Seon Jeong 2002.1.22](https://reader035.vdocuments.mx/reader035/viewer/2022062301/5697c0261a28abf838cd58fe/html5/thumbnails/19.jpg)
cgvr.korea.ac.kr
CGVR
Graphics Lab @ Korea University
Lighting(emissive)
Scene
![Page 20: Graphics Graphics Lab @ Korea University cgvr.korea.ac.kr Lighting, Fogging, Alpha Blending & Progressive Meshes Byeong-Seon Jeong 2002.1.22](https://reader035.vdocuments.mx/reader035/viewer/2022062301/5697c0261a28abf838cd58fe/html5/thumbnails/20.jpg)
cgvr.korea.ac.kr
CGVR
Graphics Lab @ Korea University
Lighting(emissive)
Source Code
![Page 21: Graphics Graphics Lab @ Korea University cgvr.korea.ac.kr Lighting, Fogging, Alpha Blending & Progressive Meshes Byeong-Seon Jeong 2002.1.22](https://reader035.vdocuments.mx/reader035/viewer/2022062301/5697c0261a28abf838cd58fe/html5/thumbnails/21.jpg)
cgvr.korea.ac.kr
CGVR
Graphics Lab @ Korea University
Fogging
Fogging Adding fog to a 3-D scene can enhance realism provide ambiance or set a mood, and obscure artifacts Formula
![Page 22: Graphics Graphics Lab @ Korea University cgvr.korea.ac.kr Lighting, Fogging, Alpha Blending & Progressive Meshes Byeong-Seon Jeong 2002.1.22](https://reader035.vdocuments.mx/reader035/viewer/2022062301/5697c0261a28abf838cd58fe/html5/thumbnails/22.jpg)
cgvr.korea.ac.kr
CGVR
Graphics Lab @ Korea University
Fogging(factors)
Factors Linear
![Page 23: Graphics Graphics Lab @ Korea University cgvr.korea.ac.kr Lighting, Fogging, Alpha Blending & Progressive Meshes Byeong-Seon Jeong 2002.1.22](https://reader035.vdocuments.mx/reader035/viewer/2022062301/5697c0261a28abf838cd58fe/html5/thumbnails/23.jpg)
cgvr.korea.ac.kr
CGVR
Graphics Lab @ Korea University
Fogging(factors)
Exp
![Page 24: Graphics Graphics Lab @ Korea University cgvr.korea.ac.kr Lighting, Fogging, Alpha Blending & Progressive Meshes Byeong-Seon Jeong 2002.1.22](https://reader035.vdocuments.mx/reader035/viewer/2022062301/5697c0261a28abf838cd58fe/html5/thumbnails/24.jpg)
cgvr.korea.ac.kr
CGVR
Graphics Lab @ Korea University
Fogging(factors)
Exp2
![Page 25: Graphics Graphics Lab @ Korea University cgvr.korea.ac.kr Lighting, Fogging, Alpha Blending & Progressive Meshes Byeong-Seon Jeong 2002.1.22](https://reader035.vdocuments.mx/reader035/viewer/2022062301/5697c0261a28abf838cd58fe/html5/thumbnails/25.jpg)
cgvr.korea.ac.kr
CGVR
Graphics Lab @ Korea University
Fogging(graph)
The Illumination graph of the formula
![Page 26: Graphics Graphics Lab @ Korea University cgvr.korea.ac.kr Lighting, Fogging, Alpha Blending & Progressive Meshes Byeong-Seon Jeong 2002.1.22](https://reader035.vdocuments.mx/reader035/viewer/2022062301/5697c0261a28abf838cd58fe/html5/thumbnails/26.jpg)
cgvr.korea.ac.kr
CGVR
Graphics Lab @ Korea University
Fogging(scene)
Scene
![Page 27: Graphics Graphics Lab @ Korea University cgvr.korea.ac.kr Lighting, Fogging, Alpha Blending & Progressive Meshes Byeong-Seon Jeong 2002.1.22](https://reader035.vdocuments.mx/reader035/viewer/2022062301/5697c0261a28abf838cd58fe/html5/thumbnails/27.jpg)
cgvr.korea.ac.kr
CGVR
Graphics Lab @ Korea University
Fogging(source code)
Source code
![Page 28: Graphics Graphics Lab @ Korea University cgvr.korea.ac.kr Lighting, Fogging, Alpha Blending & Progressive Meshes Byeong-Seon Jeong 2002.1.22](https://reader035.vdocuments.mx/reader035/viewer/2022062301/5697c0261a28abf838cd58fe/html5/thumbnails/28.jpg)
cgvr.korea.ac.kr
CGVR
Graphics Lab @ Korea University
Alpha Blending
Alpha Blending combines the color value of the processed polygon pixel
with the pixel already stored in the frame buffer Formula
![Page 29: Graphics Graphics Lab @ Korea University cgvr.korea.ac.kr Lighting, Fogging, Alpha Blending & Progressive Meshes Byeong-Seon Jeong 2002.1.22](https://reader035.vdocuments.mx/reader035/viewer/2022062301/5697c0261a28abf838cd58fe/html5/thumbnails/29.jpg)
cgvr.korea.ac.kr
CGVR
Graphics Lab @ Korea University
Alpha Blending(scene)
Scene
![Page 30: Graphics Graphics Lab @ Korea University cgvr.korea.ac.kr Lighting, Fogging, Alpha Blending & Progressive Meshes Byeong-Seon Jeong 2002.1.22](https://reader035.vdocuments.mx/reader035/viewer/2022062301/5697c0261a28abf838cd58fe/html5/thumbnails/30.jpg)
cgvr.korea.ac.kr
CGVR
Graphics Lab @ Korea University
Alpha Blending(source code)
Source Code
![Page 31: Graphics Graphics Lab @ Korea University cgvr.korea.ac.kr Lighting, Fogging, Alpha Blending & Progressive Meshes Byeong-Seon Jeong 2002.1.22](https://reader035.vdocuments.mx/reader035/viewer/2022062301/5697c0261a28abf838cd58fe/html5/thumbnails/31.jpg)
cgvr.korea.ac.kr
CGVR
Graphics Lab @ Korea University
Progressive Meshes
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.
![Page 32: Graphics Graphics Lab @ Korea University cgvr.korea.ac.kr Lighting, Fogging, Alpha Blending & Progressive Meshes Byeong-Seon Jeong 2002.1.22](https://reader035.vdocuments.mx/reader035/viewer/2022062301/5697c0261a28abf838cd58fe/html5/thumbnails/32.jpg)
cgvr.korea.ac.kr
CGVR
Graphics Lab @ Korea University
Progressive Meshes(diagram)
Progressive Mesh Flow Diagram
Graphic files
Ex. *.3DS, *.ASE etc Dynamic LOD
User inputEx: Distance
*.X file load
Material & Texturesetup
Progressive Meshcreation
Progressive MeshLevel Control
Rendering
Initialization Update frame
![Page 33: Graphics Graphics Lab @ Korea University cgvr.korea.ac.kr Lighting, Fogging, Alpha Blending & Progressive Meshes Byeong-Seon Jeong 2002.1.22](https://reader035.vdocuments.mx/reader035/viewer/2022062301/5697c0261a28abf838cd58fe/html5/thumbnails/33.jpg)
cgvr.korea.ac.kr
CGVR
Graphics Lab @ Korea University
Progressive Meshes(scene)
Scene
![Page 34: Graphics Graphics Lab @ Korea University cgvr.korea.ac.kr Lighting, Fogging, Alpha Blending & Progressive Meshes Byeong-Seon Jeong 2002.1.22](https://reader035.vdocuments.mx/reader035/viewer/2022062301/5697c0261a28abf838cd58fe/html5/thumbnails/34.jpg)
cgvr.korea.ac.kr
CGVR
Graphics Lab @ Korea University
Demo