Part IA Michaelmas Term
Barycentric Coordinates
Definition
Barycentric coordinates express a point inside a triangle as a weighted combination of the vertices:
where and for points inside the triangle.
Computing Barycentric Coordinates
Given triangle vertices , , and point :
Define implicit line equation:
Then:
Interpolating Attributes
Any attribute (colour, normal, texture coordinates) can be interpolated:
Used for:
- Colour interpolation (Gouraud shading)
- Normal interpolation (Phong shading)
- Texture coordinate interpolation
Point-in-Triangle Test
A point is inside the triangle if and only if:
Summary
- Barycentric coordinates express points as vertex weights
- Sum to 1 inside triangle; all positive for interior points
- Enable smooth attribute interpolation across triangle
Past Paper Questions
2025 Paper 3 Question 4(b)(iv): What are barycentric coordinates, and where are they needed in the OpenGL rendering pipeline? [3 marks]