我正在准备明天的考试,这是练习题之一。我部分解决了它,但我对其余部分感到困惑。这就是问题所在:考虑一个没有环境光和镜面光(只有漫射光)的灰色世界。三角形 P1,P2,P3 的屏幕坐标为 P1=(100,100), P2= (300,150), P3 = (200, 200)。P!、P2、P3 处的灰度值分别为 1/2、3/4 和 1/4。光在无穷远处,其方向和灰度分别为 (1,1,1) 和 1.0。漫反射系数为1/2。P1,P2,P3的法线分别为N1= (0,0,1), N2 = (1,0,0), N3 = (0,1,0)。考虑三个点 P1,P2,P3 的坐标为 0。不要对法线进行归一化。我已经计算出 3 个顶点 P1、P2、P3 的光照为 (1/4,3/8,1/8)。我还计算了坐标为 (220, 160) 的三角形内点 P 的插值系数由 (1/5,2/5,2/5) 给出。现在我对这个问题还有 4 个问题。
1) The illumination at P using Gouraud Shading is:
i) 1/2
The answer is 1/2, but I have no idea how to compute it..
2) The interpolated normal at P is given by
i) (2/5, 2/5,1/5)
ii) (1/2, 1/4, 1/4)
iii) (3/5, 1/5, 1/5)
3) The interpolated color at P is given by:
i) 1/2
Again, I know the correct answer but no idea how to solve it
4) The illumination at P using Phong Shading is
i) 1/4
ii) 9/40
iii) 1/2