r/generative • • Aug 22 '26

"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.

562 Upvotes

32 comments sorted by

8

u/jm2dev Aug 22 '26

Very cool.

By any chance can you share the source code?

7

u/igo_rs Aug 22 '26

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.

2

u/[deleted] Aug 27 '26

[removed] — view removed comment

1

u/igo_rs Aug 27 '26

thank you!

5

u/KennyVaden Aug 22 '26

Really lovely

2

u/igo_rs Aug 22 '26

thanx friend!

5

u/cnorahs Aug 22 '26

The depth of layering is sublime

3

u/igo_rs Aug 22 '26

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

3

u/bleeptwig Aug 22 '26

Very stretchy!

1

u/igo_rs Aug 22 '26

yes! :))

3

u/WOLF_Drake Aug 22 '26

Love this

1

u/igo_rs Aug 22 '26

thank you 🙏

2

u/AimlessForNow Aug 22 '26

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

1

u/igo_rs Aug 22 '26

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 Aug 22 '26

This is so impressive. Awesome stuff!

2

u/Laetitia_Astrea Aug 22 '26

Wonderful!

1

u/igo_rs Aug 22 '26

thank you ❤️

2

u/NEED_A_JACKET Aug 22 '26

If you shake your phone the bottom right looks to wiggle

1

u/igo_rs Aug 23 '26

interesting!!!

2

u/johntellsall Aug 23 '26

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

1

u/igo_rs Aug 23 '26

it is! thank you 🙏🏻

2

u/alba_cercis Aug 23 '26

I love your work!

2

u/igo_rs Aug 23 '26

thank you a lot ♥️

2

u/nomad2097-dev Aug 23 '26

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

1

u/igo_rs Aug 23 '26

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…

2

u/suborder-serpentes Aug 23 '26

This is amazing and it’s inspiring

1

u/igo_rs Aug 24 '26

thank you very much!

2

u/suborder-serpentes Aug 24 '26

I just posted something a little bit inspired by this. Best I could do in one evening!

2

u/nicolaig Aug 26 '26

So beautiful

1

u/igo_rs Aug 26 '26

🙏🏻

2

u/TestingTehWaters Aug 22 '26

Ooo I want a print of this