Rotates the camera 90° about its own optical axis (a roll), which spins
the image in-plane. The camera does not move: this is a rotation about
z, so it leaves T_0 = [0, 0, 3] unchanged and
T_relative is zero.
Each of the 6 square sides is split into 2 triangles, so 6 × 2 = 12 faces.
color1 = [0, 0, 1] (blue) on the front of the cow, the vertex with the
smallest z. color2 = [1, 0, 0] (red) on the back, the largest
z. Each vertex colour is alpha * color2 + (1 - alpha) * color1
with alpha = (z - z_min) / (z_max - z_min).
Rotates the camera 90° about its own optical axis (a roll), which spins
the image in-plane. The camera does not move: this is a rotation about
z, so it leaves T_0 = [0, 0, 3] unchanged and
T_relative is zero.
Orbits the camera 90° in azimuth to the −X side of the cow,
still looking at the origin from the same distance, so we see it side-on.
T_relative is non-zero because R_relative @ T_0 gives
[3, 0, 0], which would move the camera off the viewing sphere;
[-3, 0, 3] cancels that back to T = [0, 0, 3].
Moves the camera 2 units straight back along the optical axis, from
z = -3 to z = -5. The orientation is unchanged, so the
cow keeps its pose and simply gets smaller.
Translates the camera within the image plane by half a unit in camera
+x and -y. No rotation and no change in depth, so the cow
slides across the frame at the same size and orientation.
Measured on the same torus at comparable detail (python main.py -q 5.3-timing):
| Representation | Verts / points | Faces | Build | Render | Memory |
|---|---|---|---|---|---|
| Mesh (marching cubes, 96³) | 20,072 | 40,144 | 2.19 s | 3.25 s/frame | 1,411 KB |
| Point cloud (200×200) | 40,000 | — | <0.01 s | 2.76 s/frame | 938 KB |
A "cow orrery": a gyroid intersected with a ball via marching cubes, orbited by eight transformed copies of the cow on a hand-meshed torus track, over a point-cloud starfield composited with the mesh render.