KS3 · Computer Science

Creating a 3D animation

Pause any animated film and you're staring at a still picture. So did someone pose every object in every picture? Almost never, and the trick is brilliant.

Computer Science · Algorithms

Trace table — dry run the code

A ball is keyed at x = 0 on frame 0 and x = 100 on frame 10, and the clip runs at 10 frames per second. Step through and watch who fills in each row.

1// the animator records two keyframes
2KEYFRAME frame 0: x = 0
3KEYFRAME frame 10: x = 100
4// the software fills the gap
5step = (100 - 0) / (10 - 0)
6FOR frame = 1 TO 9
7 x = x + step
8 time = frame / 10
9NEXT frame
frame
time (s)
x
made by
Press Start to run the first line.
·

Ready when you are — step through one line at a time.

3D modelling · meshes

What a 3D object is really made of
Primitive cubeAfter editing→

Showing 4 layers: Faces, Edges, Vertices, Edited model

Layers

Explore

Switch the Faces layer off and the 'solid' cube turns into a wireframe. Then pick each part to see what it is.

The same cube after its four top vertices were moved inwards.

Looks like a solid block. It isn't. It's a surface built from points, lines and flat faces.

Transformations

Translate, rotate or scale?

For each movement, tick every transformation the object needs. Some need more than one. One needs none at all.

  • A Translate (position changes)
  • B Rotate (which way it faces changes)
  • C Scale (size changes)
  1. A car drives straight along a road
  2. A planet spins on the spot
  3. A balloon inflates in place
  4. A football rolls across the pitch
  5. A rocket flies away from the camera and looks smaller
  6. A logo spins while growing on the spot
  7. A snowball rolls downhill and gets bigger
  8. A ball changes from red to blue

Materials, lights and camera

Why does the shot look like that?

Your test render shows a robot side-on, plain grey, standing in near darkness. You want the final shot to show it from the front, shiny red and properly lit.

Which plan is closest to what you'd do right now?
How sure are you?

Rendering

How many frames does the computer have to calculate?

Your finished clip is 12 seconds long at 25 frames per second. How many frames must the software render?

Your estimate

300 frames

0 frames600 frames

Designing for an audience

Put the project in order

Order the stages of making a 3D animation for a Year 5 class, from first to last.

1 · First stage6 · Last stage
  1. Build the scene

    Add and edit the models; set materials, lights and the camera.

  2. Render

    The software calculates every final frame.

  3. Plan for the audience

    Sketch the scene or storyboard the key moments for the Year 5s.

  4. Improve

    Fix what the evaluation found.

  5. Animate with keyframes

    Record key poses; the software fills the in-betweens.

  6. Test and evaluate against the plan

    Watch the result and check it against the plan and the audience it was made for.

WHAT YOU'VE LEARNED

A quick recap of today's lesson.

You record a few key poses. The software fills in the frames between them. Then rendering calculates every frame you'll actually see.

What you need to know

  • An animation is still frames shown fast enough to look like movement; the frame rate is how many frames appear each second.
  • Have a goA 2-second clip runs at 25 frames per second. How many still images does it contain?

    50 frames.

    Frames per second means 25 for every second, so 2 × 25 = 50. Adding the numbers (27) or giving just 25 forgets the second second.

  • With keyframes, you record an object's position, rotation or scale at chosen frames. The software calculates the frames in between.
  • Count the gaps, not the frames: keys at frames 0 and 10 are 10 frame-steps apart, with 9 frames strictly between them.
  • Have a goYour mate Jordan keys a dragon at frame 0 and frame 20, then groans: 'Great, now I've got to pose it 20 more times.' Is Jordan right?

    No. The software calculates frames 1 to 19, and that's 19 frames, not 20.

    Jordan only records the keyframes; the in-betweens are calculated. And because both ends are keys, there are 19 frames strictly between them, one fewer than the 20 gaps.

  • A 3D scene is a virtual space with three axes, x, y and z, so every object has a position, rotation and size.
  • Most 3D objects are meshes: vertices (points), edges (lines joining two vertices) and faces (flat surfaces enclosed by edges).
  • Models usually start as a primitive, such as a cube, sphere or cylinder, which you then edit, for example by moving vertices.
  • Translate moves an object, rotate turns it and scale resizes it, along the x, y and z axes.
  • Have a goYou stretch a cube so it's three times taller but no wider and no deeper, and it stays in the same place. Which transformation, and along how many axes?

    Scale, along just one axis.

    Its size changed, so it's scale, not translate (it didn't move) or rotate (it didn't turn). Only the height changed, so only one of the three axes was scaled.

  • Materials and textures give a surface its colour and finish, lights light the scene, and the camera decides what the viewer sees.
  • Rendering calculates every final frame from the models, materials, lights and camera, which is why it can take so long.
  • Plan first, with a sketch or storyboard for your audience; then build, test, evaluate against that plan and improve.

The big picture

An animation is still frames shown fast enough to look like movement; the frame rate is frames per second. You record keyframes (position, rotation or scale at chosen frames) and the software calculates the frames in between. Objects sit in x/y/z space as meshes of vertices, edges and faces, built from primitives and changed by translating, rotating and scaling. Materials and textures, lights and the camera together decide the look, and rendering calculates every final frame, so it can be slow. Plan for an audience first, then build, test, evaluate against the plan and improve.

Key points

1Frames are still images; the frame rate (frames per second) sets how many appear each second.
2Keyframes record position, rotation or scale at chosen frames; the software calculates the in-between frames.
3Frame-steps between keys and frames strictly between keys are different counts: keys at 0 and 48 give 48 steps and 47 in-betweens.
4Objects sit in x/y/z space and are usually meshes of vertices, edges and faces, often edited from primitives.
5Translate changes position, rotate changes which way it faces, scale changes size, along x, y and z.
6Materials/textures, lights and the camera's position and angle work together to decide how a shot looks.
7Rendering calculates every frame of the final image or video, so a long or detailed clip can take hours.
8Plan for the audience, build, test, evaluate against the plan, then improve.

Worked example

Problem

A door in your scene needs to swing open by 90° over 2 seconds. Your project runs at 24 frames per second, and the door starts closed on frame 0. Which frames should you make keyframes, how many frames will the software calculate, and what angle will the door be at on frame 24, if the software fills the gap in equal steps?

⚠ Watch out

Thinking the animator has to pose the object on every frame, or that a keyframe is a finished picture. A keyframe is a recorded value (like x = 100 at frame 10); the software calculates the in-between frames, and rendering later turns every frame, keys included, into a final image.

🧠

Memory hook

Keys, gaps, draw. You set the keys, the computer fills the gaps, then the render draws every single frame.

✓

Check yourself

Keys at x = 0 (frame 0) and x = 60 (frame 60), equal steps. How many frame-steps, how many frames does the software fill in, and where is the ball on frame 30?

Flashcards

(12)
What is a frame?
One still image. Show frames quickly one after another and you get the illusion of movement.
What does the frame rate tell you?
How many frames are shown each second (frames per second).
What does an animator record on a keyframe?
An object's position, rotation or scale at a chosen frame.
Who makes the frames between two keyframes?
The software. It calculates (interpolates) the in-between frames automatically; the animator doesn't pose them.
Why does a 3D object have a position, rotation and size in three dimensions?
Because the scene is a virtual space with three axes: x, y and z.
Vertex, edge, face: what's each one?
Vertex: a point. Edge: a line joining two vertices. Face: a flat surface enclosed by edges. Together they make a mesh.
What is a primitive, and how does it become a complex model?
A simple starting shape such as a cube, sphere or cylinder. You add it, then edit it, for example by moving its vertices.
Translate, rotate, scale: what does each change?
Translate changes position, rotate changes which way it faces, scale changes size.
Material or light: which gives an object its surface colour and finish?
The material and texture. Lights light the scene; the final look comes from both together.
What does the camera decide?
What the viewer sees, through its position and angle. Moving it changes the view without moving any object.
What is rendering, and why can it be slow?
The software calculating the final images from the models, materials, lights and camera, output as an image or video file. It's slow because every frame must be calculated.
What do you evaluate a finished 3D animation against?
Your plan (such as the sketch or storyboard) and the audience it was made for. Then you improve it.

Tap any card to flip it, or use Study as deck to go through them one at a time. In the full lesson these run as a spaced-repetition deck — you rate each card Hard, Good or Easy and the tricky ones keep coming back until they stick.

Learning with Lightbulb is opening soon

You can use this lesson now. Join the waitlist and we'll let you know when the full Lightbulb experience is ready.

Keep me posted

More KS3 Computer Science topics

See the full KS3 Computer Science curriculum →

How this lesson was checked. This KS3 Computer Sciencelesson was published through Lightbulb Learning's human-designed editorial process — the educational standards, accuracy rules and publication checks it must pass were authored and approved by Philip Halpin. It passed subject-specific assessment, automated educational checks and technical publication verification before going live (publication checks completed 27 October 2026). Published pages are monitored, human spot-checking is ongoing across the lesson library, and anything found wrong is corrected or withdrawn. How our lessons are made and checked. Spotted a mistake? Email hello@lightbulblearning.co and we'll review it.

Helpful guides for parents and students