designcoding
About Table of Contents Keywords Monthly Archive
Support designcoding!

Perlin Noise Generator

August 20, 2023 | Algorithms
#grasshopper #noise #perlin

Perlin noise is a gradient noise function that has been widely used in computer graphics, procedural generation, and various other applications to generate natural-looking patterns. Here is my brief exploration of the Perlin Noise Generator. Although I didn’t fully follow the traditional steps the result looks similar. I started with the square grid and generated random gradient vectors on every grid corner. Then, I implemented the original algorithm’s dot product method. To calculate the value of a point in this 2D space, I choose the four closest vectors. Plus, I created four more vectors that have tails on the corners and tips on the point in question. Then, I calculated the dot products between these four corners and four gradient vectors. After this, I quit using the traditional algorithm (the interpolation and ease function). Instead, I finished the algorithm by just calculating the linear interpolations of those dot products.

Perlin Noise Generator animation

This Grasshopper definition generates random terrain models by using my noise generator explained above. I used the Move and Mesh components to generate the result. You can play with the overall height multiplier to make it more mountainous or flat. The output is a single mesh surface in Rhinoceros. The code is using native Grasshopper components. Thus, no add-ons are necessary for it to work.

Perlin Noise Generator Grasshopper definition
Perlin Noise Generator grasshopper, noise
Grasshopper 1.0 definition (GH)Download

Cite this post

Yazar, T. (2023, August 20). Perlin Noise Generator. designcoding. Retrieved December 3, 2026, from https://www.designcoding.net/perlin-noise/

Related Posts

Wave Generator

April 17, 2024

Here is a wave generator code I developed using Grasshopper and Python. While searching for a solution to the realistic water simulations, I came up with the Gerstner Waves. I tried to implement it. However, I came up with this final result, which is not a Gerstner Wave generator, but a much simpler one. It combines many user-fed wave components and calculates the resulting single wave. I played with this code for hours with different components. So, it is worth…

Lorenz Attractor with Grasshopper Python

November 26, 2026

In 1963, meteorologist and mathematician Edward Lorenz modelled the thermally driven motion of atmospheric air currents. He used the set of chaotic solutions to a system of nonlinear differential equations, called the Lorenz attractor. Known for its butterfly-wing geometry when plotted in three-dimensional space, it is one of the most famous examples of deterministic chaos. I finally managed to spend 3 hours from my life for this model, which had been sitting on my to-do list for a long time….

Interlocking Torus

November 25, 2026

Interlocking torus models kept popping up on my YouTube feed (such as this and this). Among the Grasshopper experiments sitting in my archive, I found this script I started back in 2012 and only managed to finish now. It took 14 years there, and two hours here, just like Interstellar. When we look at a torus surface, the first sections that come to mind are always familiar ones: slice it horizontally and you get horizontal circles; slice it vertically and…

Hexagonal Star Pattern

November 14, 2026

Sharing the latest scary pattern from my old pattern archive. This time, instead of using Parakeet, I designed it using only standard Grasshopper components. We start with a hexagonal grid. We exploded the cells of this grid and found the midpoint of each edge. By connecting these midpoints, we again created closed polylines. Then, we exploded these closed polylines, turning them into a sequence of data lists. Next, we place a point on each exploded segment (reparameterized with a t-value…

Emergent Polygons Revisited

November 14, 2026

15 years ago today, on my older son Mete’s 5th birthday, I started writing the designcoding.net blog. My first post was titled “Emergent Polygons.” Back then, I had just started learning a new language called Grasshopper. I was working on defining emergent polygons, one of the key issues in the theory of Shape Grammars, using Grasshopper. I updated the GHX code to GH and re-posted it in 2024. Now, exactly 15 years and exactly 600 posts later, Mete turned 20…

  • Chapters

    • Algorithms
    • Discourses
    • Escapes
    • Fabrications
    • Studios
  • Explore

    • Table of Contents
    • Monthly Archive

    • All Keywords
    • #pattern
    • #rhino-python
    • #polyhedra
    • #vector-field
    • #interlocking
    • #parakeet
    • #sphere
    • #design-education
    • #calculus
    • #attractor
    • #fractal
    • #kuka-prc
    • #robot
    • #polygon
    • #lace
    • #facade
    • #wave
    • #frege
    • #gauss
    • #voronoi
  • Search

  • Support designcoding!

  • Enjoying designcoding? Support me on Patreon to keep it growing. Thank you!

  • copyright 2026 designcoding.net | about | privacy policy | end user license agreement