|
|
|
|
|
by dymk
1703 days ago
|
|
That's very cool, thank you for explaining it to me. I'm curious if there's any downsides to such a scheme for representing solids compared to BREP, and the kinds of primitives it supports. E.g how easily can it represent a loft between two arbitrary faces - it's not immediately clear how to represent that with a SDF (but my SDF-foo is admittedly not very strong). These are questions that I'm sure will be answered by me reading the documentation more closely. |
|
if(z<z1) L=a(x,y)
elif(z>z2) L=b(x,y)
else L=((z-z1)/(z2-z1))*a(x,y)+((z2-z)/(z2-z1))*b(x,y)
For way way more info, you might like https://iquilezles.org/www/articles/distfunctions/distfuncti...