Previous | Next --- Slide 11 of 78
Back to Lecture Thumbnails
THWG

How should we calculate 1/w(x,y)? I am not sure but do we use the 3 vertices to interpolate the w for every (x,y) within the triangle?

Gyro

We do the same way to get 1/w(x,y). Because w is also a value, just like the f, or let's say the color value, which can be interpolated too. So you can get value of w(A) and w(B) and w(C) from three vertices. And then you can calculate the coefficients a,b,c of 1/w(x,y).

et17

How can we adjust these calculations for surface attributes that do not vary linearly?