Past exam question: 2082 Kartik (Back), Q3(c)
Open in the Padhaiko appWhy we need perspective projection in 3D environment? Explain transformation from world to viewing coordinates.
Solution
Need for Perspective Projection in 3D Graphics: While parallel projections preserve relative proportions and parallelism (useful for engineering blueprints and CAD), they look unnatural to human eyes. Perspective projection is essential in 3D environments because:
- Human Visual Realism: Human eyes and physical optical cameras operate via perspective geometry, where rays converge through a lens/pupil onto the retina/sensor.
- Perspective Foreshortening: Objects farther from the camera appear smaller than identical objects closer to the camera. This provides the primary visual depth cue.
- Vanishing Points: Parallel 3D lines that are not parallel to the projection plane converge to a single vanishing point (e.g. railroad tracks converging at the horizon), giving depth perception in architectural walkthroughs, games, and VR environments.
Viewing Coordinate Reference Frame Specification: The transformation from world coordinates to viewing (camera) coordinates maps all 3D scene geometry from a universal coordinate system into a coordinate system centered at the virtual camera. The camera is defined in world coordinates by:
- Viewpoint / Eye position:
- Look-at / Reference position:
- View-up vector: (specifies the approximate upward tilt of the camera)
Construction of Camera Unit Basis Vectors: From the camera parameters, an orthonormal right-handed viewing basis is constructed:
- View normal vector (): Vector along the camera viewing axis pointing backwards (opposite to the line of sight):
- Horizontal camera vector (): Perpendicular to both and , pointing to the camera's right:
- True camera up vector (): Perpendicular to both and :
Composite World-to-Viewing Transformation Matrix: Mapping world coordinates to viewing coordinates requires two operations:
- Translation: Translate camera position to the world coordinate origin:
- Rotation: Align the camera basis vectors with world axes :
Multiplying the two matrices yields the composite viewing transformation matrix :
- Perspective projection is required in 3D graphics to deliver visual depth cues (foreshortening and vanishing points) consistent with natural human vision.
- The world-to-viewing transformation aligns the camera at position looking toward with orthonormal unit basis vectors via translation followed by rotation:
All past exam questions for Computer Graphics and Visualization