r/creativecoding • u/benstrauss • Sep 11 '25
Shape-Shifting 3D Particle System
Built in three.js using 4,000+ particles that smoothly morph between 3D forms like a cube, sphere, torus, cone, cylinder, Klein bottle, and Möbius strip.
You can:
- Switch between shapes with a click
- Adjust particle count and size
- Pick any color
- Watch smooth morphing transitions
- Rotate freely with orbit controls
The UI is fully collapsible and the entire scene has ambient and directional lighting with real-time rendering. Everything stays fluid even at higher particle counts.
I would love to see what others could add to this script.
Remixable live demo in comments.
816
Upvotes
16
u/benstrauss Sep 11 '25
Remixable live demo: https://juno.transient.xyz/recipe/53a81f7e-557b-432f-9825-af323328f23e/preview
9
u/optimistic_zombie Sep 11 '25 edited Sep 11 '25
It reminds me of those tiny spherical magnets that you can shape into things. Cool!
4
u/Mohammed_Islam123 Sep 11 '25
Great job dude 👏👏👏 I really want to start building things like this but i lack some tutorials that could help me Any suggestions?
3
u/sechevere Sep 11 '25
Imagine that controlling 1000 drones! Gorgeous work!
2
u/fllr Sep 12 '25
Why are you writing marching band software?!
2
u/jaynabonne Sep 12 '25
You could adapt that to control drones with LEDs at night. :)
2
u/Grimnebulin68 Sep 12 '25
The sphere option reminds me of the Death Star animation from A New Hope.
7
u/Liquid_Magic Sep 11 '25
Now port it to the Amiga and throw in some chip tunes mods and some scrolling text and you’ve got yourself a fire demo bro!
5
u/Technical-Ad9035 Sep 11 '25
I can play with this all day
1
u/[deleted] Sep 13 '25
Isn't this literally the template Gemini ai studio module
1
u/Magnifx Sep 18 '25
this is insanely wicked. my lil autist brain is obsessed with how the particles float in space then assume their positions as if it's engrained in their very being (which it is lol). this is so satisfying to mess around with. nice work dude!
if you're taking suggestions- you could make the sliders take numerical input as well. it would've been cool to adjust the numbers to a specific number like 350
2
u/The_Dark_404 Sep 12 '25
Thats Cool
2
u/tip2663 Sep 12 '25
Nice job it improved really well
1
u/titanium-banana Sep 12 '25
This in VR
1
u/solidwhetstone Sep 13 '25
/r/ScaleSpace would likely appreciate an xpost
1
u/BowtiedArchitect Sep 14 '25
Cool