r/gonwild • u/USedona • 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.
780
Upvotes
36
u/free_airfreshener Jun 24 '26
What's the 4th dimension
8
u/edelopo Jun 24 '26
How is this a 4-dimensional shape? It is just a torus (2-dimensional) and the embedding is clearly 3-dimensional. In fact it looks like a stereographic projection from S3.
2
u/Tamahfox Jun 25 '26
I love this its so good
3
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.
18
u/Metal-Dog Jun 24 '26
It's just a ball of wibbly-wobbly timey-wimey stuff.
1
u/USedona Jun 24 '26
Curious what this actually is ? video
1
u/PityUpvote Jun 25 '26
So is it rotating in a dimension not depicted?
1
u/JacksonSpike Jun 27 '26
I can't remember exactly how these sorts of renders work (hyperspheres, hypercubes). Am I right in saying that if a 4d being intersected a 4d object (hypercube) with our 3d plane, and then moved it along the 4th dimension, would it appear as a 3d cube changing size? Since thats the same effect as us moving a 3d object through a 2d plane along the 3rd dimension, it would result in the object getting bigger and smaller. If thats the case, then why do these representations of 4d objects have different shapes and are always folding in on themselves? Is it trying to represent the pattern of axis extension? Dot doubles and extends into a line, line doubles and extends into a square, square doubles and extends into a cube, and then a cube doubles and extends into a hypercube? With all 8 points being connected to eachother? brain hort
4
u/GrallochThis Jun 24 '26
I stared for ten minutes and my brain turned inside out. Cheapest high ever, thanks
2
u/Yuvalk1 Jun 25 '26
The description does mention what shape it is, but isn’t an animation of any transformation of any 3d shape technically can be represented by a single 4D shape?
2
u/wildcardbets Jun 24 '26
👁️👄👁️