All examples · Meshes and 3D

Affine cube

What this example shows

Two cubes with the same picture turn together. The left one is drawn as a modern card would, the picture held true to each face. The right one has affine: true: the picture is stretched straight across the screen, the way the PlayStation drew it.

Each face is two triangles, and each one stretches the picture its own way, so the lines break along the face's diagonal and swim as the cube turns. It shows most when a face is seen edge-on, because that is when its corners are at the most different depths. Press space to switch it on and off on the right cube.

Starting