13.003 Computational Geometry and Visualization

OpenGL Mapping to the Viewport


OpenGL lets you specify the coordinates of the geometric primitives in any convenient coordinate system, possibly using floating point numbers. For these primitives to be displayed on the screen, however, the coordinates must be transformed into a specific integer coordinate system. These two coordinate systems are referred to as world coordinates and screen coordinates.

To perform this transformation, we must define the portion of the world coordinate system that will be mapped to the screen coordinate system.

World Coordinate Window

Screen Coordinate Viewport


On to "OpenGL Window System Interaction"
Back to "Introduction to graphics with OpenGL"
Back to "Lectures on OpenGL and Computer Graphics"