Past exam question: 2081 Chaitra (Regular), Q3(b)
Open in the Padhaiko appWrite the steps required to rotate an object in 3D about arbitrary axis. Explain about the perspective projection.
Solution
Problem Formulation for 3D Rotation About an Arbitrary Axis: Let an arbitrary 3D rotation axis be defined by a point that it passes through, and a unit direction vector where . The object is to be rotated by angle around this axis. Because standard 3D rotation matrices only rotate around the primary coordinate axes (, or ), the arbitrary axis must be translated and aligned with one of the coordinate axes, rotated, and then returned through inverse transformations.
Composite Transformation Steps for Arbitrary Axis Rotation: The complete sequence consists of 7 operations:
- Translate to Origin: Translate the axis so that point passes through the origin:
- Rotate About -Axis (Align with -Plane): Rotate by angle around the -axis so the direction vector lies in the -plane: Let be the projection on the -plane.
- Rotate About -Axis (Align with -Axis): Rotate by angle around the -axis so the axis coincides with the positive -axis:
- Perform Desired Rotation: Apply the specified rotation by angle about the -axis:
- Inverse Rotation About -Axis:
- Inverse Rotation About -Axis:
- Inverse Translation Back to :
The composite matrix is:
Principles of Perspective Projection: In perspective projection, all projection rays (projectors) originate from scene vertices and converge at a single point called the Center of Projection (COP) or projection reference point.
- Perspective Foreshortening: The projected size of an object is inversely proportional to its distance from the COP. More distant objects appear smaller.
- Vanishing Points: Sets of parallel lines in 3D that are not parallel to the view plane converge to a single vanishing point upon projection.
Mathematical Derivation: Place the COP at the origin looking along the -axis, with the projection plane located at distance along (). For an arbitrary 3D point , by similar triangles:
In homogeneous coordinates:
Dividing by the homogeneous scale factor (perspective division) yields the projected 2D coordinates:
- 3D rotation about an arbitrary axis passing through with unit direction is achieved via the 7-step composite sequence:
- Perspective projection converges all projectors at a Center of Projection (COP), producing realistic depth cues (foreshortening and vanishing points) where projected coordinates are scaled by depth via perspective division: .
All past exam questions for Computer Graphics and Visualization