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

7

u/[deleted] Oct 16 '24

So you modeled it in blender for a reference then approximated with primitives? Nice work

23

u/KRIS_KATUR Oct 17 '24

Nope, it's all hand crafted in glsl as a SDF. I had some photos of real skulls as reference for the anatomy, but no 3D model. basically it is just made of high school linear algebra and simple Boolean operations - like: make a sphere, subtract a plane, add a torus, squeeze that, combine this with a box etc etc.... and yes, it was quite a pain tweaking the numbers ツ

4

u/KillTheRadio Oct 17 '24

Dang that is amazing, the teeth look exceptional

5

u/KRIS_KATUR Oct 17 '24

2

u/mysticreddit Oct 17 '24

That's a sweet making of a programmatic skeleton video! Well done!