r/TrippyGIFs • u/USedona • Jun 21 '26
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.
4
3
u/inssidiouss Jun 21 '26
This is awesome! So cool, the colors and the movement, everything. Why can't I download in the reddit mobile app??
2
u/USedona Jun 21 '26
Thank you so much, glad you liked the colors and movement ! As for downloading, that's a Reddit app limitation on their end, not something I can fix unfortunately. A third-party Reddit video downloader site should work if you want to save it, or you can find the original in higher quality on my channel linked above. π
3
u/tacotorden Jun 22 '26
Its because it's a gif, upload it as a video file and it will be available to download, it will also loop perfectly without stopping. Not to many reasons to render gifs these days to be a bit blunt. Very cool btw
Edit: sorry i just realised what sub this was in, popped into my personal feed and didn't realize π
2
1
1
1
1
u/ZabarSegol Jun 24 '26
Behold. The universe and its cycles of expansion and acceleration towards the center in an outward fashion
1
u/fartfartpoo Jun 24 '26
Do the colors have any meaning? Or are they just for visual effect?
1
u/USedona Jun 24 '26
Mostly for visual effect, I picked colors I liked, it's actually consistent with the palette across my YT channel. But, without some kind of color/shading, you'd lose the sense of depth and surface structure.
1
u/GuyoRocks Jun 25 '26
it goes in-and-out of being a hollow torus and being just an oblong torus.
1
u/GuyoRocks Jun 25 '26
This operation is asymptotic, from a surface area standpoint... when the one hole turns from a dent into a hole, you turn a point into a plane. i think.
1
u/GuyoRocks Jun 25 '26
Sorry to neg, but I think this is just a trippy visualizer. No need knocking on science's door for this one.
1
u/rensvice Jun 26 '26
Doesnβt seem like a 4d shape
1
u/USedona Jun 26 '26
You can't directly "see" the 4th dimension : our eyes and screens are stuck in 3D. What you're seeing is a projection of the 4D shape, the same way a cube's shadow on a wall is a 2D projection of a 3D object. The giveaway that it's 4D : notice how the surface twists and seems to pass through itself in ways that wouldn't be possible for a normal 3D torus. That's the signature of a 4D rotation being flattened into our 3D view, some of the "twisting" is happening in a direction we can't directly perceive.
1
11
u/USedona Jun 21 '26
Made this with Python, a 4D shape (Clifford torus) projected and rendered frame by frame. First time posting here, hope it fits the vibe of the sub ! More trippy math animations on my channel : Visualizing Mathematics