Computer Graphics · Unit 7
3D Graphics and Projections
Exam-focused notes for 3D Graphics and Projections (Computer Graphics, BIT304): what the TU syllabus asks and how it has actually been tested, with 5 solved past questions from this unit.
3D Graphics and Projections in short
To show a 3D object on a flat screen we must first describe it in 3D and then project it onto a 2D plane. This chapter covers 3D coordinates, the two kinds of projection, and how 3D objects are stored.
What this unit covers
- 3D coordinate systems
- Parallel projection
- Perspective projection
- Projection coordinate calculations
- Wireframe representation of 3D objects
- 3D object representations and storage
3D object representations and storage
2081 · 5 marks
How the geometric and attribute information of a 3D objects are stored for the object representations? Explain with suitable example. [5]
Parallel projection
2080 · 10 marks
Differentiate between parallel and perspective projection. Perform the rotation of triangle with vertices A(5,7), B(12,85) and C(5,3) counterclockwise 30 degree about the pivot point (5,3).[10]
Show solved answerHide answer
Model Answer: Parallel vs Perspective Projection and Triangle Rotation
Part 1: Parallel vs Perspective Projection
| Aspect | Parallel Projection | Perspective Projection |
|---|---|---|
| Projectors | Projection lines (projectors) are parallel to each other | Projectors converge to a single point (center of projection) |
| Center of projection | At infinity | At a finite distance |
| Vanishing point | None; parallel lines remain parallel | One or more vanishing points; parallel lines converge |
| Depth realism | Does not depict realistic depth; size independent of distance | Realistic depth; distant objects appear smaller (foreshortening) |
| Scale/proportion | True dimensions and proportions preserved | Scale varies with distance from viewpoint |
| Mathematics | Simpler (orthographic/oblique matrices, no division) | More complex; requires division by the depth coordinate |
| Applications | Engineering/technical drawings, CAD, blueprints | Realistic rendering, architecture, games, photography |
Part 2: Rotation of Triangle 30° CCW about Pivot (5,3)
Given data:
- Vertices: $A(5,7)$, $B(12,85)$, $C(5,3)$
- Angle: $\theta = 30^\circ$ counterclockwise
- Pivot: $P(p_x,p_y) = (5,3)$
Rotation about a pivot: $$x' = p_x + (x-p_x)\cos\theta - (y-p_y)\sin\theta$$ $$y' = p_y + (x-p_x)\sin\theta + (y-p_y)\cos\theta$$
Trig values: $\cos 30^\circ = 0.8660$, $\sin 30^\circ = 0.5$
Vertex A(5,7): $\Delta x = 0,\ \Delta y = 4$ $$x'_A = 5 + (0)(0.866) - (4)(0.5) = 5 - 2 = 3$$ $$y'_A = 3 + (0)(0.5) + (4)(0.866) = 3 + 3.464 = 6.464$$ $$A' = (3,\ 6.464)$$
Vertex B(12,85): $\Delta x = 7,\ \Delta y = 82$ $$x'_B = 5 + (7)(0.866) - (82)(0.5) = 5 + 6.062 - 41 = -29.938$$ $$y'_B = 3 + (7)(0.5) + (82)(0.866) = 3 + 3.5 + 71.012 = 77.512$$ $$B' = (-29.938,\ 77.512)$$
Vertex C(5,3): $\Delta x = 0,\ \Delta y = 0$ (this is the pivot) $$x'_C = 5 + 0 - 0 = 5,\quad y'_C = 3 + 0 + 0 = 3$$ $$C' = (5,\ 3)$$
Final Result:
- $A' \approx (3.00,\ 6.46)$
- $B' \approx (-29.94,\ 77.51)$
- $C' = (5,\ 3)$
(Note: vertex B(12,85) appears unusually large for a triangle, but the computation follows the given data exactly.)
0 · 5 marks
Differentiate between parallel and perspective projection. [5]
Wireframe representation of 3D objects
2080 · 5 marks
Explain the wireframe representation of 3D objects. [5]
Projection coordinate calculations
0 · 10 marks
Obtain perspective projection co-ordinates for the pyramid with vertices of base (15, 15, 10), (20, 20, 10), (25, 15, 10), (20, 10, 10) and apex (20, 15, 2), given that Zprp = 20 and Zvp = 0.[10]
Make Unit 7 stick
Practice BIT304 with flashcards & quizzes