Lecture Computer graphics: Lecture 25 - Fasih ur Rehman

This chapter described how memory stores data, instructions, and information, and discussed the sequence of operations that occur when a computer executes an instruction. The chapter included a comparison of various microprocessors on the market today. | Computer Graphics Lecture 25 Fasih ur Rehman Last Class Shading Today’s Agenda Shading What Shading can do? Let us suppose we draw a circle Phong Reflection Model A simple model supports three models of light – matter interactions Diffuse Specular Ambient and uses four vectors normal to source to viewer perfect reflector Ideal Reflector Local orientation of the surface determines the normal vector Law of reflection is obeyed The three vectors must lie in same plane Lambertian Surface Perfectly diffuse reflector Light scattered equally in all directions Amount of light reflected is proportional to the vertical component of incoming light reflected light ~cos qi cos qi = l · n if vectors normalized There are also three coefficients, kr, kb, kg that show how much of each color component is reflected Specular Surfaces Most surfaces are neither ideal diffusers nor perfectly specular (ideal reflectors) Specular highlights appear on smooth surfaces due to incoming light being reflected in . | Computer Graphics Lecture 25 Fasih ur Rehman Last Class Shading Today’s Agenda Shading What Shading can do? Let us suppose we draw a circle Phong Reflection Model A simple model supports three models of light – matter interactions Diffuse Specular Ambient and uses four vectors normal to source to viewer perfect reflector Ideal Reflector Local orientation of the surface determines the normal vector Law of reflection is obeyed The three vectors must lie in same plane Lambertian Surface Perfectly diffuse reflector Light scattered equally in all directions Amount of light reflected is proportional to the vertical component of incoming light reflected light ~cos qi cos qi = l · n if vectors normalized There are also three coefficients, kr, kb, kg that show how much of each color component is reflected Specular Surfaces Most surfaces are neither ideal diffusers nor perfectly specular (ideal reflectors) Specular highlights appear on smooth surfaces due to incoming light being reflected in directions close to the direction of a perfect reflection Specular Reflections Model According to Phong, Reflected intensity Ir goes as absorption coeff. ks and projection of incoming intensity along viewer (α is shinness coeff) Ir ~ ks I cosaf The Shininess Coefficient Values of a vary between 100 and 200 for metals Values vary between 5 and 10 for surfaces that look like plastics Ambient Light Ambient light is the result of multiple interactions between (large) light sources and the objects in the environment Amount and color depend on both the color of the light(s) and the material properties of the object Add ka Ia (reflection coef * intensity of ambient light) to diffuse and specular terms Distance Terms The light from a point source that reaches a surface is inversely proportional to the square of the distance between them We can add a factor of the form 1/(ad + bd +cd2) to the diffuse and specular terms The constant and linear terms soften the effect of the point source Light .

Không thể tạo bản xem trước, hãy bấm tải xuống
TÀI LIỆU MỚI ĐĂNG
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.