Understand OpenGL coordinate transforms in Pangolin
masterTo render 3D content, you must map coordinates between different systems. Pangolin examples demonstrate how to handle:
- Normalized Device Coordinates (NDC): A coordinate system independent of resolution, typically ranging from -1.0 to 1.0 on the XY plane.
- Homogeneous Coordinates: Used to represent 4x4 linear transforms, which allows for perspective projection (which is non-linear) to be handled via matrix math.
- Coordinate Transforms: The process of converting your application's coordinate system into the system OpenGL expects.