Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

#generative #creativecoding Debug mode of my soft-body simulation. ⚫️ Black line: spring/stick 🔴 Red circle: active collider 🔵 Blue inward line: negative pressure 🟢 Green outward line: positive pressure Wall collisions and gravity are not visualised.

92,324 Aufrufe • vor 3 Jahren •via X (Twitter)

10 Kommentare

Profilbild von Etter Studio
Etter Studiovor 3 Jahren

Great work! How do you maintain the blob shapes? I usually use springs going outwards from the centre...

Profilbild von Juhani Halkomäki
Juhani Halkomäkivor 3 Jahren

I use pressure which is calculated by taking the difference of the current area and target area of a blob. The points forming the blob are pushed in the direction of the surface normal based on the pressure.

Profilbild von nanimo
nanimovor 3 Jahren

Very interesting Reminds me of quadtrees, how the smaller sections don't exist until other objects are nearby

Profilbild von Juhani Halkomäki
Juhani Halkomäkivor 3 Jahren

It's a bit simpler structure that I'm using called Spatial Hashing.

Profilbild von Philippe Voinov
Philippe Voinovvor 3 Jahren

The specific squishy feeling makes way more sense now that you can see how the shapes sort of roll. You can't see the rolling without the debug markings.

Profilbild von Juhani Halkomäki
Juhani Halkomäkivor 3 Jahren

There is a simple implementation to simulate friction which makes the blobs roll instead of sliding

Profilbild von MythicDomain
MythicDomainvor 3 Jahren

You could pretty easily turn this into a fun mini-game with a few more steps! Introduce a set of colors and make it so that making similar colored balls touch makes them vanish and add to a score counter! If the space fills you lose

Profilbild von Lion
Lionvor 3 Jahren

The video is so extremely compressed, I only see the colors red and black.

Profilbild von Juhani Halkomäki
Juhani Halkomäkivor 3 Jahren

Yeah, I know. Twitter is bad at compressing videos. If you watch it long enough it might load a higher quality version.

Profilbild von Pedro M. Cruz
Pedro M. Cruzvor 3 Jahren

Beautiful! I want to use a similar approach for data viz

Ähnliche Videos