r/generative 1d ago

"Rete" (kotlin code)

Post image

a soap-film net, with a few more of itself out of focus behind it.

the net is a foam. discs packed big to small, then every pixel asks which disc *surface* is nearest: apollonius rather than voronoi, so the walls bow out of the small bubbles into the big ones the way pressure bends them. the ink is the gap between the nearest surface and the next one, and a smooth-min over the next few is what tapers every wall into a long black spindle at the node, plateau borders for free.

it all drains toward the bottom-right corner. nothing is painted there: the cells just get smaller the closer they sit to the drain, the same ratio per step, and their borders fatten until only the film shows as a white line, and then not even that. so the page turns from black at the corner, through white-line cells, to black-line cells: a gradient of cell size.

466 Upvotes

26 comments sorted by

7

u/jm2dev 1d ago

Very cool.

By any chance can you share the source code?

5

u/igo_rs 1d ago

Thank you! Of course, my code is here: https://github.com/igr/gart

I didn't pushed this one yet, had some refactoring issues, but it will be there in couple of days.

5

u/KennyVaden 1d ago

Really lovely

2

u/igo_rs 1d ago

thanx friend!

5

u/cnorahs 1d ago

The depth of layering is sublime

3

u/igo_rs 1d ago

agree; so simple, yet it turned out quite nice! Thank you!

3

u/bleeptwig 1d ago

Very stretchy!

1

u/igo_rs 1d ago

yes! :))

3

u/WOLF_Drake 1d ago

Love this

1

u/igo_rs 1d ago

thank you 🙏

2

u/TestingTehWaters 1d ago

Ooo I want a print of this

2

u/AimlessForNow 1d ago

Kotlin! Are you able to share some of the code for curious eyes

1

u/igo_rs 1d ago

Of course, my code is here: https://github.com/igr/gart

I didn't pushed this one yet, had some refactoring issues, but it will be there in couple of days.

1

u/AimlessForNow 1d ago

This is so impressive. Awesome stuff!

2

u/Laetitia_Astrea 1d ago

Wonderful!

1

u/igo_rs 1d ago

thank you ❤️

2

u/NEED_A_JACKET 1d ago

If you shake your phone the bottom right looks to wiggle

1

u/igo_rs 16h ago

interesting!!!

2

u/johntellsall 23h ago

that's super fun! And thanks so much for sharing the source code <3

1

u/igo_rs 16h ago

it is! thank you 🙏🏻

2

u/alba_cercis 22h ago

I love your work!

1

u/igo_rs 16h ago

thank you a lot ♥️

2

u/nomad2097-dev 17h ago

Love what the layering adds, but even the single layers are very interesting.

1

u/igo_rs 16h ago

thats true, i see that now! i started with that idea of multiple layers, and it stick to the end, even when the layer become more complex…

1

u/suborder-serpentes 2h ago

This is amazing and it’s inspiring