For those who don't know what SDFs are, this:
https://www.youtube.com/c/InigoQuilez
should explain everything.
The programming there is hardcore but I've noticed several repeating patterns and, being a long time PovRay user, I wondered if I could invent a language to describe SDFs.
And this is roughly where I'm at.
full size
Code: Select all
camera (0 0 20) (20 45 40) 10
(
translate (0 0 -1)
cylinder 100 1 0
)
(
(
color yellow
translate (0 0 20)
repeat (5 5 5) (2 2 2)
sphere 5
)
intersection 0
translate (0 0 20)
color green
sphere 20
)
full size
Code: Select all
camera (0 0 0) (80 60 50) 10
(
translate (0 0 -1)
cylinder 100 1 0
)
(
color green
translate (0 0 10)
(
rotate x 45
box (20 5 5) 1
)
translate (0 10 0)
(
rotate x 45
box (20 5 5) 1
)
union 5
color yellow
(
rotate y 45
box (5 20 5) 1
)
)
full size
Code: Select all
camera (0 0 30) (160 10 30) 10
(
translate (0 0 -1)
cylinder 100 1 0
)
(
union 2
symmetry x
(
union 2
translate (0 0 40)
ellipsoid (6 3 5)
(
translate (2.5 2 -3)
rotate y -10
ellipsoid (3 2.5 3.5)
)
translate (0 0 8)
ellipsoid (5 3 8)
)
(
union 2
translate (4.5 0 0)
translate (0 0 40)
rotate y 5
translate (0 0 -10)
ellipsoid (3 3 10)
translate (0 0 -8)
rotate y -5
translate (0 0 -8)
ellipsoid (2 2 8)
translate (0 0 -8)
rotate x -90
translate (0 0 -3)
ellipsoid (1.5 1 4)
)
)
https://sourceforge.net/projects/snes9l ... z/download
Or better yet, visit:
https://www.shadertoy.com/
or some other more official resource and then share your occult knowledge about SDFs with me.