UNIT VI O BJECT RENDERING. INTRODUCTION Lighting in computer graphics refers to the placement of lights in a scene to achieve some desired effect. Lighting.

Slides:



Advertisements
Similar presentations
1GR2-00 GR2 Advanced Computer Graphics AGR Lecture 9 Adding Realism Through Texture.
Advertisements

16.1 Si23_03 SI23 Introduction to Computer Graphics Lecture 16 – Some Special Rendering Effects.
3D Graphics Rendering and Terrain Modeling
Virtual Realism LIGHTING AND SHADING. Lighting & Shading Approximate physical reality Ray tracing: Follow light rays through a scene Accurate, but expensive.
Introduction to 3D Graphics Lecture 1: Illusions and the Fine Art of Approximation Anthony Steed University College London.
1 Computer Graphics Chapter 9 Rendering. [9]-2RM Rendering Three dimensional object rendering is the set of collective processes which make the object.
 Engineering Graphics & Introductory Design 3D Graphics and Rendering REU Modeling Course – June 13 th 2014.
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.
Computer Graphics - Class 10
IMGD 1001: Illumination by Mark Claypool
Computer Graphics (Fall 2005) COMS 4160, Lecture 16: Illumination and Shading 1
(conventional Cartesian reference system)
1/12/09 1 Introduction Computer Graphics COMP 770 (236) Spring 2009 Instructor: Dinesh Manocha.
Global Illumination May 7, Global Effects translucent surface shadow multiple reflection.
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.
1 Lecture 11 Scene Modeling. 2 Multiple Orthographic Views The easiest way is to project the scene with parallel orthographic projections. Fast rendering.
SWE 423: Multimedia Systems Chapter 4: Graphics and Images.
6.1 Vis_04 Data Visualization Lecture 6 - A Rough Guide to Rendering.
University of British Columbia CPSC 414 Computer Graphics © Tamara Munzner 1 Shading Week 5, Wed 1 Oct 2003 recap: lighting shading.
MULTIMEDIA TECHNOLOGY SMM 3001 MEDIA - GRAPHICS. In this chapter how the computer creates, stores, and displays graphic images how the computer creates,
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
UFCEKT-20-33D Modelling and Animation 3D Modelling & Animation Materials and Textures Maps.
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.
Shading (introduction to rendering). Rendering  We know how to specify the geometry but how is the color calculated.
Modelling and Simulation Types of Texture Mapping.
Technology and Historical Overview. Introduction to 3d Computer Graphics  3D computer graphics is the science, study, and method of projecting a mathematical.
Computer Visualization BIM Curriculum 03. Topics  History  Computer Visualization Methods  Visualization Workflow  Technology Background.
Chapter 10: Computer Graphics
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 10: Computer Graphics Computer Science: An Overview Tenth Edition.
Human Eye and Color Rays of light enter the pupil and strike the back of the eye (retina) – signals go to the optic nerve and eventually to the brain Retina.
I-1 Steps of Image Generation –Create a model of the objects –Create a model for the illumination of the objects –Create an image (render) the result I.
Computer Graphics An Introduction. What’s this course all about? 06/10/2015 Lecture 1 2 We will cover… Graphics programming and algorithms Graphics data.
CS 376 Introduction to Computer Graphics 04 / 16 / 2007 Instructor: Michael Eckmann.
CS447/ Realistic Rendering -- Radiosity Methods-- Introduction to 2D and 3D Computer Graphics.
University of Texas at Austin CS 378 – Game Technology Don Fussell CS 378: Computer Game Technology Basic Rendering Pipeline and Shading Spring 2012.
Illumination and Shading How to shade surfaces based on the position,orientation,characteristics of the surfaces and the light sources illuminating them.
3D animation is rendered clip of animated 3D objects in a 3D environment. An example: Examples of movies released in 3D are Toy Story, Cars, Shrek, Wall-E,
Digital Media Dr. Jim Rowan ITEC 2110 Vector Graphics II.
Vector Graphics Digital Multimedia Chap 이병희
04/30/02(c) 2002 University of Wisconsin Last Time Subdivision techniques for modeling We are now all done with modeling, the standard hardware pipeline.
Digital Media Dr. Jim Rowan ITEC 2110 Vector Graphics II.
CS 325 Introduction to Computer Graphics 03 / 29 / 2010 Instructor: Michael Eckmann.
Graphics Graphics Korea University cgvr.korea.ac.kr 1 Surface Rendering Methods 고려대학교 컴퓨터 그래픽스 연구실.
Introduction to Computer Graphics
Color Models. Color models,cont’d Different meanings of color: painting wavelength of visible light human eye perception.
RENDERING Introduction to Shading models – Flat and Smooth shading – Adding texture to faces – Adding shadows of objects – Building a camera in a program.
CISC 110 Day 3 Introduction to Computer Graphics.
Local Illumination and Shading
Computer Graphics Ken-Yi Lee National Taiwan University (the slides are adapted from Bing-Yi Chen and Yung-Yu Chuang)
Digital Media Dr. Jim Rowan ITEC 2110 Vector Graphics II.
Computer Graphics: Illumination
Illumination and Shading. Illumination (Lighting) Model the interaction of light with surface points to determine their final color and brightness OpenGL.
Chapter 10: Computer Graphics
Aspects of Game Rendering
Rendering Process of producing “realistic” images or pictures
3D Graphics Rendering PPT By Ricardo Veguilla.
Unit-7 Lighting and Shading
Chapter 10: Computer Graphics
Jim X. Chen George Mason University
Chapter 14 Shading Models.
Fundamentals of Computer Graphics Part 6 Shading
CS5500 Computer Graphics May 29, 2006
Illumination and Shading
Computer Graphics Material Colours and Lighting
Chapter 14 Shading Models.
Dr. Jim Rowan ITEC 2110 Vector Graphics II
Presentation transcript:

UNIT VI O BJECT RENDERING

INTRODUCTION Lighting in computer graphics refers to the placement of lights in a scene to achieve some desired effect. Lighting is very important part of an image synthesis. It is used to create 3D effect by separating foreground from background. Rendering: It refers to the process of adding realism to computer graphics by adding 3D qualities such as shadows and variations in color & shade. It is the process of generating an image from a model by means of computer programs. Model may contain geometry, view-point, texture, lighting & shading information.

F EATURES OF RENDERING Shading : How the color and brightness of the surface varies with lighting. Texture mapping : A method of applying details to the surfaces. Shadows : The effect of an obstructing light. Soft Shadows : Varying darkness caused by partially obscured light sources. Reflection : a mirror like or a highly glossy reflection. Transparency : Sharp transmission of the light through the solid objects.

LIGHT MODELLING TECHNIQUES We have four modeling techniques: 1. Rasterization : It includes a scan line rendering that considers the objects in the scene & projects them to form an image with no facility for generating a point of view perspective effect. 2. Ray casting : It considers the scene as observed from a specific point of view, calculates the image based only on geometry.

3.Ray tracing : It is same as ray casting but employs more advanced optimal simulation and usually uses the Monte Carlo techniques to obtain more realistic results at a speed that is often of slower magnitude. 4. Radiosity : It uses the finite element mathematics to simulate diffused spreading of light from surfaces.

Example

ILLUMINATION MODEL: An illumination model is influenced and described using a particular equation. Modeling the interaction of light with the surface of some object is known as lighting model. The contribution from the light that goes directly from the light source and is reflected from the surface is called a local illumination model. A global illumination model: It adds to a local model the light that is reflected from other surface to the current surface. A global illumination model is more comprehensive, more physically correct and produces more realistic images.

SHADING It is a process used in drawing for depicting levels of darkness on a paper by applying media more densely or with a darker shade for darker areas or less densely or with a lighter shades for lighter areas. It refers to a process of altering a color based on its angle to lights and its distance from lights to create a photorealistic effect. The shading is performed during the rendering process. It is an interpolation based technique that helps to understand how the angle of light sources reaches the object within a scene. The shading techniques or models are widely used in rendering objects for commercial and other applications.

There are four types of shadings: 1. Flat shading 2. Polygon mesh shading 3. Gouraud Shading model 4. Phong shading

FLAT SHADING: A flat shading is a technique used in a 3D computer graphics. It shades each polygon of an object based on angle between a polygon’s surface and the direction of the light source, their respective colors and the intensity of the light source. It is used for high-speed rendering, where more advanced shading techniques are too computationally expensive. It is a simplest shading model for a polygon known as constant shading or faceted shading.

This approach applies an illumination model to determine a single intensity value that is then used to shade an entire polygon and holding a value across a polygon to reconstruct its shade. The disadvantage of flat shading is that it gives faceted look to the low polygon models. A flat shading is fast and fine for prototyping and testing but is of a little value for realistic games.

POLYGON MESH SHADING: It determines the shade of each polygon individually. The two basic shading models for the polygon meshes take advantage of the information provided by the adjacent polygons to simulate a smooth surface.

GOURAUD SHADING MODEL: The Gouraud is named after Henri Gouraud. It is method used in computer graphics to simulate the differing effects of light and color across the surface of an object. It is used to achieve a smooth lighting on the low polygon surfaces without the heavy computational requirements of calculating the lighting for each pixel.

PHONG SHADING: Phong shading combines a model for the reflection of light from surfaces with a compatible method of estimating pixel colors using interpolation of surface normals across rasterized polygons. It is an empirical model of local illumination. Phong shading produces better results than the Gouraud shading but it is more expensive in terms of computation.

S HADOWS Region of darkness where light is blocked by an object. A shadow is a dark region projected on to a surface by an object that receives a light. It is used to add realism and perception of an object position in space and their relative position with respect to light source. Types of shadows are as follows: Self shadow Projected shadow Soft shadow Hard shadow

Self shadow: It is created when the object itself prevent the light from reaching some of its plane. Generally if the view area and the light source are coinciding then shadow is generated. Projected shadow: These shadows are created due to obstacles forming on the path in which the light travels. A projected shadow is formed when an intervening object prevents the light from reaching the other object. A projected shadow results when an intervening object prevents the light from reaching another object in the scene. Projected shadows are found by projecting all the non self hidden planes into the scene from the position of light source.

Soft shadow: Soft shadow are created by a single light source, and a surface may have many overlapping shadows from several light sources. It consists of umbra and penumbra. Umbra is a completely occulted region of shadow. Soft shadows appear more realistic than hard shadows so are desirable for the more realistic simulation. Hard shadow: Hard shadows are formed when an object receives light from a point light source at a very large distance. A hard shadow is termed so because of the fact that the umbra region is only region that is clearly defined on it. That is penumbra is undefined. Hard shadows are relatively easier to compute for a given object than soft shadows.

C OLOR MODEL The human eye is sensitive to an electromagnetic radiation with wavelengths between 380 and 700 nm. This radiation is known as light. Color model is an abstract mathematical model, describing the way colors can be represented. It may be represented as a tuples of numbers. Color models explains the properties or behavior of color with some particular context. There are two types of color models RGB color model CMY color model

RGB color model: It is generally used in computer graphics. It corresponds to Red, Green and Blue intensity settings of a color monitor. Other colors are generated by adding intensities of primary colors. For example, Yellow(1,1,0) is a combination of Red and Green. Each color is represented by a triple (R,G,B). CMY color model: It is generally used in color output on printer. The primary colors are Cyan, Magenta and Yellow. Other colors are generated by adding intensities of primary colors. For example, Cyan can be formed by adding green and blue. It means there is no red color, i.e. red color is absorbed or subtracted. Similarly Magenta absorbs Green and Yellow and removes blue.

ANIMATION Art of creating a moving images by using computers Applications of computer animations are games cartoon motion pictures Animation creates the illusion of movement An image is displayed on the computer screen which then quickly replaced by a new image that is similar to the previous image but slightly shifted

K EY FRAME V / S PROCEDURAL To produce a key frame animation, the animator creates the behavior of a model manually by using an intuitive “put that there” methodology. The animator has direct control over the positions, shapes, and motions of models at any moment in the animation. On the other hand, to produce a procedural animation the animator provides initial conditions and adjust rather abstract physical parameters, such as forces and torques, in order to control positions, shapes, and motions of models. The effect of changing a parameter value is often unpredictable in procedural animation. The animator has to run a simulation to see the result.

C ONSTRUCTION O F A N A NIMATION S EQUENCE A typical animation sequence is obtained using: Storyline A storyline is a sketch which are used by the action defining the motion progression as a set of basic events that must take place It comprises all the events in a story, consisting of rough sketches or it could be a list of basic idea for the motion. Object definition: An object is a participant in an action that can have some properties and bear relation with other object An object definition is given to each participant in the action defined in terms of basic shapes such as circle, arc and so on. Key Frame Specification: A key frame is a drawing that defines the starting and ending point of any smooth transition. A sequence of key frame defines which movement will be seen. Tweening: The process of generating intermediate frames between two images to give the appearance that the first image evolves smoothly into the second image.

M ORPHING Morphing is a special effect in motion pictures and animations that changes (or morphs) one image into another through a seamless transition. Morphing is a phenomenon by which a picture smoothly transmutes into another picture. Intermediate images that bridge the transition are calculated from the source and destination images using a mathematical function. Morphing is a combination of two process: a) Cross Dissolving b) Warping

Cross Dissolving: It changes the image color pixel by pixel It produces intermediate images by averaging the pixel color row by row and column by column A simple morph between two similar images and same dimension and resolution can be created by cross dissolving alone Warping Warping changes the shape of the feature in an image by shifting its pixel around Warping is used to change the shape of the image. It changes the row and column values of an image pixel thus changing the actual shape of feature in an image

Morphing from Car into Tiger