Updated · By Pete Bromfield, former Head of Maths with IB examining experience

IA idea · Matrices, transformations & Markov chains

How does a game draw 3D on a flat screen? Projection matrices

AI HLAA HL Ambitious Also in: Trig & navigation, Art & music

Research question

How do matrices rotate a 3D model and project it onto a 2D screen, how does the camera's distance change the perspective, and how well does your projection match a photograph of the real object?

Make it yours, then agree it with your teacher.

Next step: plan this IA free — the planner opens with this question filled in. For feedback on your own draft, the IA package (€39 once) gives you 5 AI feedback credits and every annotated exemplar in full.

Why it makes a good exploration

It explains how every 3D game works, and comparing with a photo you take gives a real test of the model.

The mathematics you'll need

  • 3D rotation matrices
  • Perspective projection by similar triangles
  • Homogeneous coordinates (new)
  • Parallel versus perspective projection
  • Comparing predicted and measured image positions

Where the data comes from

Measure a simple real object (a box, a building) and photograph it from a known position.

  • GeoGebra — Free geometry and graphing software — Voronoi diagrams, loci and regression built in.

A possible outline

  1. Set up coordinates for the object.
  2. Derive the projection with similar triangles.
  3. Write it as a matrix and add rotations.
  4. Compare with your photograph.
  5. Reflect on lens distortion and measurement error.

Pitfalls that cost marks

  • Copying a graphics library's matrices without explanation.
  • Not checking with a known simple case.
  • Ignoring lens distortion in the comparison.

Showing personal engagement

  • Model your own room or school building.
  • Recreate a photo you took.
  • Find the camera distance that best matches the photo.

See Criterion C: personal engagement for what examiners look for.

Which course is it for?

CourseFitMaths to lean on
AA SLNot a natural fitThe core technique sits in the AI course or at HL; an AA SL student could use it only as clearly explained new mathematics.
AA HLGood fit3D rotation matrices; Perspective projection by similar triangles
AI SLNot a natural fitThe mathematics is mainly AA or HL (calculus or proof beyond AI SL); an AI SL version would need a data-driven, technology-based approach.
AI HLGood fit3D rotation matrices; Perspective projection by similar triangles

Level: Ambitious. Suits confident students; expect to learn some mathematics on your own. See how the IA differs between AA and AI, SL and HL.

How this idea reaches the top bands

Reflection (D)

For this idea, start with the weak points: copying a graphics library's matrices without explanation; and not checking with a known simple case. Say how each one affects your answer.

Use of mathematics (E)

HL: 3D rotation matrices; perspective projection by similar triangles; homogeneous coordinates (new); parallel versus perspective projection; comparing predicted and measured image positions, each explained in your own words and carried out correctly.

How matrices & markov explorations reach the top bands in general: Matrices, transformations & Markov chains IA ideas. Guides: A · B · C · D · E · self-grade sheet.

Taking it further

Find the camera position from a photo (the inverse problem).

Extending it for HL

Add an HL technique the question genuinely needs: what an HL matrices & markov exploration adds.

Frequently asked questions

Which IB Maths course is this IA idea for?

It works for AI HL and AA HL. We rate it Ambitious: it suits confident students, who should expect to learn some mathematics on their own.

What mathematics does this IA use?

3D rotation matrices, perspective projection by similar triangles, homogeneous coordinates (new), parallel versus perspective projection and comparing predicted and measured image positions.

Where can I get data for this IA?

Measure a simple real object (a box, a building) and photograph it from a known position. Checked sources and tools: GeoGebra.

Turn this idea into your IA

The planner opens with “How does a game draw 3D on a flat screen? Projection matrices” filled in: the question, the maths and the data sources.

Plan this IA free

Your plan is kept in this browser. A free account keeps it with your drafts on any device: Join free · Sign in

Also: free IA self-check · A–E checklist (PDF) · have a draft? AI feedback or a review with Pete (€100)

Writing it up: how to write a Maths IA, step by step · structure and format · mistakes that cost marks · IA modelling, step by step

Similar ideas

All matrices & markov ideas · AI HL ideas · AA HL ideas · All 239 IA ideas