Presentation is loading. Please wait.

Presentation is loading. Please wait.

The Phong Illumination Model

Similar presentations


Presentation on theme: "The Phong Illumination Model"β€” Presentation transcript:

1 The Phong Illumination Model
𝐼= π‘˜ π‘Ž 𝐿 π‘Ž + π‘˜ 𝑑 𝐿 𝑑 𝑁 βˆ™ 𝐿 + π‘˜ 𝑠 𝐿 𝑠 𝑉 βˆ™ 𝑅 𝑛 Problems: does not describe Reflection Refraction Shadow Generalize 𝐼 to describe the above 𝑹 𝑡 𝑳

2 Reflective/Transparency
Medium 1 Medium 2 ΞΈ 𝑖 ΞΈ π‘œ 𝑡 𝑽 𝒕 𝑽 𝑽 𝒓 P 𝑑 P 𝑽 : viewing direction 𝑽 𝒓 : mirror reflection direction 𝑽 𝒕 : transmission direction 𝑃: visible position P π‘Ÿ : visible position along 𝑽 𝒓 P 𝑑 : visible position along 𝑽 𝒕 𝑡 : Normal vector at visible position P Ξ½: Reflectivity at visible position P Material property: value between 0 to 1 Ο„: Transparency at visible position P Note: for typical materials: Ξ½ + Ο„ < 1

3 Support for Reflection and Refraction
𝐼=𝐼 𝑃 Γ— 1βˆ’Ο„βˆ’Ξ½ +𝐼 𝑃 π‘Ÿ Γ—Ξ½+𝐼 𝑃 𝑑 Γ—Ο„ 𝐼 𝑃 - Phong model evaluated at position 𝑃 𝐼 𝑃 π‘Ÿ - Phong model evaluated at Position 𝑃 π‘Ÿ 𝐼 𝑃 𝑑 - Phong model evaluated at Position 𝑃 𝑑 Ξ½: Reflectivity at position 𝑃 Ο„ : Transparency at position 𝑃 P π‘Ÿ ΞΈ 𝑖 ΞΈ π‘œ 𝑡 𝑽 𝒕 𝑽 𝑽 𝒓 P 𝑑 P

4 𝑉 𝑑 : Refraction Direction
Ξ·: refraction index When traveling from medium 1 to 2 Ξ·= sin ΞΈ 𝑖 sin ΞΈ π‘œ 𝑉 𝑑 =βˆ’[ 𝑉 πœ‚ +( cos πœƒ π‘œ βˆ’ cos πœƒ 𝑖 πœ‚ ) 𝑁 Medium 1 Medium 2 ΞΈ 𝑖 ΞΈ π‘œ 𝑡 𝑽 𝒕 𝑽

5 Reflection Direction 𝑽 𝒓 =2 cos πœƒ 𝑖 𝑁 βˆ’ 𝑉 Or 𝑽 𝒓 =2( 𝑁 βˆ™ 𝑉 ) 𝑁 βˆ’ 𝑉 𝑡 𝑽
𝑽 𝒓 =2( 𝑁 βˆ™ 𝑉 ) 𝑁 βˆ’ 𝑉 ΞΈ 𝑖 𝑡 𝑽 𝑽 𝒓


Download ppt "The Phong Illumination Model"

Similar presentations


Ads by Google