# ShadingIntro - Computer Graphics Page 1 Introduction to...

This preview shows pages 1–3. Sign up to view the full content.

Computer Graphics Page 1 Introduction to Shading and Ray Tracing Shading Shading : determining light reflection from objects at each pixel. Basic Reflection Model: Phong Reflection Model: the reflection intensity of light (I) is the aggregation of the following three types fo reflections. Ambient Reflection : angle independent I a : incident ambient-light intensity k a : object ambient-reflection coefficient part of the object material properties Lambertian / Diffusive Reflection : lighting direction dependent I d : incident difussive-light intensity k d : object diffusive-reflection coefficient Specular Reflection: viewing direction dependent I s : incident specular-light intensity k s : object specular-reflection coefficient α : specular-reflection exponent, shaniness coefficient. 02/23/11

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Page 2 1/ α : roughness. Attenuation : no impact on ambient light f att = 1/(a + bd + cd 2 ) d : distance from the light to the surface point. a,b,c: constant, linear, quadratic attenuation coefficients. http://www.codeproject.com/KB/graphics/RayTracerNe t.aspx Figure 2. Shading effects: a) Ambient, b) Diffuse, c) Highlights, d) Shadows and e) Reflection (notice the reflection on the floor also) How to get to each pixel? Image Order Shading (Ray Tracing):
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### Page1 / 8

ShadingIntro - Computer Graphics Page 1 Introduction to...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online