Questions tagged [interpolation]
67 questions
8
votes
2 answers
How do I use barycentric coordinates to interpolate vertex normal?
Given a triangle and a point inside the triangle in Cartesian coordinate system, I compute the Barycentric coordinate of the point like this:
double v2_1[3], v2_3[3], v2_t[3];
double bary[3];
vtkMath::Subtract(p1, p2, v2_1);
vtkMath::Subtract(p3,…

Bla...
- 481
- 4
- 12
5
votes
1 answer
Normal Interpolation for Phong shading
As the title says I have been trying to understand the normal interpolation for the Phong shading/lighting model. I am unsure of the equation to calculate the normal but I have come across this equation:
N=Na*α+Nb(1−α)
Where N is the interpolated…

Will D
- 115
- 2
- 5
2
votes
1 answer
triangle barycentric coordinates interpolate edge dependent
Barycentric coordinates of a triangle are very useful for interpolating texture coordinates, for example. Each corner contains the texture coordinate and multiplies this coordinate by the barycentric coordinate. (very simple). Also very useful is…

Thomas
- 1,245
- 1
- 4
- 16
0
votes
2 answers
How to do linear interpolation?
Here in my book they have shown interpolation using parametric equation of line but I am unable to figure out how do they found out t=|y1-ys|/y1-y2 , t=|AD|/|AB| , t=|CE|/CB ,t=|EP|/|DE| here is the pic

anuj goyal
- 21
- 5