正在加载视频...

视频加载失败

#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 次观看 • 3 年前 •via X (Twitter)

10 条评论

Etter Studio 的头像
Etter Studio3 年前

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

Juhani Halkomäki 的头像
Juhani Halkomäki3 年前

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.

nanimo 的头像
nanimo3 年前

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

Juhani Halkomäki 的头像
Juhani Halkomäki3 年前

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

Philippe Voinov 的头像
Philippe Voinov3 年前

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.

Juhani Halkomäki 的头像
Juhani Halkomäki3 年前

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

MythicDomain 的头像
MythicDomain3 年前

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

Lion 的头像
Lion3 年前

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

Juhani Halkomäki 的头像
Juhani Halkomäki3 年前

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

Pedro M. Cruz 的头像
Pedro M. Cruz3 年前

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

相关视频