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
13
votes
1 answer

3D Perlin noise analytical derivative

I am currently implementing a 3D Perlin noise bump mapping using Shader Model 4 (DirectX 10 HLSL). Generating the noise itself is not a big problem (there are tons of tutorials and codes around) but what I have not found are analytical derivatives…
Karel Petranek
  • 15,005
  • 4
  • 44
  • 68
13
votes
2 answers

Perlin Noise detail level. How to zoom in on a landscape?

I've written my own Perlin Noise implementation and it works well. I can 'zoom' in and out by changing the frequency, but as I zoom in the noise gets smoother and smoother. Assume I have a landscape that displays a continent. I want to zoom in down…
Jason
  • 1,225
  • 2
  • 16
  • 18
12
votes
3 answers

How Do I Fill a 2D Array With Perlin Noise?

I've devised a small personal project to help me learn how to use Perlin Noise. This project involves filling a 2D array of r rows and c columns with random, coherent data generated with a Perlin Noise algorithm. Now, I've just spent hours reading a…
Sonic42
  • 689
  • 1
  • 14
  • 21
12
votes
1 answer

Wrapping 2D perlin noise

I'm working with Perlin Noise for a height map generation algorithm, I would like to make it wrap around edges so that it can been seen as continuous.. is there a simple way or trick to do that? I guess I need something like a spherical noise so…
Jack
  • 131,802
  • 30
  • 241
  • 343
12
votes
2 answers

Wrote some perlin noise kind of code, it looks blocky

The previous answered question doesn't seem to answer my problem "Blocky" Perlin noise I tried to simplify the most I could to make my code readable and understandable. I don't use the permutation table, instead I use the mt19937 generator. I use…
jokoon
  • 6,207
  • 11
  • 48
  • 85
12
votes
2 answers

Output range of Perlin noise

I'm investigating a few of the various implementations for coherent noise (I know there are libraries, but this is mostly for my own edification and curiosity) and how you can use it, and there's one problem I have with the original Perlin noise…
Oskar
  • 889
  • 7
  • 20
10
votes
2 answers

Uniform distribution from a fractal Perlin noise function in C#

My Perlin noise function (which adds up 6 octaves of 3D simplex at 0.75 persistence) generates a 2D array array of doubles. These numbers each come out normalized to [-1, 1], with mean at 0. I clamp them to avoid exceptions, which I think are due to…
Superbest
  • 25,318
  • 14
  • 62
  • 134
10
votes
4 answers

How is Perlin-noise in flash implemented?

Over at gamedev.SE we discovered that the flash implementation of Perlin-noise seems to deviate quite a bit from other implementations. I didn't find any implementation details online, but I wondered if anybody can tell which algorithm is being used…
bummzack
  • 5,805
  • 1
  • 26
  • 45
10
votes
3 answers

How to make a smoother Perlin noise generator?

Using a Perlin noise generator to make the tiles of a map the noise is too spiky. It has many elevations and no flat places. They don't look like mountains, islands or lakes; they are random with a lot of peaks. 1D: def Noise(self, x): # I wrote…
Ender Look
  • 2,303
  • 2
  • 17
  • 41
9
votes
1 answer

On-the-fly Terrain Generation Based on An Existing Terrain

This question is very similar to that posed here. My problem is that I have a map, something like this: This map is made using 2D Perlin noise, and then running through the created heightmap assigning types and color values to each element in the…
Maltor
  • 553
  • 6
  • 16
9
votes
1 answer

Cliffs terrain generation in minecraft-like game

I want to generate something like this: I use Perlin Noise with sharp curve, my code produces those cliffs: . for (int x = 0; x < sizeX; x++) { for (int z = 0; z < sizeZ; z++) { int floorY =…
Vlad
  • 3,001
  • 1
  • 22
  • 52
9
votes
1 answer

Perlin noise gradient function

I'm looking to adapt the 3D Perlin noise algorithm to lower dimensions, but I'm having trouble with the gradient function, since I don't fully understand the reasoning. The original Perlin gradient function takes four arguments: a hash and a…
Matthew Piziak
  • 3,430
  • 4
  • 35
  • 49
8
votes
4 answers

What content have you made/seen made using procedural techniques

I was looking at some study i have to do in the future to do with procedural generation techniques and i was wondering what type of content you have: Developed Helped Develop Seen implemented Tried to develop and what methods/techniques/procedures…
Craig
  • 1,199
  • 1
  • 13
  • 27
8
votes
2 answers

"Blocky" Perlin noise

I've recently been trying to implement a Perlin Noise generator in C (based off Ken Perlin's website, using the SDL library as a screen output), but the output shows that the edges between interpolation blocks are not continuous or smooth - the…
MVittiS
  • 434
  • 3
  • 13
7
votes
3 answers

Generate procedural\perlin noise in matlab

I am looking for a simple way to generate something similar to procedural\perlin noise in matlab. It just needs to have the general perlin noise traits, not to replicate ken perlin's method exactly.
olamundo
  • 23,991
  • 34
  • 108
  • 149
1
2
3
28 29