A 3D world can be stored as points, a mesh, a grid of cells or soft blobs. Each one answers different questions, and adding time adds a new one: which point is which?
Learn the ways a model can hold a 3D scene, how a camera turns it into an image, and how time, identity and motion are added on top.
Pick a storage, then drag the detail slider. Watch how many numbers each one needs to trace the same outline. Then we build, piece by piece, the camera, depth, fields, radiance and splats, and the tracks and frames that make a world move.
You need a little geometry (a point has coordinates; a matrix turns one set of coordinates into another) and a little Python for the code. We build the rest from zero.
Based on Lecture 15 of Penn CIS 6280: World Models (Fall 2026), taught by Jiatao Gu. Lecture slides. Every idea is re-taught here in our own words and devices; it follows Lecture 14, Interactive World Models in this series.
Illustrative: a 2D slice of one made-up wavy shape, so you can see every element. The counts are for the same idea in 3D. A 3D Gaussian takes 59 numbers in the original splatting method (position 3, rotation 4, scale 3, opacity 1, colour 48). Error figures are measured live against the true outline, in units where the shape is about 1 wide.
Chapter 0
See why predicting a scene starts with choosing what to store about it: where things are, how they look, and what belongs together
A robot stands at a kitchen counter. Its camera sees a mug, a plate and a hand-shaped gripper. Before it moves, it must answer one question: if my hand pushes here, what moves?
To answer, the robot needs more than a photo. A photo says what colour each pixel is. It does not say how far away the mug is, which pixels are the handle, or what sits behind the plate. The robot needs the scene written down in a form it can reason about, and then changed forward in time.
That is the subject of Lecture 15 of Penn CIS 6280. The lecture opens with two questions. Both are about a 3D world, and they point in opposite directions.
The first slide shows PointWorld, a model that reads color-and-depth pictures (called RGB-D, for red, green, blue and depth) together with a proposed robot motion. It predicts how the 3D points in the scene respond. The question on the slide: what will move if the robot takes this action?
The second slide shows Atlas, a spatial generation demo from World Labs (September 2026), where you steer a camera through a generated world. Its question: what should the same world look like from another camera?
One question predicts what changes. The other predicts what a viewer would see. Both need the same thing first: a stored 3D scene. A model cannot predict what it has no place to hold. So the first half of the lecture shows how to store a world (Chapters 1 to 6). The second half shows how to store a world that moves (Chapters 7 to 9).
The lecture's own slide asks: what information does the model store? It gives three answers, and they make a good checklist for every representation you meet.
Geometry answers: where are the surfaces and the empty regions? Think of a floor plan. Appearance answers: what would a camera observe? Think of the paint, the light and the shine on top of the floor plan. Structure answers: which elements belong together? Think of labels that say "these twelve points are the handle, those forty are the mug body".
A representation can keep one, two or all three. A bare list of 3D points keeps geometry only. Add a colour to each point and it keeps appearance too. Add a part label and it keeps structure. The rest of the lecture is a tour of which choices exist and what each one makes easy or hard.
The same slide shows one bunny in four forms: a voxel grid, a point cloud, a mesh, and (on the right) a neural field. The lecture sorts them into explicit and implicit representations.
An explicit representation is a list you can read. You open it and see the points, the corners or the cells. Think of a phone book: every entry is there to look at.
An implicit representation is a function you can ask. The slide writes it as fθ: Rm → Rn. A neural field is a small neural network fθ that takes a location, say three numbers x, y, z, and returns what is there, say a colour and a density. Think of a guide who knows the whole building: you cannot read the building off a page, but you can ask about any room.
Here is what each form looks like as data. The shapes are the part to remember.
Below is a toy scene: a block with an arm on top, made of points. Switch the three kinds of information on and off. Then bend the arm.
Each toggle is one answer a representation can keep. Turn one off to see what you lose. Then drag the arm angle.
Toy scene: 18 block points and 8 arm points, made up for this lesson. With Geometry off, positions are replaced by random ones, to show what "colour with no place" means. With Structure off, the program has no part labels, so a bend moves every point around the joint.
With all three on, the arm bends and the block stays. With structure off, the bend swings the whole scene, because nothing says which points are the arm. With appearance off, you can still reason about shape but you cannot say what a camera would see. With geometry off, you hold colours with no place to put them.
The lecture has two halves. The first covers 3D: the camera, depth, points, meshes, voxels, fields, NeRF and Gaussian splats. The second covers 4D, which is 3D plus time: tracks, identity, visibility, frames and deformation. This lesson walks both in order. One short note on the course itself. Assignment 3 now releases on November 2, and its due date stays November 18. The final project data is out, with instructions on Canvas. Office hours are Thursday 4:30 to 5:30 PM in AGH 423.
Chapter 1
Follow one scene point through a pinhole, then write the whole trip as one small matrix
Poke a tiny hole in one side of a shoebox. Tape paper inside the opposite side. Point the hole at a bright window. A small, upside-down window appears on the paper.
That box is the lecture's model of a camera. The hole is the camera center. The paper is the image plane, the sensor that records the picture. Every ray of light that reaches the paper first passes through the one hole. So each scene point lands at exactly one place on the paper: the place where the line from the point, through the hole, meets the sensor.
Going 3D to 2D is easy. Follow the line from a scene point through the camera center and read off where it lands. It gives one image location.
Going 2D to 3D is harder. A pixel gives you a viewing ray: a half-line from the camera center out into the world. Your point is somewhere on that ray, but a pixel alone cannot say where. You still need depth, the distance along the ray. The next chapter is about getting that depth.
The lecture says why this matters: we need this link to recover geometry from images, and to render a 3D world from a chosen view. Both of the opening questions (what happens if the robot pushes, what does another camera see) pass through it.
Take a point in camera coordinates: three numbers (Xc, Yc, Zc). Xc and Yc run across the view. Zc is forward depth. To find its pixel (u, v) we do three things, in this order: divide by depth, scale, shift.
Stack fx, fy, cx and cy in one 3 × 3 matrix. That is the intrinsics matrix K, with rows (fx, 0, cx), (0, fy, cy) and (0, 0, 1). It packages image scale and center. It does not tell us where the camera is. The model here is an ideal pinhole camera with perpendicular pixel axes and no lens distortion.
The divide-by-depth step is not magic. It is similar triangles. Draw the side view: the camera center at the origin, the point at height Yc and depth Zc, and the image plane a distance f in front of the center. The line from the point to the center crosses the plane at some height y. The small triangle (f, y) and the big triangle (Zc, Yc) have the same shape, so y / f = Yc / Zc. That gives y = f Yc / Zc. The pixel row is that height, plus the center row cy.
In code the data flow is plain. In: N world points, shape N × 3, and the 3 × 4 matrix. Out: N pixel pairs, shape N × 2, plus the N depths, which you keep for later chapters. A point with depth at or below zero is behind the camera and must be dropped.
The device shows a side view. A 1 m tall object stands in front of a camera. Drag depth, focal length and camera height, and watch which rows of the image the object covers. In the image convention, v grows downward, so the object's top has a smaller v than its bottom.
Left: a side view with the camera on the left, the object on the right, and the image plane drawn close to the camera. Right: the 480 pixel image column, with the object's rows in warm color.
Illustrative: a 640 by 480 pixel image with the principal point at (320, 240), both focal lengths equal, and an object standing on the ground that is 1.0 m tall. The side view keeps the similar triangles exact but draws the image plane near the camera, not to scale. Changing the camera height is a change of pose, not of K.
Drag depth up and the object shrinks toward the center row, because the ratio Yc / Zc falls. Drag focal length up and it grows, because f multiplies that ratio. Drag camera height and the whole object slides in the image while its own size stays put. That last slider is the next idea.
Camera coordinates move with the camera. World coordinates stay fixed. Pose is the rule that connects them, and the lecture writes it as one line.
Read Pcam = K [R | t] from right to left: world coordinates, then camera coordinates, then the image.
Let K have fx = fy = 500 and (cx, cy) = (320, 240). Let R be the identity and t = (0, 0, 1). The world point is Xw = (0.4, 0.2, 4.0).
The data flow is small. In: one 3-vector and a 3 × 4 matrix. Out: two pixel numbers. Run it backward and you get the ray: K−1 (360, 260, 1) = (0.08, 0.04, 1), and every point d · (0.08, 0.04, 1) lands on the same pixel. At d = 5 that is (0.4, 0.2, 5.0). At d = 2 it is (0.16, 0.08, 2.0). Depth picks the point on the ray.
Symptom: points you projected from your map land in the wrong spot on the photo, and the miss changes when the camera moves. Measurement: skip t in the example, so Zc = 4.0 instead of 5.0. Then u = 500 · 0.4 / 4 + 320 = 370 and v = 500 · 0.2 / 4 + 240 = 265. That is 10 px and 5 px off, an error of about 11 px. Fix: always apply [R | t] before K, and remember that K alone says nothing about where the camera is.
For a fuller treatment of cameras, see camera geometry, camera models and calibration and multiview geometry.
Chapter 2
Give every pixel a distance, lift it along its viewing ray, and see why one view never shows the whole scene
You stand in a corridor and hold a laser measure to your eye. You sweep it across the far wall, left to right, and write one distance for each direction. At the end you have a row of numbers. If you also know how wide your sweep was, you can draw the wall from above.
A depth camera does exactly this, for every pixel at once. This chapter shows how the lecture turns that row of numbers into 3D points, and why the drawing you get is always incomplete.
A depth map holds one forward depth d = Zc for each pixel. It is an image with one number per pixel, shape H × W. A pointmap holds one full 3D position Xc(u, v) for each pixel, shape H × W × 3. The lecture shows both for a real view (a PointWorld data annotation example) and credits DUSt3R (Wang et al., 2024) for predicting pointmaps straight from images.
The link between them is the viewing ray from Chapter 1. A pixel (u, v) points along a ray. The depth says how far along.
A worked case, with the K from Chapter 1 (f = 500, principal point (320, 240)). Take pixel (200, 240) with depth d = 4.0 m.
These points are in the camera frame. The lecture adds one warning: to compare two views, use the camera pose to express the points in a shared world frame. If the camera sits at pose (R, t), the world point is RT (Xc − t). With R = I and t = (−1, 0, 0), our point becomes (0.04, 0, 4.0).
Depth can come from two places. A depth sensor measures it, and then the data is called RGB-D. Or a model predicts it from the image, as DUSt3R does for pairs of images. Either way, treat depth as a measurement with errors. Many sensors give no reading at some pixels, for example on very dark or shiny surfaces. Your code must mask those pixels, or they will become points at depth zero.
Collect every 3D point and forget the pixel grid, and you have a point cloud. The lecture writes it as a set: P = {(xi, fi)} for i = 1 to N. Each position xi is in R3. Each fi is an optional feature: a color, or a learned vector from a vision model, that travels with the point.
The size is easy to count. A 640 × 480 pointmap has 307,200 points. At 3 numbers of 4 bytes each, that is 3,686,400 bytes, about 3.7 MB, before any features.
The lecture then makes a point that decides what points cannot do. Points sample the visible surfaces. A single RGB-D view usually reveals only part of the scene.
The device looks down on a corridor: a wall at 4 m and a box in front of it. Camera 1 sees the scene and lifts 40 pixel columns into points. Add camera 2 from the side. Then break it.
Dots are points made by the formula above. Gray lines are the true surfaces. Pick a pixel column to see its ray and its numbers. Add camera 2, then switch its pose off.
Toy scene: a wall at Z = 4 m, a 1.2 m wide box at Z = 2.5 m, K with f = 500 and a 640 pixel wide image, 40 columns sampled. Depth noise is seeded Gaussian error along the viewing direction. Coverage counts points within 15 cm of 205 samples of the true surfaces, spaced 5 cm apart.
With one camera the box hides a stripe of wall about 1.9 m wide, and the box's sides are never seen. A second camera fills much of that in. Now switch the pose off: camera 2's points are plotted as if camera 2 were camera 1, and the scene splits into two misaligned copies. Last, add noise: the points fuzz along their rays, and coverage drops because fewer points land near a true surface.
Symptom: you fuse two depth images and the wall appears twice, like a ghost. Measurement: the offset between the two copies equals the pose error, for instance meters when the pose is skipped. Fix: lift each view with its own pose into one shared frame, and only then merge. The lecture also notes that DUSt3R-style pointmaps live in a camera frame until you place them.
More on point sets in our point clouds lesson, and on predicting pointmaps in the DUSt3R and PointWorld paper lessons.
Chapter 3
Join points into surfaces, cut space into cells, or define a value at every location, and see what each one can answer
You want to hand a friend the shape of a clay mug. You could mail 5,000 pins stuck in its skin. You could mail a cardboard net, folded from flat triangles. You could mail a box of sugar cubes, glued into the mug's shape. Or you could write a rule: "give me any spot in the room, and I'll say whether it is inside the clay."
These are four forms of the same shape. Chapter 2 gave you the first, points. This chapter covers the other three, which the lecture calls meshes, voxel grids and fields.
A mesh stores vertices, which are positions in 3D, and faces, which say which vertices form a surface piece. Usually a face is a triangle: three vertex numbers. A volume mesh goes further: interior elements connect the inside, which suits a soft solid.
The data is two tables. Vertices have shape V × 3 (floating-point positions). Faces have shape F × 3 (integer indices into the vertex table). Take a tetrahedron, four triangles and four corners:
Now move vertex 3 up to (0,0,2). The face table does not change. Only one position does, and the volume doubles to 1/3. That is the lecture's point about deforming meshes: positions change while connectivity provides structure. MeshGraphNets (Pfaff et al., 2021) uses this, passing messages along mesh edges to predict how a cloth or a soft body moves.
A voxel is a 3D pixel: one cell of a regular grid. The lecture writes a voxel grid as V ∈ RNx × Ny × Nz × C: three spatial axes and C numbers per cell. A cell may store occupancy, distance, color, density or a learned feature vector. Plenoxels (Fridovich-Keil et al., 2022) stores a radiance field this way. The grid layout and the stored attribute are separate choices.
The cost grows with the cube. A 64 × 64 × 64 grid with C = 4 numbers of 4 bytes has 262,144 cells and takes 4,194,304 bytes, 4 MiB. A 256-cube grid has 16,777,216 cells and takes 268,435,456 bytes, 256 MiB. Four times finer along each axis costs 64 times the memory.
The lecture then steps back. A volume or field has a domain (a region of 3D space), an attribute (a value or vector at each location) and storage (a grid, a neural function, or a hybrid). Its key line: a volumetric field can be continuous even when its storage is discrete. A grid stores values at cell centers, but you can interpolate between them and ask about any point.
Three fields answer three different questions. Occupancy asks: is this location inside the shape? The answer is 0 or 1 (Occupancy Networks, Mescheder et al., 2019). Signed distance asks: how far is this location from the surface, with a sign convention? A common one is negative inside and positive outside. Radiance density asks: how strongly does a ray lose light here? (NeRF, next chapter.) For a unit sphere, the point 1.3 away from the center has occupancy 0 and signed distance +0.3. The point 0.6 away has occupancy 1 and signed distance −0.4. These quantities carry different meanings and need different training targets.
Most of a scene is empty air. A dense grid allocates every cell anyway. A sparse grid allocates only selected regions, such as the cells that touch the surface. Octrees (a box split into eight smaller boxes, again and again where needed) and multiresolution features, as in Instant-NGP (Müller et al., 2022) and TRELLIS.2 (Xiang et al., 2025), trade detail, memory and query cost.
Try the device. Pick a grid size, switch between dense and sparse, and tap the shape to place a probe.
Blue cells are inside the shape. In sparse mode only the yellow cells next to the surface are allocated. Tap or drag in the picture to move the teal probe, or use the buttons.
Illustrative: a 2D slice of one made-up wavy shape in a 3.2 wide box. Signed distance is measured against the true outline (negative inside). The 3D memory figure assumes C = 4 channels of 4 bytes per cell. A sparse grid here allocates the cells whose area is partly inside and partly outside.
The lecture's closing line on this slide matters most for sparse storage: an unallocated cell is not automatically a known empty region. A sparse grid that stores nothing for a cell has not measured that cell. It may be empty air, or it may be the middle of a solid wall that nobody wrote down.
Symptom: a robot plans a path straight through a pillar that its sparse map covers only at the surface. Measurement: in the device, set sparse mode and probe deep inside. The cell is unallocated, a naive reader returns 0, and the true occupancy is 1. Fix: store "unknown" apart from "empty", or keep a coarse dense level underneath, and report confidence with the answer.
Chapter 4
Ask a function for color and density at points on a ray, then blend them front to back to get one pixel
You look at a candle through a sheet of frosted glass. The glass is partly clear, so some of the flame's light reaches you. The glass also adds its own milky color. What you see is a blend: some glass, some flame.
Now imagine that the whole scene is like that glass: a cloud of colored fog, thick in some places and thin in others. A camera ray travels through the fog. The pixel's color is what the ray collects on the way. That picture is a neural radiance field, or NeRF (Mildenhall et al., 2020).
The lecture writes the scene as one function.
The data flow is short. In: a batch of ray samples, shape B × S × 3 for positions (B rays, S samples each) and a matching direction for each. Out: B × S × 4 numbers, a color and a density at each sample. In the original NeRF, density depends only on position, and direction feeds in near the end to shape the color. The authors also pass the position through sines and cosines of several frequencies, so a small network can draw sharp detail.
Because the network can be asked about any location, the scene is continuous. It can be rendered from new cameras, because every new camera is just a new set of rays.
A ray cannot sum over all of space, so the renderer takes samples along it. Sample i sits in a segment of length Δi. The lecture's rule is the volume rendering formula.
Read it as a queue at a door. Segment 1 takes its share first. Segment 2 can only take a share of what is left. Each sample's final weight is Ti αi: how much of it is both present and not hidden by anything in front.
A worked case with three samples, Δ = 0.5, densities σ = (0.5, 2.0, 5.0), and colors red, green, blue.
Training closes the loop. Render a ray, compare the pixel with the real photograph's pixel (the slide marks each ray's ground truth, "g.t."), and send the error back through the formula into θ. The renderer is differentiable, so the photos teach the network.
Three habits help when you read this formula. First, a large density does not mean a bright pixel. It means the sample blocks light, so what lies behind gets less weight. Second, color comes from the samples that carry weight, so a dim sample with a large weight still dominates. Third, empty air has density zero, so it adds nothing and costs only the time to query it.
A ray enters from the left. A semi-transparent orange layer sits at 1.2 m. A nearly solid pink wall sits at 2.8 m. Change how thick the orange layer is and how many samples the renderer takes.
Top: density along the ray, with a tick at each sample. Bottom: each sample's weight T times alpha, colored by what the sample sees. The swatches compare your pixel with a 512 sample reference.
Toy ray, 4 m long: two Gaussian density bumps, one at 1.2 m (peak set by the slider, width 0.18 m) and one at 2.8 m (peak 30, width 0.15 m), a dark background behind. Each sample takes the density at its segment center. The formula is the lecture's, computed live.
Raise the orange density: the orange weights grow and the pink weights shrink, because the pink wall is behind and gets only the light that is left. Drop the samples to 3: the picture is crude, since the thin layer can fall between samples.
Symptom: a thin object flickers or vanishes from some camera angles. Measurement: compare your pixel with the 512 sample reference. In the device, 4 samples can be off by dozens of the 255 color levels. Fix: take more samples, or place them where the weight is. Samples are cheap in the toy, but in a real scene each one is a network query, so the number you can afford sets the image quality you get. The original NeRF does this with a coarse pass that guides a fine pass.
The full NeRF story is in NeRF and 3D Gaussian splatting.
Chapter 5
Meet one 3D Gaussian, project it into an image as an ellipse, and blend many of them front to back
Spray paint on a wall from far away and each puff leaves a soft round mark: dense in the middle, fading at the edge. Spray with the nozzle tilted and the mark stretches into an oval. Now cover a wall with a thousand such puffs, each its own size, tilt and color. From across the room, you see a picture.
That is 3D Gaussian splatting (Kerbl et al., 2023), in one paragraph. The scene is a pile of colored, partly see-through blobs. To render it, you flatten each blob onto the image and blend.
A bare point has no size, so it covers no pixel. The lecture gives three reasons to use a Gaussian instead. It has spatial extent: a point needs a footprint to cover image pixels. It has smooth falloff: a small change in position or size changes its contribution smoothly, which keeps training stable. It has flexible shape: stretch and rotate it to fit local scene structure. It also has a simple form under local camera projection, as we see below.
Smooth weights are easy to see in numbers. A one-dimensional Gaussian with spread σ gives weight exp(−½ (x / σ)2). At 1 σ away, 0.607. At 2 σ, 0.135. At 3 σ, 0.011. The weight fades without a hard edge.
The lecture lists four things each Gaussian stores.
Slice a Gaussian at one weight value and you get an ellipsoid, a stretched ball. The Gaussian extends smoothly beyond it. Build Σ from a rotation Rg and three axis lengths s: Σ = Rg diag(s12, s22, s32) RgT. This form always gives a valid blob. In the original method each Gaussian takes 59 numbers: 3 for center, 4 for rotation, 3 for scale, 1 for opacity and 48 for color that varies with view.
To draw a Gaussian, find where its center lands and what shape it has in the image. The lecture gives two lines.
A worked case. Put a Gaussian at depth Z = 4 m with f = 300 px, so J scales x and y by f / Z = 75 px per meter. Let its axis lengths be (0.3, 0.1, 0.1) m. Seen from the side, with the long axis across the view: σpx = 75 × 0.3 = 22.5 px along and 75 × 0.1 = 7.5 px across. Seen end-on, with the long axis pointing at the camera: 7.5 by 7.5 px, nearly round. Same blob, two footprints.
Both panels show the same 3D Gaussian. Camera A is fixed. Turn camera B around the blob and change its distance. The ellipses are the 2 sigma footprints from the formula above.
Illustrative: one Gaussian with axis lengths (0.3, 0.1, 0.1) m, its long axis tilted in the world, f = 300 px. Camera B turns about the vertical axis through the blob. The footprint comes from the full 3 by 3 covariance and the local scaling J, as in the lecture.
For one pixel p, Gaussian i adds opacity αi(p) = oi Gi(p), using its projected weight at that pixel. Sort the Gaussians from front to back. The front one contributes α1 c1. The next gets the visibility left by the first: (1 − α1) α2 c2. The third gets what remains after both: (1 − α1)(1 − α2) α3 c3. In one line: C(p) = ∑ Ti(p) αi(p) ci, with Ti the product of (1 − αj) over j before i.
This is the same rule as Chapter 4, now applied to projected Gaussians. The queue at the door is the same queue. With α = (0.6, 0.5, 0.9) the weights are 0.6, 0.4 × 0.5 = 0.2 and 0.4 × 0.5 × 0.9 = 0.18. They add to 0.98.
Three blobs cover one pixel. Set each opacity. Then switch to the wrong order and watch the pixel change.
Toy values: the three colors are orange (front), pink (middle) and blue (back), over a dark background. The opacities stand for o times the projected weight at one pixel. The blend is the lecture's formula, computed live.
Here is the data flow for one image. The scene holds N Gaussians. Means have shape N × 3. Shapes are stored as three scales (N × 3) and a rotation (N × 4), which build the covariances. Opacity has shape N. Color has 48 numbers each. The renderer projects every mean and covariance with the camera, sorts the blobs by depth, and blends them for each pixel. Out comes an image of shape H × W × 3. Every step is a plain array operation, so a GPU can run it for all pixels at once.
Symptom: colors flicker or swap when the camera moves a little, because two blobs trade places in the sort. Measurement: in the device, the same three opacities give a pixel that differs by many of 255 levels once the order flips. Fix: sort by depth for every view, which is why splat renderers spend effort on depth sorting.
Chapter 6
Start from a rough cloud, render, compare with the photo, and let the optimizer move and multiply the blobs
A sculptor starts with a rough lump of clay, looks at the model on the table, and pushes the clay a little. Then she looks again. Where the detail is fine she adds small pieces. Where a lump is too big she cuts it in two. Where a bit does nothing she removes it.
Training a splat scene is that loop, with photographs as the model on the table.
The lecture draws the original 3DGS pipeline as four things. The input is photos of one scene and their calibrated cameras, meaning each photo has a known pose and K from Chapter 1. The initialization is a set of sparse 3D points from structure from motion (SfM), a method that matches features across the photos to recover camera poses and a few 3D points. The image supervision step renders a training view and compares it with the observed photo. The gradient updates then adjust centers, shapes, opacities and color coefficients.
The original loss is a weighted mix of a pixel L1 error and a structural similarity term (SSIM). L1 is the average absolute difference. SSIM compares local patterns of brightness, so it notices blur and lost texture that plain pixel error can miss. A tiny L1 example: the render gives (0.8, 0.4, 0.2) where the photo has (0.7, 0.5, 0.2). The differences are 0.1, 0.1 and 0, so the mean absolute error is 0.2 / 3 = 0.067.
Every step of the render is differentiable: projection (Chapter 5), sorting, and blending. So the photo error flows back into each Gaussian's center, shape, opacity and color.
Gradient steps can move blobs, but they cannot make more. The starting cloud may be too sparse. So the lecture adds density control, three moves that run now and then during training.
The slide pictures both ways to fail. In under-reconstruction a few blobs cannot cover a detailed shape, so the shape is blurry or has holes: clone. In over-reconstruction a single big blob smears across several details: split. Training changes both the parameters and the number of elements.
Put the whole loop in order, with its data.
The failure shows up in the picture before it shows up in the loss: fine texture turns to mush, or a floating gray smear hangs in empty space. Both are density problems, not camera problems.
The cost is the count. At 59 numbers of 4 bytes each, one million Gaussians take 236 million bytes, about 236 MB, before any rendering buffers.
The device below is a one-dimensional toy. The black outline is a target signal with a broad hill, a sharp spike and a small bump. The model is a sum of Gaussians. Train, and look at the leftover error. Then press density control and train again.
Warm curve: your Gaussians added up. Dashed outline: the target. Faint bumps: each Gaussian. Train first. Then press density control and train again.
Illustrative: a 1D curve fitted with Adam steps on an L1 loss over 200 sample points. Gaussians add up here, where real splats blend with opacity. Density control clones small Gaussians that still carry a large position gradient, splits large ones into two smaller ones, and prunes any with amplitude under 0.02. Thresholds are ours, not the paper's.
Train the six starting Gaussians and the error stalls: six blobs cannot make a sharp spike. Density control adds blobs exactly where the gradient says the fit is straining, and the next round of training brings the error down.
Read the toy this way. Each faint bump is one Gaussian with its own height, center and width. The warm curve is their sum. Train moves every bump a little, to shrink the yellow gap between warm and dashed. When the gap stays in one place, more training will not help. The model needs another blob there. That is why cloning and splitting key on where the gradient on position stays large.
Chapter 4 and this chapter give two answers to one question. The lecture sets them side by side.
| What | Original NeRF | 3D Gaussian splatting |
|---|---|---|
| Scene storage | A neural function of position and direction | Explicit centers, shapes, opacity and appearance |
| Rendering | Query points along each ray | Project Gaussians and composite their footprints |
| Image supervision | Differentiate through volume rendering | Differentiate through the splat renderer |
| Where computation goes | Many field evaluations along rays | Visible splats, image tiles and depth sorting |
The practical limits, in the lecture's words: many elements consume memory, and large or overlapping splats can introduce projection and visibility artifacts. Both represent how an observed scene looks from new views. Predicting its dynamics needs an additional model, and that is where Part 2 of this lesson goes.
| Representation | Stored information | Typical query |
|---|---|---|
| Points or mesh | Samples, with optional connectivity | Where is the surface? |
| Voxel or volume | Spatial attributes or features | What is at this location? |
| Radiance field or splats | Geometry and appearance for rendering | What would this camera see? |
Hybrids mix these choices: learned features can live on grids, on points or on compact tokens. This is where the Chapter 0 checklist (geometry, appearance, structure) pays off: ask what each row keeps, and which question you need answered.
For the full paper, see the 3D Gaussian Splatting paper lesson, and for the pair together NeRF and 3DGS.
Chapter 7
Add time to a 3D scene and learn why each point needs a name that survives motion, hiding and a moving camera
You film a friend tossing a ball in a park. Frame by frame, a depth model gives you a fresh cloud of 3D points for each frame. Now ask a simple question: where did the point on the ball's left edge go?
You cannot answer. Each frame's cloud is a new pile of points with no names. The ball's left edge in frame 10 is just one of 40,000 points, and nothing says which one was the left edge in frame 9.
This is the heart of the lecture's fourth dimension. The lecture puts it plainly: a 3D world changes over time, so we need geometry, correspondence and a reference frame. Geometry is what Chapters 1 to 6 gave us. This chapter adds correspondence. Chapter 8 adds the reference frame.
The lecture shows a dynamic video of a street, with its reconstructed geometry at one time, later in the video, and at another time (St4RTrack, Feng et al., 2025). Its warning: changing point sets do not automatically preserve point identity. Each cloud is a fresh sample of the visible surfaces. The order of its list means nothing.
Scene flow is the 3D displacement of one point between two times, in one reference frame: ΔXi = Xi(tb) − Xi(ta). It needs a name i for the point, or the subtraction has no meaning.
Take a point at Xi(ta) = (0.20, −0.30, 2.00) m that moves to Xi(tb) = (0.35, −0.30, 1.90) m over 0.1 s.
Optical flow is a different thing. It is displacement in an image. With f = 500 and center (320, 240), the point above lands at pixel (370, 165) at time ta and at (412.1, 161.1) at tb. Optical flow is (42.1, −3.9) px. That number mixes the point's motion with its depth, and with the camera's motion if the camera moved. The lecture's rule: 3D motion and changing image views need separate geometric bookkeeping, so always specify the two times and the coordinate frame.
A point trajectory is the full record for one point: Ti = {Xi(t) : t ∈ Q}, where Q is the set of requested times. The point keeps its identity across time, and the representation records where the same point goes. SpatialTrackerV2 (Xiao et al., 2025) and D4RT (Zhang et al., 2026) predict such tracks.
The lecture separates three things about a point. The source pixel selects a physical surface point in one frame. The point identity remains associated with that point forever. The later pixel changes as the point and the camera move. In our example, pixel (370, 165) first selects the point. Later it sits at pixel (412, 161). The pixel changed. The ID did not. An image index and a persistent point ID serve different purposes.
What goes in and out of such a tracker? In: a video of T frames and a query, which is a source frame plus a pixel in it. Out: for each requested time in Q, a 3D position, a visibility flag and a confidence. The query is the name. The output is the trajectory.
A tracked point sometimes goes behind something. The lecture adds two numbers to position. Visibility says whether the point is observable in this view. Confidence says how reliable the estimate is. Its key line: an inferred position behind an occluder is different from a measured position. A model can guess where the hidden point is, but nobody saw it there.
Eight points on a moving rigid shape. Faint hollow dots are time 0. Arrows run from each time 0 dot to its match now. Drag time. Switch how the match is made. Turn the occluder on.
Toy motion: a U shaped rigid body that slides 1.8 units and turns 50 degrees as time goes from 0 to 1. List order is shuffled with a fixed seed, as a fresh point cloud would be. Confidence is illustrative: 0.95 for a measured point, halved for every 0.2 time units a point stays hidden.
By identity, every arrow follows the shape's smooth motion and the arrows are all alike. By list order, the arrows criss-cross, because the second cloud's order has nothing to do with the first. Turn on the occluder: points that slip behind the bar become hollow. They still have positions, but those positions are inferred, and their confidence falls the longer they stay hidden.
Symptom one: flow arrows point in random directions and mean flow is far too large. Measurement: the device reports the mean error against the true flow; list order gives an error close to the size of the motion itself. Fix: carry a persistent ID from a source frame, as trajectory models do. Symptom two: a track jumps or freezes when a point goes behind something. Fix: keep visibility and confidence beside position, and do not train or evaluate on hidden positions as if they were seen.
Track models appear in our paper lessons CoTracker3, D4RT and TrackEverything.
Chapter 8
Undo the camera's own motion so that a still table looks still, then store the result as one table of numbers
You ride a train and watch a signpost slide past the window. In your window the signpost moves fast. For a person on the platform, it does not move at all. Both are right. They are measuring from different frames.
A tracker faces the same trap. It reports where a point is in this frame's camera coordinates. If the camera moves, every still object in the room seems to move too. To compare motion across a clip, you need one frame that does not move.
The lecture states it in one line. Camera coordinates change as the camera moves. A fixed frame lets us compare scene motion. The world to camera rule from Chapter 1 still holds at each time t: Xc = Rt Xw + tt. Here we apply it backward.
Order matters: undo the translation first, then undo the rotation. The lecture adds a caution about scale. The first camera can define the reference frame, but it does not guarantee absolute scale. If you double every distance in the world and every camera move, the images stay the same. A set of photos cannot tell a toy room from a real one without extra information.
A 2D track gives a pixel (ut, vt) for each time. To place it in the fixed frame, add depth and then undo the pose. The lecture chains three arrows: pixel plus depth gives a camera point, and a camera point gives a fixed-frame point.
A worked case. Use the point from Chapter 7: pixel (412.1, 161.1), depth 1.9 m, f = 500, center (320, 240). Let R = I and t = (−2, 0, 0).
Now slide the camera 1 m to the right, so t = (−3, 0, 0). The same point is at camera coordinates (−0.65, −0.30, 1.90). Lifting gives (−0.65 + 3, −0.30, 1.90) = (2.35, −0.30, 1.90). The camera numbers moved. The fixed-frame numbers did not.
Left: a top-down view. The camera slides right and turns while a purple table post stays put and a warm ball rolls right. Right: the paths each point leaves in the frame you choose.
Toy clip: the camera slides 3 m to the right while turning from 15 degrees left to 15 degrees right of straight ahead; the post is at (1.5, 3.5) m and the ball rolls from (−0.5, 4.5) to (2.5, 4.5) m. Path lengths are measured live. Poses are assumed known exactly; real systems estimate them.
In the camera frame the post, which never moved, draws a long path. The ball's path is bent by the camera's motion. In the fixed frame the post is a single dot and the ball's path is a straight, honest line.
A check in two dimensions makes the order of operations concrete. Let the camera turn 90 degrees, so its forward axis points along the world's x axis. A point at world offset (2, 1) from the camera has camera coordinates (−1, 2): one to the left, two ahead. To go back, rotate by the inverse: (−1, 2) becomes (2, 1) again. Each frame has its own Rt and tt, so a moving camera needs one pose per time, and the lifting must use the pose of the frame where the pixel was seen.
Put all tracks in the fixed frame and stack them. The lecture's trajectory representation is one tensor: X ∈ RN × T × 3. N is the number of queried points. T is the number of requested times. The last axis holds three spatial coordinates. Rows are point identities (point i, j, k); columns are times (ta, tb, tc). Each cell is one 3D position. Visibility and confidence are stored separately, as two more N × T tables. For N = 1,000 points over T = 24 frames, X holds 1,000 × 24 × 3 = 72,000 numbers.
Symptom: a table you know is still seems to creep in the fixed frame. Measurement: a camera yaw error of 1 degree moves a point 4 m away by 4 · tan(1°) = 0.07 m, with no real motion at all. Fix: estimate the pose jointly with the tracks, or check that still objects stay still, and keep the frame's scale caveat in mind.
Chapter 9
Store the scene once, store how it moves as a map, and take care which way the map points
Think of a puppet. The puppet itself is one object, sitting at rest on a shelf. A show is a long list of instructions: lift this arm, tilt that head, bend the cloth cape. You never rebuild the puppet for each frame. You keep one puppet and one list of moves.
Dynamic scenes work the same way. Storing a fresh 3D scene for every frame is wasteful and loses the link between frames. The lecture's closing idea is to store the scene once, in a reference form, and learn how time bends it.
The lecture first sorts motion by structure, with an example for each. Rigid motion: one body changes pose (PointWorld, Huang et al., 2026). Articulated motion: parts move through joints, like a robot arm. Deformable motion: different points change shape together, like a cloth or a soft object (MeshGraphNets, Pfaff et al., 2021). These describe the structure of motion. Each can use several spatial representations: points, meshes, voxels or splats.
The structure tells you how many numbers you need to describe a move. A rigid body needs one pose (6 numbers). A two-part arm needs one pose plus one joint angle. A cloth may need a displacement for every vertex.
The lecture gives the idea in one line: one reference shape or volume, plus a time-dependent mapping.
The lecture then adds a warning. Some methods use the inverse direction: from the current space back to the canonical space. The mapping direction must match the query and the renderer.
Why? A renderer for time t shoots rays through the current scene. At each sample on a ray it holds a current position xt and asks: what color and density live here? The stored field lives in canonical space. So the renderer needs Φt−1, to carry the query back to the reference. If you apply Φt by mistake, you read the wrong place.
A worked case: an articulated arm. The joint is at the origin and the upper part turns 70 degrees at t = 1. Take the canonical arm point (0, 0.6).
Left: the canonical shape, the same at every time. Right: the shape at time t. Pick a kind of motion and a tracked point. The ring on the left shows where the renderer reads the stored color.
Toy maps: rigid is a turn of 50 degrees and a slide; articulated turns the upper half by 70 degrees about the joint at the middle; deformable shifts each row sideways by 0.3 sin(3.2 y + 4 t). Overlaps in the articulated case are resolved in favour of the moving part. The probe is a canonical point pushed to time t, so the right lookup always finds it.
Choose the inverse map and the ring lands exactly on the tracked point at every time. Switch to the forward map by mistake: at time 0 nothing is wrong, because Φ0 does nothing, but as time grows the ring drifts away, by a different amount for each kind of motion.
Sharing one canonical shape also saves memory. Take 100,000 Gaussians at 59 numbers of 4 bytes each: that is 23.6 MB. Storing a separate scene for each of 100 frames costs 2.36 GB. A canonical set plus a small network that deforms it keeps the 23.6 MB and adds only the network. The price is that the network must learn the motion well, or fast motion will blur.
D-NeRF (Pumarola et al., 2021) builds this into a radiance field. A deformation network takes a position and a time, and returns a shift that carries the point back to the canonical scene. The canonical radiance field then answers with color and density. Time becomes a query variable of the representation. Rendering the scene at any time and from any viewpoint is the same ray walk as Chapter 4, with one extra step before each field query.
4D Gaussian splatting (Wu et al., 2024) does the same for splats. It keeps one canonical set of Gaussians (Chapter 5) and learns a time-dependent deformation of them. A dynamic rendering representation can share structure across time. The slide's side-by-side shows the dynamic Gaussians at 30 frames per second against 1 frame per second for a NeRF-style baseline, TiNeuVox, on the same scene.
The data flow for one query is short. In: a batch of B positions at time t, shape B × 3, and the time as one number. The deformation network returns a shift for each position, shape B × 3. Add it to the position to get the canonical location. The canonical field then returns color and density for each. Nothing else changes in the renderer.
The lecture closes by comparing the tracking representations. Different methods can predict the same event through different objects.
| Representation | What stays indexed? | What changes over time? |
|---|---|---|
| Pointmap | Image pixels in a particular view | Their reconstructed 3D positions |
| Point trajectory | A selected physical point | Its position in a reference frame |
| Voxel or dynamic field | Spatial locations or a reference domain | Attributes or deformation |
| Dynamic mesh or splats | Representation elements | Positions and other parameters |
The column to read is the middle one. It says what a model can count on staying put. A pointmap keeps the pixel grid. A trajectory keeps the point's name. A field keeps its locations. A mesh or splat set keeps its elements. Pick the one that matches the question you must answer, and Chapter 0's checklist (geometry, appearance, structure) comes back with time added.
Symptom: a moving arm shows the texture of the wrong limb, or a deforming sheet looks smeared during fast motion. Measurement: the distance between the looked-up canonical point and the true source, 1.13 in the worked case. Fix: write down which direction each stored map points, and check that the query path uses its inverse when it starts from current space.
For the dynamic version of the paper trail, see the 3D Gaussian Splatting lesson and D4RT.
Chapter 10
Review the numbers, the terms and the code, then pick a representation for the job in front of you
You can now read Lecture 15 of CIS 6280 from memory. A camera links 3D to 2D. Depth turns pixels into points. Points, meshes, voxels and fields store a shape in different ways. NeRF and Gaussian splats store how a scene looks. Time adds names, visibility and frames, and a canonical shape bent by a map holds a moving scene.
A representation keeps some of three answers: geometry (where), appearance (what a camera sees) and structure (what belongs together). A camera model P = K [R | t] maps world points to pixels, and K−1 with a depth maps pixels back to points. Points, meshes, voxels and fields differ in what they store and what they can be asked. NeRF blends field samples along a ray with weights T α; splats blend projected Gaussians in depth order with the same rule. In 4D, a trajectory X ∈ RN × T × 3 keeps point identity, with visibility and confidence beside it, in one fixed frame. Dynamic scenes use a canonical shape and a deformation map whose direction must match the query.
| What | Number | Why it matters |
|---|---|---|
| One point through a camera (f = 500) | (0.4, 0.2, 5.0) m → pixel (360, 260) | Divide by depth, scale, shift (Ch 1) |
| Forgetting the pose | about 11 px off | K alone does not say where the camera is |
| A 640 × 480 pointmap | 307,200 points, about 3.7 MB | One 3D point per pixel (Ch 2) |
| Dense voxel grid, C = 4 floats | 64³: 4 MiB; 256³: 256 MiB | Four times finer costs 64 times more (Ch 3) |
| Three-sample ray, σ = 0.5, 2, 5 | weights 0.221, 0.492, 0.263 | Front samples hide those behind (Ch 4) |
| One 3D Gaussian, original method | 59 numbers; 1 million take about 236 MB | Splat count is the memory bill (Ch 5, 6) |
| Splat weights for α = 0.6, 0.5, 0.9 | 0.6, 0.2, 0.18 | Order matters (Ch 5) |
| Scene flow, then optical flow | (0.15, 0, −0.10) m = 1.8 m/s; (42.1, −3.9) px | 3D motion and image motion differ (Ch 7) |
| Lifting pixel (412.1, 161.1), depth 1.9 m | (2.35, −0.30, 1.90) in the fixed frame | Camera moves, fixed frame does not (Ch 8) |
| A 1 degree yaw error at 4 m | 0.07 m of fake motion | Pose errors look like motion (Ch 8) |
| Trajectory tensor, 1,000 points, 24 times | 72,000 numbers | N × T × 3, plus visibility and confidence (Ch 8) |
| Wrong-direction lookup on an arm | 1.13 away | Match the map to the query (Ch 9) |
| Term | Plain meaning | Where |
|---|---|---|
| Intrinsics K | Image scale and center, not the camera's place | 1 |
| Pose (R, t) | Where the camera is and which way it faces | 1 |
| Depth map, pointmap | One distance, or one 3D position, per pixel | 2 |
| Mesh, voxel grid | Vertices with faces; a regular grid of cells | 3 |
| Occupancy, signed distance | Inside or outside; how far from the surface | 3 |
| Radiance field | A function from place and direction to color and density | 4 |
| Transmittance T | The light that survives everything in front | 4, 5 |
| Splat, covariance | A projected blob; the table that sets its shape | 5 |
| Clone, split, prune | Copy, divide or delete Gaussians during training | 6 |
| Scene flow, optical flow | 3D displacement of a point; displacement in an image | 7 |
| Point identity, visibility, confidence | The point's name; seen or not; how far to trust | 7 |
| Fixed frame | One coordinate system that does not move with the camera | 8 |
| Canonical shape, deformation map | One reference form; the time-dependent bend of it | 9 |
Every formula of the lecture fits in a few lines of NumPy. This is a sketch that follows the lecture's conventions. Shapes are in the comments.
pythonimport numpy as np def project(Xw, K, R, t): # Xw (N,3) world points -> pixels (N,2) Xc = Xw @ R.T + t # world -> camera, (N,3) uvw = Xc @ K.T # apply K, (N,3) return uvw[:, :2] / uvw[:, 2:3], Xc[:, 2] # divide by depth def unproject(depth, K): # depth (H,W) -> pointmap (H,W,3), camera frame H, W = depth.shape v, u = np.mgrid[0:H, 0:W] rays = np.stack([u, v, np.ones_like(u)], -1) @ np.linalg.inv(K).T # K^-1 [u, v, 1] return rays * depth[..., None] def to_world(Xc, R, t): # camera frame -> fixed frame: R^T (Xc - t) return (Xc - t) @ R # row-vector form def lift_track(uv, d, K, Rs, ts): # uv (T,2), d (T,), Rs (T,3,3), ts (T,3) -> (T,3) ray = np.concatenate([uv, np.ones((len(uv), 1))], 1) @ np.linalg.inv(K).T return np.einsum('tji,tj->ti', Rs, ray * d[:, None] - ts) def render_ray(sigma, color, delta): # sigma (S,), color (S,3), delta (S,) alpha = 1 - np.exp(-sigma * delta) T = np.cumprod(np.concatenate([[1.0], 1 - alpha[:-1]])) # light left before each sample w = T * alpha return (w[:, None] * color).sum(0), w # the pixel, and its weights # the same blend for splats: alpha_i = opacity_i * projected weight, sorted front to back def composite(alpha, color): T = np.cumprod(np.concatenate([[1.0], 1 - alpha[:-1]])) return ((T * alpha)[:, None] * color).sum(0) def gaussian_footprint(mu, Sigma, K, R, t): # one 3D Gaussian -> 2D mean (2,), covariance (2,2) x, y, z = R @ mu + t J = np.array([[K[0,0]/z, 0, -K[0,0]*x/z**2], [0, K[1,1]/z, -K[1,1]*y/z**2]]) # local linear fit of the projection return (K @ (R @ mu + t))[:2] / z, J @ R @ Sigma @ R.T @ J.T
Run these on the worked examples of Chapters 1, 2, 4 and 8 and you get (360, 260), (−0.96, 0, 4.0), (0.221, 0.492, 0.263) and (2.35, −0.30, 1.90). The footprint function gives spreads of 22.5 and 7.5 px for the Chapter 5 Gaussian seen from the side.
Earlier lectures of this series predicted pixels: video world models and interactive world models generate frames. This lecture gives the other option: keep a 3D or 4D state and predict how it changes. That answers the opening questions. What moves if the robot pushes? Predict the points. What does another camera see? Render the representation from that camera. The next session on the course site, 3D World Models II (November 3), covers learning geometry and tracking from images and action-conditioned 3D prediction.
This lesson follows Lecture 15 of Penn CIS 6280: World Models (Fall 2026), taught by Jiatao Gu. Read the lecture on the course site and in the lecture slides. The papers the lecture cites include Occupancy Networks, NeRF, Plenoxels, Instant-NGP, TRELLIS.2, 3D Gaussian Splatting, DUSt3R, PointWorld, MeshGraphNets, St4RTrack, SpatialTrackerV2, D4RT, D-NeRF and 4D Gaussian Splatting. All explanations, devices and examples here are our own.
Now press Teach and explain, from memory, how a pixel and a depth become a point in a fixed frame, and why a track needs a name. Then go back to the outline at the top and change the detail level once more.