ShadingIntro

ShadingIntro - Computer Graphics Page 1 Introduction to...

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

View Full Document Right Arrow Icon
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
Background image of page 1

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

View Full DocumentRight Arrow Icon
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):
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

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 Right Arrow Icon
Ask a homework question - tutors are online