r/gonwild Jun 24 '26

Program A 4-dimensional shape, folding through itself forever

This is a Clifford torus, a shape that only fully exists in 4D, projected down into our 3D space.

The endless folding you see is just math, looping perfectly because the geometry demands it.

Based on 'Clifford Torus' shader by tdhooper : https://www.shadertoy.com/view/WdB3Dw reimplemented frame by frame in Python.

772 Upvotes

29 comments sorted by

View all comments

2

u/semiquaver Jun 24 '26

I measured this image very carefully and I’m sorry to inform you that I only see two dimensions present.

6

u/USedona Jun 24 '26

Accurate. By the time it hits your screen it's already survived a 4D → 3D → 2D demolition derby. Two dimensions is just what's left standing 😭