Computer Graphics · 3D Representation and Viewing
3D Viewing Projections and Clipping
Overview
3D viewing is the process of mapping a three-dimensional scene to a two-dimensional display through a sequence of coordinate transformations, projections, and clipping operations.
This lesson covers parallel and perspective projections, principal vanishing points, view volumes, homogeneous coordinates, the perspective divide, and the standard line and polygon clipping algorithms.
UGC NET tests both conceptual distinctions and small numerical or formula-based applications. You should already know Cartesian coordinates, vectors and dot products, matrices, line equations, and basic polygons.
Key concepts
- A projection maps 3D points onto a projection plane using projectors from a centre of projection (COP) or along a direction of projection (DOP).
- In a parallel projection, the COP is at infinity and all projectors are parallel. Parallel lines remain parallel, and the transformation is affine.
- In a perspective projection, the COP is finite and projectors converge. Parallel lines generally do not remain parallel; they meet at vanishing points. Straight lines, however, still map to straight lines.
- A principal vanishing point is the vanishing point for one of the three principal axes .
For a principal direction , a finite principal vanishing point exists only when lines parallel to are not parallel to the view plane, equivalently when , where is the view-plane normal. - One-point perspective: the view plane is parallel to two principal axes, so only one principal axis pierces the view plane. Two-point perspective: view plane is parallel to one principal axis.
Three-point perspective: view plane is parallel to none. - For the standard perspective setup with COP at origin and view plane , only the -direction has a finite principal vanishing point.
The and directions are parallel to the view plane, so their vanishing points are at infinity. - In perspective, objects farther from the COP appear smaller: perspective foreshortening. A parallel projection is the limiting case of perspective projection when the viewer goes infinitely far away.
- View confusion: objects behind the COP can be projected upside down and backward because their viewing depth is negative.
- Topological distortion: a line segment joining a point in front of the viewer to a point behind the viewer can project to a broken line of infinite extent as it crosses the plane through the COP.
- Orthographic projection is a parallel projection with projectors perpendicular to the projection plane. It preserves parallelism and is an affine transformation.
Axonometric projection is an orthographic projection in which the projection plane is not perpendicular to the principal axes; isometric is the axonometric case with equal foreshortening along the three axes. - Oblique projection is a parallel projection with projectors not perpendicular to the projection plane. Parallel lines remain parallel.
Cavalier keeps the receding-axis length unchanged; cabinet halves the receding-axis length. - The 3D viewing pipeline normally is: world coordinates viewing/camera coordinates projection transform homogeneous clip coordinates clipping perspective divide normalized device coordinates viewport mapping.
- The viewing transformation moves the world so that the camera is at the origin and its axes align with the view direction. It is a rigid motion: translation plus rotation.
- The view volume is the region visible after projection. For perspective it is a view frustum bounded by near, far, left, right, top and bottom planes.
Normalization maps this frustum to a canonical axis-aligned box before clipping. - Homogeneous coordinates use an extra coordinate. In 2D, represents ; in 3D, represents . A point with is a point at infinity or direction.
If a 2D homogeneous triple is written , then is the point at infinity. - The perspective transformation is represented by a homogeneous matrix, but the resulting Cartesian map is not linear because of division by .
UGC treats “perspective transformation is a linear transformation” as false in Cartesian coordinates. - Clipping removes parts of lines, polygons, or objects outside the view volume/window. In 3D it is done against the six planes of the view volume; in homogeneous clipping the inequalities are , etc., after normalization.
- Cohen–Sutherland line clipping uses region codes for trivial accept/reject and repeated boundary intersection.
- Cyrus–Beck line clipping uses the parametric line and inward normals; it computes values at clipping boundaries.
- Sutherland–Hodgman polygon clipping clips a polygon edge by edge against a convex clipping window/polygon. It is treated in UGC questions as a convex-polygon clipping method.
- For a convex subject polygon with vertices clipped against a convex window with vertices, the result has at most vertices. Thus a triangle clipped by a rectangle can have at most vertices, not .
How it works
- Transform the scene from world coordinates to viewing/camera coordinates using the camera position and orientation. This makes projection and clipping easier.
- Choose the projection type. For parallel projection, use a DOP; for perspective, use a finite COP.
- For perspective with COP at origin and view plane , a point projects to . Points with cannot be projected finitely; directions with have vanishing points at infinity.
- Form the homogeneous projection matrix and keep points in homogeneous coordinates. Clipping is usually performed before the perspective divide to avoid division by zero and to work in clip space.
- Clip against the view volume. For a perspective frustum, clip against six planes: near, far, left, right, top and bottom. For a 3D Cohen–Sutherland clipper, use six region bits.
- For line clipping, first test both endpoints. If both are inside, accept; if both share an outside region, reject; otherwise find an intersection with a boundary and repeat.
- For Cyrus–Beck, substitute into the boundary equation with an inward normal and solve for . Update the valid interval .
- For polygon clipping, apply Sutherland–Hodgman: process each boundary edge of the clip window.
For each polygon edge, output vertices according to inside/outside cases: inside–inside output second vertex; inside–outside output intersection; outside–outside output nothing; outside–inside output intersection then second vertex. - Perform the perspective divide to obtain normalized Cartesian coordinates, then map to the viewport.
Drawing the diagram…
Formulas
- Perspective projection onto , COP at origin:
Here , , and visible points normally have . - Perspective projection matrix, column-vector convention:
Dividing by gives . - Principal vanishing point for direction under the above setup:
If , the direction is parallel to the view plane and its vanishing point is at infinity. - Uniform homogeneous coordinates:
With , the point is at infinity. - Parametric line segment:
- Cyrus–Beck parameter for boundary point and inward normal :
If , then . - Line intersection with vertical boundary :
- Plane clipping intersection: for plane ,
Worked examples
Example 1. A point in camera coordinates is . It is perspective-projected onto with COP at the origin. Find the image coordinates on the projection plane.
Using and with :
The projected point is .
Example 2. In an oblique projection onto , , . For and , find the projected coordinates.
The projected point is approximately .
Example 3. Derive the perspective matrix for COP at origin and view plane , then count the principal vanishing points.
For :
Divide by :
For direction , , so the vanishing point is at infinity. For , also at infinity. For :
Thus the standard setup has one principal vanishing point, in the direction.
Example 4. Clip the segment from to against the boundary , with the inside region . Use Cyrus–Beck.
Boundary point , inward normal , direction .
Intersection is . Since the direction has negative dot product with the inward normal, this is a leaving point, so the clipped part is to .
Example 5. Statement I: A triangle clipped to a rectangle can have at most 6 sides. Statement II: In 3D graphics, the perspective transformation is nonlinear in . Which are true?
A triangle has vertices, a rectangle has , so a convex polygon intersection can have at most vertices. Statement I is false. Perspective division by makes the Cartesian transformation nonlinear in , so Statement II is true. Correct answer: Statement I false, Statement II true.
Comparison
| Basis | Parallel projection | Perspective projection |
|---|---|---|
| Centre of projection | At infinity | Finite |
| Projectors | Parallel | Converging |
| Parallel lines in image | Remain parallel | Generally meet at vanishing points |
| Size with distance | Does not change | Farther objects appear smaller |
| Affine transformation | Yes | No in Cartesian coordinates |
| Principal vanishing points | None finite | 1, 2 or 3 depending on view plane orientation |
| Projection type | Key property |
|---|---|
| Orthographic | Projectors perpendicular to projection plane; preserves parallelism; affine |
| Axonometric | Orthographic but plane not perpendicular to principal axes; isometric/dimetric/trimetric |
| Isometric | Equal foreshortening along three principal axes |
| Oblique | Parallel projectors not perpendicular to plane; parallel lines remain parallel |
| Cavalier | Oblique with receding-axis foreshortening factor |
| Cabinet | Oblique with receding-axis foreshortening factor |
| Term | Meaning |
|---|---|
| View confusion | Objects behind the COP appear upside down and backward |
| Topological distortion | Segment crossing the plane through COP projects to a broken line of infinite extent |
| Perspective foreshortening | Farther objects appear smaller |
| Vanishing point | Image point where parallel lines meet in a perspective projection |
| Algorithm | Used for | Main idea |
|---|---|---|
| Cohen–Sutherland | Line clipping | Region codes, trivial accept/reject, boundary intersections |
| Cyrus–Beck | Line clipping | Parametric , inward normals, interval update |
| Liang–Barsky | Line clipping | Parametric inequalities, efficient interval clipping |
| Sutherland–Hodgman | Polygon clipping | Clip edge by edge against convex window |
| Weiler–Atherton | Polygon clipping | Handles concave clipping windows by following polygon boundaries |
Revision summary
- Parallel projection: parallel lines stay parallel; perspective projection: parallel lines may meet at vanishing points.
- Standard perspective with plane , COP origin: only has a finite principal vanishing point.
- One-point perspective: one principal vanishing point; two-point: two; three-point: three.
- Perspective divide is ; Cartesian perspective is nonlinear because of division by .
- Homogeneous point at infinity: ; in 2D triple , means infinity.
- Cavalier keeps full length; cabinet halves the receding-axis length.
- Orthographic projection preserves parallelism and is affine.
- Oblique projectors are not perpendicular to the projection plane.
- Behind the eye: view confusion. Crossing the eye plane: topological distortion.
- Triangle clipped by rectangle: maximum vertices, not 6.
- Cyrus–Beck: , with .
- Sutherland–Hodgman clips polygon vertices sequentially against each clip boundary.
Previous-year exam insights
- Direct conceptual questions ask which projection preserves parallelism, which projection has projectors perpendicular to the plane, and what oblique projection means.
Remember: parallel preserves parallelism; orthographic is perpendicular; oblique is not perpendicular. - Statement-based questions mix true and false ideas: “perspective makes parallel lines non-parallel” is generally true, but lines parallel to the view plane remain parallel; “perspective transformation is linear” is false in Cartesian coordinates.
- Matching questions test cavalier, cabinet, isometric, orthographic, oblique, and perspective properties.
Cavalier means no foreshortening on the receding axis; cabinet means half foreshortening. - Matrix questions ask for the standard perspective matrix on with COP at origin.
Use column-vector convention and remember the last row contains the that creates division by . - Numeric projection questions use or oblique formulas with .
Check the given plane distance and whether the point has positive or negative . - Clipping questions ask about Cyrus–Beck formula, Cohen–Sutherland region codes, Sutherland–Hodgman use, and maximum vertices after clipping.
For Cyrus–Beck use an inward normal and verify the interval. - Perspective “effect” questions distinguish view confusion, topological distortion, perspective foreshortening, and vanishing point.
Do not interchange behind-the-eye confusion with crossing-the-eye-plane distortion. - A common trap is the claim “perspective projections do not preserve straight lines.” They do preserve straight lines; they fail to preserve parallelism.
Another trap is “projectors are always perpendicular” for oblique projections; this is false.
Practice at PARIKSHA
You are ready for the PARIKSHA tests of this sub-topic when you can:
- Classify any given projection as parallel/perspective, orthographic/oblique, cavalier/cabinet, or one/two/three-point perspective.
- Count principal vanishing points and name their directions for standard and tilted view-plane setups.
- Compute perspective image coordinates using and identify points behind the viewer.
- Write and identify the standard perspective projection matrix on with COP at origin.
- Apply cavalier and cabinet oblique formulas and explain the foreshortening factor.
- Explain the 3D viewing pipeline order from world coordinates to screen coordinates.
- Apply Cohen–Sutherland region-code logic and Cyrus–Beck formula for line clipping.
- Clip a small polygon using Sutherland–Hodgman and count the maximum possible output vertices.
- Distinguish view confusion, topological distortion, perspective foreshortening, and vanishing point in statement-type questions.
- Handle homogeneous coordinates, including points at infinity with .
Attempt the sub-topic test first, then the subject test.