Information Technology is coming soon

We're still writing and reviewing the notes for every subject, and we'll open it when every subject is ready. Meanwhile you can practise aptitude, ask Aria about any subject, or see the branches that are ready.

Parallel projections

Parallel projection maps 3D points to a plane using parallel projection rays; common types are orthographic (perpendicular) and oblique (slanted), and we implement them with simple formulas or 4×4 homogeneous matrices after an appropriate view transform.

Drafted with Aria, reviewed by the AiCanCode.org team · Updated . How we write and check our notes. Spotted an error? Use Give Feedback at the bottom of the page.

Why it matters

Parallel projection is used when you must show 3D objects without perspective distortion: mechanical drawings, CAD front/side/top views, and some game or UI renderings. Engineers use it to produce accurate scale drawings, to do hidden-surface reasoning in a view, and as a step before clipping and rasterisation (see Windowing and the viewing transformation).

Key ideas

(Keep definitions short, then derive the main formulas step by step. Draw what the derivation asks for.)

  • Projection plane: the flat surface onto which points are projected. In coordinates we often use the view plane z = z0 or the canonical xy-plane (z = 0).

  • Projection direction (projectors): a vector (l, m, n) that gives the direction of all projection rays. In a parallel projection every projector is parallel to this vector.

  • Parallel projection: the mapping that sends each 3D point P(x,y,z) onto the point P'(x',y',z') on the projection plane by following a straight line in direction (l,m,n). All projectors are parallel. (Assume (l,m,n) ≠ (0,0,0).)

  • Two important special cases:

    • Orthographic projection: projectors are perpendicular (normal) to the projection plane. If the view plane is the xy-plane (z = 0) and projectors are along ±z, orthographic projection simply drops z: x' = x, y' = y, z' = 0. Orthographic = no perspective foreshortening; lengths parallel to the projection plane are preserved (lines inclined to the plane appear foreshortened).
    • Oblique projection: projectors are at an angle to the projection plane (not perpendicular). The projection of depth (z) appears as a shear on x and/or y. Common subtypes: cavalier (depth drawn at full scale, typically at 45°; depth scale L = 1) and cabinet (depth scale L = 1/2, gives less distortion). Also widely used: axonometric (orthographic after rotation) projections — isometric (equal foreshortening on x, y, z), dimetric, trimetric. A standard isometric setup rotates the model by 45° about the y-axis then by 35.26438968° about the x-axis, followed by an orthographic drop of z.

Exact mapping for projection onto the plane z = z0 along direction (l,m,n) (assume n ≠ 0):

  1. Start with a 3D point P(x,y,z).
  2. The parametric line through P in projector direction is Q(t) = (x + l t, y + m t, z + n t).
  3. Find t* such that z + n t* = z0. Solve t* = (z0 - z)/n.
  4. Substitute into x and y coordinates to get the projected point P': x' = x + l * t* = x + l * (z0 - z)/n, y' = y + m * t* = y + m * (z0 - z)/n, z' = z0.

Often we choose z0 = 0 (project to the xy-plane). Then the formulas reduce to: x' = x - (l/n) * z, y' = y - (m/n) * z, z' = 0.

For oblique projection onto z = 0 people often write the shear form: x' = x + L cos θ · z, y' = y + L sin θ · z, where L = cot α and α is the angle between the projectors and the projection plane, θ is the in-plane direction of the depth axis. This is algebraically the same as choosing l = -L cos θ and m = -L sin θ with n = 1 (or after scaling the projector vector).

Matrix / homogeneous form (projection to z = 0):

  • Oblique (shear) 4×4 matrix that maps (x,y,z,1)ᵀ → (x + l z, y + m z, 0, 1): Draw a 4×4 matrix with rows: [1 0 l 0; 0 1 m 0; 0 0 0 0; 0 0 0 1]. Multiply by column [x y z 1]ᵀ.
  • Orthographic onto z = 0 is the special case l = m = 0, matrix: [1 0 0 0; 0 1 0 0; 0 0 0 0; 0 0 0 1].

Projection onto an arbitrary plane: procedure (describe diagram to draw):

  1. Draw coordinate axes and an arbitrary plane Π. Mark a 3D point P and projectors parallel to (l,m,n) hitting Π at P'.
  2. To compute coordinates do: (a) Translate so Π passes through origin if needed. (b) Rotate (apply orthonormal transform) so Π becomes the canonical plane (z = 0). (c) Apply the simple parallel projection matrix for z = 0. (d) Apply inverse rotation and translation if you need coordinates back in original world space. These three steps form the pipeline: world → view-aligned coordinates → projection → back (or keep in screen coordinates if further steps follow). For reference, a direct homogeneous matrix for projecting along D = (l,m,n) onto plane a x + b y + c z + d = 0 is M = [ I − (1/(a l + b m + c n)) · (D Nᵀ) | − (d/(a l + b m + c n)) · D ; 0 0 0 1 ], where N = (a,b,c), D Nᵀ is the 3×3 outer product, and I is 3×3 identity; require a l + b m + c n ≠ 0.

Assumptions: projector direction not parallel to the plane (so an intersection exists), and n ≠ 0 when using z = z0 formulas.

Formulas

x' = x + l * (z0 - z) / n — x-coordinate of projection onto plane z = z0; x, z in metres (m); l, n are dimensionless direction components; applies when n ≠ 0. y' = y + m * (z0 - z) / n — y-coordinate; symbols as above; applies when n ≠ 0. z' = z0 — z after projection (the plane's z); metres (m). (If z0 = 0 then) x' = x - (l/n) * z — metres; applies when n ≠ 0. (If z0 = 0 then) y' = y - (m/n) * z — metres; applies when n ≠ 0. Oblique: x' = x + L * cos(θ) * z — L = cot(α), α is angle between projector and plane, θ is in-plane direction; metres. Oblique: y' = y + L * sin(θ) * z — same symbols. Homogeneous matrix (oblique to z=0): P' = M · P where M = [[1,0,l,0],[0,1,m,0],[0,0,0,0],[0,0,0,1]] — multiply M by column [x,y,z,1]ᵀ; l,m dimensionless. Orthographic matrix (to z=0): M = [[1,0,0,0],[0,1,0,0],[0,0,0,0],[0,0,0,1]] — coefficients dimensionless; x′ and y′ inherit the input units (e.g., metres); applies for projectors along ±z.

Worked examples

Example 1 — Oblique (cavalier) projection of a point (numeric): Given: P = (2.0 m, 1.0 m, 3.0 m). Use a cavalier oblique projection with α = 45° (so L = cot 45° = 1) and θ = 45° (depth direction projects equally on x and y). Step 1: compute cos θ = cos 45° = 0.70710678, sin θ = 0.70710678. Step 2: l = L cos θ = 1 · 0.70710678 = 0.70710678; m = L sin θ = 0.70710678. Step 3: x' = x + l·z = 2.0 + 0.70710678·3.0 = 2.0 + 2.12132034 = 4.12132034 m. Step 4: y' = y + m·z = 1.0 + 0.70710678·3.0 = 1.0 + 2.12132034 = 3.12132034 m. Step 5: z' = 0. Answer: P' = (4.12132034 m, 3.12132034 m, 0 m). (Round in exams to a convenient precision, e.g. 4.121 m, 3.121 m.)

Example 2 — General parallel projection to z = 0 (numeric): Given: projector direction (l,m,n) = (1, 2, 2) (dimensionless), point P = (1.0 m, 2.0 m, 3.0 m). Project onto z0 = 0. Step 1: use formula x' = x - (l/n) z; y' = y - (m/n) z because z0 = 0. Step 2: l/n = 1/2 = 0.5; m/n = 2/2 = 1.0. Step 3: x' = 1.0 - 0.5·3.0 = 1.0 - 1.5 = -0.5 m. Step 4: y' = 2.0 - 1.0·3.0 = 2.0 - 3.0 = -1.0 m. Step 5: z' = 0. Answer: P' = (-0.5 m, -1.0 m, 0 m).

Example 3 — Orthographic projection of a small object (theory/model answer): Question: Explain the difference in appearance of a cube under orthographic and cavalier oblique projection; draw required diagrams and give the projection matrices. Model answer (what to draw and say):

  • Draw: 3D cube with labelled vertices (A at origin, x to right, y up, z out of page). Draw projection plane z = 0 in front of the cube. Draw three parallel projectors: (a) orthographic normal to plane (straight lines along −z), (b) oblique at 45° (lines slanted). Show resulting 2D view for each: orthographic gives a square, oblique gives a 2D shape with a parallelogram representing depth.
  • Matrices: orthographic M = [[1,0,0,0],[0,1,0,0],[0,0,0,0],[0,0,0,1]]; cavalier choose l = cos45°, m = sin45° inserted into M.
  • Explain: orthographic preserves scale for axes parallel to plane; cavalier foreshortens depth visually depending on L. This earns full marks if diagrams are neat, matrices given, and geometric differences explained.

Common mistakes

  • Forgetting to require n ≠ 0 when using z = z0 formulas (if n = 0, projectors are parallel to the plane and there is either no intersection or infinite intersection).
  • Mixing signs: when using x' = x + L cos θ · z vs x' = x - (l/n) z be consistent about how l,m were defined.
  • Placing l and m in the wrong matrix positions (they are in row 1 col 3 and row 2 col 3 for mapping x,y using z).
  • Omitting homogeneous coordinate 1 when multiplying 4×4 matrices; final w must be 1 for these affine projections.

For your exam

Kinds of questions:

  • Definitions and short notes: define parallel, orthographic, oblique, cavalier, cabinet.
  • Derivations: derive the formula for projection onto z = z0 along (l,m,n) (show parametric line and solve for t).
  • Numericals: compute projection of given points or small objects with given projector and plane.
  • Matrices: write the homogeneous 4×4 matrix for oblique or orthographic projection to z = 0; perform a matrix multiply.
  • Diagrams: sketch projection geometry, label angles and distances, and indicate the projection direction. What full marks requires:
  • Clear definitions (bold the term, state assumptions like n ≠ 0).
  • Step-by-step derivation from parametric line to intersection (show t*, substitute).
  • Correct formulas, correct matrix with l,m in correct positions.
  • For numericals show every step, units (use metres), and final answer boxed or clearly stated.

Quick check

  1. If projectors are perpendicular to the view plane, which projection type is it called?
  2. For oblique projection with α = 63.43494882° (so L = 0.5) and θ = 0°, what is the formula for x'?
  3. Project P = (0.5 m, -1.0 m, 2.0 m) orthographically onto z = 0 along +z. What is P'?

Answers: 1) Orthographic projection. 2) x' = x + 0.5 · z (since cos 0° = 1). 3) P' = (0.5 m, -1.0 m, 0 m).

Finished this topic? Mark it so your progress, study plan and readiness keep up.

Stuck on something here?