Where/how to modify voronoi metric?

Forum Archive Where/how to modify voronoi metric?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #19962
    Sid Edwards
    Participant

      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.

      #94110
      Martin Bergwerf
      Participant

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

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

        #94111
        Sid Edwards
        Participant

          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?

          #94112
          Martin Bergwerf
          Participant

            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.

          Viewing 4 posts - 1 through 4 (of 4 total)
          • The topic ‘Where/how to modify voronoi metric?’ is closed to new replies.