Where/how to modify voronoi metric?

I'd like to use a couple different formulas for the metric on voronoi's noise plugin. But, I have no idea where or how to modify that. I'm hoping it's just a very simple formula I can recognize and modify, like sqrt(x^2 + y^2 + z^2) or something like that.

1 love
Reply
  • Martin Bergwerf replied

    https://cgcookie.com/community/11854-distances-in-voronoi 

    Read the EDIT, because in the picture I made a mistake.

    1 love
  • Sid Edwards(soundstormlabs) replied

    Thanks for posting that. But, how do I go about editing or adding a new metric within Blender's code or a new script node?

    1 love
  • Martin Bergwerf replied

    HI sid, what formula are you thinking of; you already have countless metrics available in the Node.

    You might be able to recreate a Voronoi Texture, with a crazy custom distance function, via OSL, but that's way beyond my capabilities. The other option would be to download blender's source code and do the same in C/C++. That has the advantage that you can reuse part of the code for the Voronoi.

    1 love