Загрузка видео...

Не удалось загрузить видео

На главную

#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

Похожие видео