ScholarQuill logoScholarQuillUniversity Notes
  • Notes
  • Past Papers
  • Blogs
  • Todo
Login
ScholarQuill logoScholarQuillUniversity Notes
Login
NotesPast PapersBlogsTodo
More
SubjectsDiscussionCGPA CalculatorGPA CalculatorStudent PortalCourse Outline
About
About usPrivacy PolicyReportContact
Notes
Past Papers
Blogs
Todo
Analytics
    Current Subject
    🧩
    Computer Graphics
    ITEC4128
    Progress0 / 15 topics
    Topics
    1. Introduction to Computer Graphics2. Graphics Systems3. Point and Line Drawing Techniques4. Circle Drawing Techniques5. Ellipse and Other Curves6. 2D Transformations7. Clipping8. 3D Concepts9. 3D Transformations10. Perspective Projection11. Triangles and Planes12. Triangle Rasterization13. Lighting14. Introduction to OpenGL15. Animations
    ITEC4128›3D Transformations
    Computer GraphicsTopic 9 of 15

    3D Transformations

    4 minread
    725words
    Beginnerlevel

    📘 3D Transformations — Exam Notes


    🔹 1. Introduction

    3D Transformations are operations used to change the position, size, orientation, or shape of objects in three-dimensional space.

    👉 These transformations work on objects defined in (x, y, z) coordinates.


    🔹 2. Basic Representation

    A point in 3D space: [ P(x, y, z) ]

    Using homogeneous coordinates: [ P(x, y, z, 1) ]

    👉 This allows us to use matrix multiplication for all transformations.


    🔹 3. Types of 3D Transformations


    🔸 3.1 Translation (Moving Object)

    ✔️ Definition

    Shifts an object from one position to another.


    ✔️ Formula

    [ x' = x + t_x,\quad y' = y + t_y,\quad z' = z + t_z ]


    ✔️ Matrix Form

    [ \begin{bmatrix} 1 & 0 & 0 & t_x
    0 & 1 & 0 & t_y
    0 & 0 & 1 & t_z
    0 & 0 & 0 & 1 \end{bmatrix} ]


    🔸 3.2 Scaling (Resizing Object)

    ✔️ Definition

    Changes the size of an object.


    ✔️ Formula

    [ x' = x \cdot s_x,\quad y' = y \cdot s_y,\quad z' = z \cdot s_z ]


    ✔️ Matrix Form

    [ \begin{bmatrix} s_x & 0 & 0 & 0
    0 & s_y & 0 & 0
    0 & 0 & s_z & 0
    0 & 0 & 0 & 1 \end{bmatrix} ]


    ✔️ Types

    • Uniform Scaling: (s_x = s_y = s_z)
    • Non-uniform Scaling: Different scaling factors

    🔸 3.3 Rotation (Very Important)

    ✔️ Definition

    Rotates an object around an axis.


    ✔️ Rotation About X-axis

    [ \begin{aligned} x' &= x
    y' &= y \cos\theta - z \sin\theta
    z' &= y \sin\theta + z \cos\theta \end{aligned} ]


    ✔️ Rotation About Y-axis

    [ \begin{aligned} x' &= x \cos\theta + z \sin\theta
    y' &= y
    z' &= -x \sin\theta + z \cos\theta \end{aligned} ]


    ✔️ Rotation About Z-axis

    [ \begin{aligned} x' &= x \cos\theta - y \sin\theta
    y' &= x \sin\theta + y \cos\theta
    z' &= z \end{aligned} ]


    ✔️ Matrix Form (Z-axis Example)

    [ \begin{bmatrix} \cos\theta & -\sin\theta & 0 & 0
    \sin\theta & \cos\theta & 0 & 0
    0 & 0 & 1 & 0
    0 & 0 & 0 & 1 \end{bmatrix} ]


    🔸 3.4 Reflection

    ✔️ Definition

    Produces a mirror image of an object.


    ✔️ Examples

    • Reflection about XY-plane: [ (x, y, z) \rightarrow (x, y, -z) ]

    • Reflection about YZ-plane: [ (x, y, z) \rightarrow (-x, y, z) ]

    • Reflection about XZ-plane: [ (x, y, z) \rightarrow (x, -y, z) ]


    🔸 3.5 Shearing

    ✔️ Definition

    Distorts the shape by shifting coordinates.


    ✔️ Example (X-direction shear)

    [ x' = x + sh_x \cdot y + sh_z \cdot z ]


    🔹 4. Homogeneous Coordinates (Important)

    ✔️ Definition

    Representation of 3D points as: [ (x, y, z, 1) ]


    ✔️ Advantages

    • Simplifies transformations
    • Allows combination of multiple operations

    🔹 5. Composite Transformations

    ✔️ Definition

    Combination of multiple transformations.


    ✔️ Example

    Scale → Rotate → Translate

    👉 Represented as: [ T = T_3 \cdot T_2 \cdot T_1 ]


    ✔️ Important Rule

    ⚠️ Order matters Changing order gives different results.


    🔹 6. Rotation About an Arbitrary Axis

    ✔️ Steps

    1. Translate object so axis passes through origin
    2. Align axis with coordinate axis
    3. Perform rotation
    4. Reverse alignment
    5. Translate back

    🔹 7. Scaling About a Fixed Point

    ✔️ Steps

    1. Translate object to origin
    2. Apply scaling
    3. Translate back

    🔹 8. Diagram Descriptions

    ✔️ 3D Translation

    • Show object moved from one position to another

    ✔️ Rotation

    • Show object rotating around X, Y, or Z axis

    ✔️ Scaling

    • Show object becoming larger/smaller

    ✔️ Reflection

    • Show mirror image across a plane

    🔹 9. Applications of 3D Transformations

    • Animation
    • Game development
    • Virtual reality
    • CAD systems
    • Robotics

    🔹 10. Important Terms

    • Transformation Matrix: Matrix used for transformation
    • Homogeneous Coordinates: Extended coordinate system
    • Composite Transformation: Combination of operations
    • Axis of Rotation: Line about which rotation occurs

    📝 Likely Exam Questions

    1. Define 3D transformations.
    2. Explain translation with matrix form.
    3. Describe scaling and its types.
    4. Explain rotation about X, Y, Z axes.
    5. What is reflection in 3D?
    6. Define shearing in 3D.
    7. What are homogeneous coordinates?
    8. Explain composite transformations.
    9. How do you rotate about an arbitrary axis?
    10. Solve a numerical problem on 3D transformation.

    ⚡ Quick Revision Summary

    • 3D transformations modify objects in (x, y, z) space

    • Types:

      • Translation
      • Scaling
      • Rotation
      • Reflection
      • Shearing
    • Use 4×4 matrices + homogeneous coordinates

    • Order is important in composite transformations

    • Widely used in 3D graphics, animation, and games


    Previous topic 8
    3D Concepts
    Next topic 10
    Perspective Projection

    Past Papers

    Open this section to load past papers

    Click on Show Past Papers to see past papers.
    On This Page
      Reading Stats
      Est. reading time4 min
      Word count725
      Code examples0
      DifficultyBeginner