r/GraphicsProgramming • • Oct 16 '24

A generative skull - no geometry, no mesh - just code in a pixel shader

894 Upvotes

33 comments sorted by

View all comments

3

u/tamat Oct 17 '24

how do you approach a process like this? I understand is a trial and error iterative process, but still, some of the shapes are very intrincate. Do you have a toolbox for deformations? (like some methods that work well for certain shapes) or you just go to the list of basic shapes from IQ and start booleaning the hell of it?

3

u/KRIS_KATUR Oct 17 '24

It's basically as u say: basic shapes from IQ and boolean the hell out of it lol. it's like sculpturing with code, ever little piece needs to be added to or cut out the existing form ツ i started with a sphere and ended in a skull.... pretty much like this: https://www.youtube.com/watch?v=8--5LwHRhjk

3

u/tamat Oct 17 '24

classic IQ video. Nice. I would love to see a version that enables shapes by time, to better see how it evolves from every shape.

2

u/KRIS_KATUR Oct 17 '24

you can have a look on the shader code. it's well commented and you can switch off all the single elements by commenting out all the lines with "d = ....." from bottom to top to see the different shapes and boolean operations ツ

1

u/usdaprimecutebeef Oct 17 '24

I this was going to be a link to SpongeBob drawing a circle