Computer Graphics Seminar LIGHTING MODELS What is a
- Slides: 125
Computer Graphics Seminar LIGHTING MODELS
What is a light? Types of light Illumination models Shading models
What is a light? Illumination models Shading models Lighting models
What is a light?
Delta Lights Light entities with no physical size Used because simulating area lights was for a very long time too expensive today should be avoided as much as possible
What is a light? Types of light Illumination models Shading models
Types of light Directional Point light Spotlight
Directional light
Point Light
Point light VS Spotlight
Spotlight
What is a light? Types of lights Illumination models Shading models
Illumination Models Global Illumination = Ambient Light + Diffuse Light + Specular Light + Emissive Light
The emissive • Each polygon is self-luminous ligthing (it lights itself, but does not give off light) • There are no lights in the scene • Each polygon has its own colour which is constant Over its surface That color is not affected by anything else in the world position of viewer is not important
Calculating Emissive Term emissive = Ke where: Ke is the material's emissive color.
The Ambient Term Ambient light does not appear to come from any particular direction, rather it appears to come from all directions, because of this it does not depend on light source position.
Calculating Ambient Term ambient = Ka x global. Ambient Where : Ka is the material's ambient colour global. Ambient is the color of the incoming ambient light.
Diffuse Term comes from a specific direction
Diffuse Term The diffuse term accounts for directed light reflected off a surface equally in all directions.
The Diffuse Term diffuse = Kd x light. Color x max(N · L, 0) Kd is the material's diffuse color light. Color is the color of the incoming diffuse light N is the normalized surface normal P is the point being shaded. L is the normalized vector toward the light source
The Specular Term Light is reflected from the surface in mirror direction brightness depends on theta - angle between surface normal (N) and the direction to the light source Rendering the specular term
The specular Term
Specular Term
Adding The terms together
Ambient+Diffuse+Specular
Material Properties Demo diffuse color -how the material reflects light diffusely specular color –how material reflects light specularly http: //math. hws. edu/graphicsbook/c 4/s 1. html
Different Lighting Models
Phong Lighting Model
Phong Ligthing model
Blinn-Phong Lighting Model Another, a bit more realistic, lighting model is the Blinn-Phong model that calculates the specular term somewhat differently.
Blinn phong VS phong
real-world photograph
What is a light? Types of light Illumination models Shading models
What is shading?
Shading models There are three main shading models that are used for different result. Flat Shading Gouraud Shading (per vertex) Phong Shading (per fragment)
Three main shading models
3 D mesh Consists of: Vertices, edges that form faces, Face normals - orthogonal to the face. Normals + light source we determine Colour of the face.
Flat Shading (per polygon) It defines a single color for a face. main idea is that we use only one surface normal per polygon The color itself is uniform (unchanging) on that polygon.
Flat shading is in screen space ⊕ easiest to implement, really fast ⊖ ugly results, only good results if mesh resolution is such that one face corresponds to one pixel on the screen, this breaks down when zooming in.
Example of Flat Shading Model
Linear interpolation
Positive and Negative sides of Gouraud Shading - is in screen space ⊕ pretty efficient and not too hard to implement, nice shading on medium to high mesh resolution ⊖ looks bad on low mesh resolution, has perspective distortion, which can also be noticed on rotation of the object or if you change the triangle shapes. ⊖ if the light source is specular and focused on a very small area, Gouraud Shading might not render it correctly (if it doesn’t hit and illuminate a vertex, but only hits a face or an edge of the mesh)
Example of Gouraud Shading
Phong shading
Results of Phong Shading ⊕ great shading of round and smooth objects at any mesh resolution ⊖ can’t change the mesh contour ⊖ is more challenging to implement and takes longer to compute than the other two algorithms ⊖ always assumes a smooth basic shape, i. e. if the object we want to display has sharp edges that should actually be sharp (e. g. if we try to render a cube), it will make the edges look somewhat round instead of shading the faces in different light.
Example of Phong Shading http: //multivis. net/lecture/phong. html
If the object resolution is higher
Fog makes objects that are further away look less distinct than near objects
Why is fog shading needed ?
The monster sees a much softer horizon
Thank you !
- Lighting models in computer graphics
- Most of the graphics monitors today operate as
- Dot matrix display ppt
- Color & light computergraphics
- Computer graphics models are now commonly used for making
- What is the difference between models and semi modal
- Seminar about computer software
- Computer training seminar memo
- Angel
- Projection in computer graphics
- Graphics display devices
- Interior and exterior clipping in computer graphics
- Shear transformation in computer graphics
- Shader computer graphics
- Scan converting ellipse in computer graphics
- Center of mass of a rigid body
- Region filling process has appliction in
- Starburst method
- Polygon fill algorithm
- Raster scan display advantages and disadvantages
- Computer graphics
- Line drawing algorithm computer graphics
- Cs 418
- Cs 418 interactive computer graphics
- Introduction to hidden surface removal
- Achromatic light in computer graphics
- Interactive input devices
- Uniform scaling in computer graphics
- Uniform scaling in computer graphics
- Fundamentals of computer graphics
- Logical input devices in computer graphics
- Sierpinski gasket in computer graphics
- 2d geometric transformation in computer graphics ppt
- Circle drawing algorithm in computer graphics ppt
- Dda scan conversion algorithm
- What is window and viewport in computer graphics
- Csc418
- Primitive instancing in computer graphics
- Scan conversion in computer graphics
- Region filling and clipping in computer graphics
- Boundary representation in computer graphics
- Thick primitives in computer graphics
- Interaction in computer graphics
- Hierarchical modeling in computer graphics
- Rendering pipeline in computer graphics
- Circle in computer graphics
- Srgp in computer graphics
- Translation in computer graphics
- Find the decision variable (d) for midpoint algorithm.
- Uniform scaling in computer graphics
- What are curves in computer graphics
- Input of graphical data in computer graphics
- Outcode in computer graphics
- Amber
- Amber
- Frame yv
- Types of polygon filling
- Filled area primitives
- Line in computer graphics
- Bundled attributes in computer graphics
- Objectives of computer graphics
- Pixmap in computer graphics
- It is the midpoint inside of the ellipse curve.
- Types of fractals in computer graphics
- Hierarchical modeling in computer graphics
- Scan conversion algorithms
- Cvv in computer graphics
- Triangle rasterization algorithm
- History of computer graphics
- Motion specifications in computer graphics
- Animation definition in computer
- Survey of computer graphics
- Reflection and shearing in computer graphics
- Curve clipping in computer graphics
- Normalized device coordinates
- Projection in computer graphics
- Solid area scan conversion
- Dvst stands for
- System graph
- Teknik dari dot3 bump- mapping merupakan teknik
- Viewing transformation pipeline
- Mathematical foundations of computer graphics and vision
- Dilatasi dan shear
- Radiosity in computer graphics
- Mach band effect in computer graphics
- Hypermedia in computer graphics
- Motion specification in computer graphics
- Spotlight computer graphics
- Hardware and software for computer graphics
- In cohen sutherland subdivision line clipping algorithm
- Programming raster display system in computer graphics
- Synthetic camera model in computer graphics
- Segmentation in computer graphics
- Shearing transformation in computer graphics
- Sierpinski gasket in computer graphics
- Vertex processing
- Fractals deals with curves that are
- Computer graphics in entertainment
- Shadow in computer graphics
- Basic raster graphics algorithm for 2d primitives
- Basic illumination models
- Depth sorting method in computer graphics
- Homorogeneous
- Parallel projection in computer graphics
- Transformation scaling
- Uiuc cs 418
- Contoh tekstur komputer
- The component of interactive computer graphics are
- Hermite curve matrix
- What is dda in computer graphics
- Interactive computer graphics examples
- Cse 403
- Circle and ellipse drawing algorithm in computer graphics
- Viewport clipping in computer graphics
- Valuator devices in computer graphics
- Curves and surfaces for computer graphics
- Reflection vector in computer graphics
- Valuator devices in computer graphics
- Basic unit of computer graphics
- What is the multimedia software
- Post filtering in computer graphics
- Ray casting method in computer graphics
- Programmable pipeline in computer graphics
- Cs 418 interactive computer graphics
- Cs 418 interactive computer graphics