Questions tagged [perlin-noise]

Perlin noise is procedurally generated gradient noise. As its characteristics can be controlled, it is used mainly in visual effects.

Perlin noise is described in more detail in this Wikipedia article.

422 questions
0
votes
1 answer

Perlin noise values in different x, y dimensions all seems to approach 0.5 together as z offset is changed

I created this little animated Bezier sketch with Perlin noise. Any ideas why all of the points (in different 2d space) approach 0 all at once at seemingly regular intervals? z offset changes by .005 every…
shramee
  • 5,030
  • 1
  • 22
  • 46
0
votes
2 answers

I'm trying to port a 1D perlin noise tutorial on C++

I'm trying to port a 1D perlin noise tutorial on C++ using SFMl lib : (tutorial link in javascript) https://codepen.io/Tobsta/post/procedural-generation-part-1-1d-perlin-noise However this doesn't work, i don't get any error but this is what i get :…
Kizeko
  • 11
  • 2
0
votes
0 answers

detection cluster center from perlin noise like imgs

I've been working on a pixel img extract by using gauss filter from raw pic. By searching online I couldn't find any solution to detect how many cluster center or contour lines center from such pixels. A similar answer from here provided by…
Ink
  • 11
  • 1
  • 4
0
votes
1 answer

My "perlin" noise effect shader produces either all-white or all-black

I'm trying to code a "perlin" noise shader in NVidia FX Composer. However, no matter how I tweak the noise function, it returns either 100% white or 100% black. I have no clue how to solve this or even where the problem is. Edit: If you've seen This…
Narf the Mouse
  • 1,541
  • 5
  • 18
  • 30
0
votes
1 answer

Why doesn't this noise function handle negative arguments?

I have code adapted from "Improved" Perlin noise double improved_noise (double x, double y, double z) { // Calculate the "unit cube" that the point asked will be located in // The left bound is ( |_x_|,|_y_|,|_z_| ) and the right bound is…
spraff
  • 32,570
  • 22
  • 121
  • 229
0
votes
1 answer

What is wrong with my perlin noise function?

So I am currently working on a perlin noise generator, for some reason I'm getting incorrect output: The perlin noise is in a "grid" and does not resemble traditional perlin noise. Here is my code: var perlinNoise = { vectors:…
0
votes
1 answer

Minecraft like terrain in unity3d

I'm a fan of Minecraft's old terrain generation with amazing overhangs, mountains and generally interesting worlds. My problem is that right now I'm using perlin noise, which while good for smooth terrain doesn't really give sporadic jumps that…
PotatoPie
  • 1
  • 2
0
votes
1 answer

I can't turn my perlin noise map generator into a pygame tilemap for my game

I started off by generating a tilemap using this method: for rw in range(tilesettings.mapheight): for cl in range(tilesettings.mapwidth): randomNumber = random.randint(0,15) if randomNumber == 0: tile =…
0
votes
1 answer

Perlin noise not working (p5js)

I'm using P5.js and the Perlin noise() function to try and draw a circle with Perlin noise generated x and y coordinates. I don't get any error messages but nothing is drawn on the canvas. What am I doing wrong? let width; let height; function…
0
votes
1 answer

Trying to create a 3D voxel terrain, and I am trying to create random seeds rather than the same seed multiple times

I am trying to figure out how to randomize my Perlin noise in C# but cannot find a way to do so with the code I currently have. Here is my code: using System.Collections; using System.Collections.Generic; using UnityEngine; public class…
Couches
  • 11
  • 2
0
votes
0 answers

Create random pattern gradient maps?

So I have been working on some procedural generating and i managed to create a circular monochrome gradient map which i use to generate other maps. def create_circular_gradient(self, world): center_x, center_y = self.mapSize[1] // 2,…
Nick
  • 545
  • 12
  • 31
0
votes
1 answer

Perlin Noise repeating pattern

My problem that my perlin noise is repeating itself very obviously in very small spaces. Here is an image of what it going on. I know that this does happen after a certain point with all perlin noise, but it seems to be happening almost immediately…
Sprockget
  • 1
  • 4
0
votes
1 answer

Perlin Noise shows lines between unit squares

As said in the title, my problem is that my perlin noise is showing clear lines between the unit squares instead of flowing smoothly. My code, which is very basic, is shown below. It is based on the simple explanation from this site:…
Sprockget
  • 1
  • 4
0
votes
1 answer

First attempt at bare bones perlin noise

Iv been trying to understand noise for a very long time and I think I finally found someplace that can explain it to me. I have looked at the complex algorithms for too long, so I decided to go off the bare, English explanation of how noise is…
Sprockget
  • 1
  • 4
0
votes
1 answer

Voxel circles using a noise function

I'm creating a 2D space game where the map is made up of square tiles. I would like a noise function that I can use to generate circular planet, by circular planets I mean 'circles' made out of squares (basically like a circle in Minecraft). The…