Q3Computer Graphics and Multimedia
Question
Define Viewport.
Answer
A Viewport is the rectangular area on the screen (device coordinates) where the window contents are displayed after the viewing transformation.
A viewport is a rectangular region on the physical display screen where a scene or image is presented. It is defined in device (screen) coordinates. In graphics pipelines, the window-to-viewport transformation maps the world-coordinate window (the portion of the world scene to be shown) to the screen-coordinate viewport.
Multiple viewports can exist on a single screen (e.g., multi-view CAD displays showing top, front, and side views simultaneously). The viewport transformation scales and translates coordinates from normalized device coordinates (NDC) [0,1]×[0,1] to actual screen pixel coordinates.