SDF surface as emitter position?

Is there a way to use an SDF as the positions for a ProbabilityEmitter? I would love to use a random position on the surface of a SDF as the positions for the emitter.

I saw there is a ClosestPointOnSDF node. So I guess a SphereRandom and then ClosestPointOnSDF, but that on its own doesn’t seem to do it.

Does anyone have a hint on how to make it work?

Thanks

ps: just getting started with Fuse, so lot of noob questions incoming…

This looks fine, maybe you need to press f9, changes to the emitter might need a recompile. On closestPointOnSDF try to reduce the iteration count as far as you can for better perf.

1 Like