Perlin Noise implementation

Up to today, I think there is no direct implementation or 'component' in GH of the Perlin Noise function. I wonder if anyone has tryed to program it via script or clusters. Anyway, it might be a nice further addition to GH.
Load Previous Replies
  • up

    Evert Amador

    Giulio has written a perlin and simplex noise components, he'll make these public sometime in the future in the meantime send me an email.

    cheers

    Evert
    • up

      Giulio Piacentino

      Hi JLX,

      in the Grasshopper scripting on RhinoCommon here at McNeel Europe I teach to program a component that does this, in C# and Vb.Net. Grasshopper contains a 1D Perlin noise function (similar to sines summations), but this functionality cannot be directly extended to more dimensions.

      I am attaching this additional assembly that forms smooth Perlin noise and Simlex noise, two very well-known smooth noise functions studied by Ken Perlin. Inputs are:

      - a point pt: the location to sample
      - a number (double) t: the "location" in time
      - a scale (number): a multiplier to change the scale of the values passed by pt and t

      To install this component:

      - download PerlinSimplexNoise.gha to your desktop
      - right click the file and choose "Unblock" (might not be necessary, but please do it)
      - from the Grasshopper interface, choose File -> Special folders -> Components Folder.
      - move PerlinSimplexNoise.gha to that folder (ends with "\Libraries")
      - restart Rhino. You'll find the components in the Math tab!

      If you want to know more, I suggest to check Simplex noise demystified, by Stefan Gustavson.



      - Giulio
      __________________
      giulio@mcneel.com
      McNeel Europe, Barcelona

      New release on Food4Rhino
      8
    • up

      Garcia del Castillo

      Amazing, thanks a lot Giulio. You rock!
      1