Download presentation
Presentation is loading. Please wait.
Published byΞΞ±ΟΞ¬ ΞΡλΡΟΟΟΞΏΟ Ξ»ΞΏΟ Modified over 5 years ago
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( π β π ) π β π ΞΈ π π΅ π½ π½ π
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.