3 ms·
Interesting, is there the opposite? Where I add the mesh and it will generate the function for me?
by AHOHA 3y ago
Interesting, is there the opposite? Where I add the mesh and it will generate the function for me?
- frading 3y agoyou can generate an SDF from a mesh with Polygonjs ( https://polygonjs.com https://polygonjs.com ). Here is an example scene ( https://polygonjs.com/examples/bynode:mat:raymarchingbuilder:sdffromobject https://polygonjs.com/examples/bynode:mat:raymarchingbuilder... ). It won't generate a function, though. Instead it creates a 3D texture which is used inside the raymarching material. In my experience this is much more performant, and also art-directable. (disclaimer, I'm building Polygonjs)