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

How to create a hash function for use in noise generation

I am fooling around with noise functions lately, namely perlin noise and simplex noise. I do not have any questions about the noise algorithms since I've got them up and running, but I have some question about the hash method that ken perlin…
pulp_user
  • 2,454
  • 3
  • 14
  • 18
5
votes
2 answers

Procedural terrain programming in Unity 3D

I am trying to get along with procedural generation, I definitely not a pro in unity, however I was following this guide: click and got some results. For now I have 2 problems, I have some basic idea how to resolve them, however I would like to…
5
votes
2 answers

Lua - Perlin Noise Generation - Getting bars rather than squares

I'm currently learning Löve 2d/Lua and trying my hand at generating noise using the Perlin Noise algorithm. I've adapted Ken Perlin's Improved Noise code here: Code edited with fixes per Doug's answer -- original code by Ken Perlin:…
GHandel
  • 172
  • 2
  • 3
  • 13
5
votes
2 answers

Perlin Vs. Fractal Vs. Turbulent Noise

I know what Perlin noise is (I wrote some code to generated it). I believe fractal noise is scaled and summed Perlin noise, is that correct? I sometimes see Turbulent noise and Perlin noise in the same article, but then the article does on to talk…
RichardBruce
  • 641
  • 2
  • 10
  • 19
5
votes
2 answers

Questions regarding Perlin noise (how it works)

I'm currently trying to learn Perlin noise, specifically 2D noise for terrain generation. I've been reading articles online over the past few days, but they don't all seem to agree on how Perlin noise works, and the ones that do seem authoritative…
Nairou
  • 3,585
  • 5
  • 29
  • 47
5
votes
4 answers

How to create a fractal cube?

I would like to render volumetric clouds in OpenGL. I found an interesting paper that describes a simple technique to render volumetric clouds. (http://www.inframez.com/events_volclouds_slide18.htm) However I don't know how to create their "fractal…
Franck Freiburger
  • 26,310
  • 20
  • 70
  • 95
4
votes
1 answer

What is the range of improved Perlin noise?

I'm trying to find the theoretical output range of improved Perlin noise for 1, 2 and 3 dimensions. I'm aware of existing answers to this question, but they don't seem to accord with my practical findings. If n is the number of dimensions then…
Pepijn Schmitz
  • 2,143
  • 1
  • 17
  • 18
4
votes
2 answers

Version of Improved Noise keeps returning 0

I'm trying to implement Improved Noise in my XNA game, but my Improved Noise function keeps returning 0.0f. It's the exact same code as Ken Perlin's (http://mrl.nyu.edu/~perlin/noise/), just ported to C#. I've tried rewriting the class and even…
user830713
  • 155
  • 2
  • 6
4
votes
2 answers

Help with using the perlin noise library libnoise

When I call libnoise's getvalue function with x, y, and z as integers I always get 0 back as a result. Is this normal? When I try 1.25, 0.75, 0.5 as in the tutorial http://libnoise.sourceforge.net/tutorials/tutorial2.html I get the expected result…
Xavier
  • 8,828
  • 13
  • 64
  • 98
4
votes
1 answer

SKTileMap getting Values from GKNoiseMap

ive been following the Apple Docs on GKNoiseMaps and i managed to get an image to spawn and it looks really good using this code here class GameScene: SKScene { class Noise: GKNoise { var NoiseSource = GKPerlinNoiseSource(frequency: 0.05,…
E. Huckabee
  • 1,788
  • 1
  • 13
  • 29
4
votes
0 answers

What is the math / function behind the wiggle expression in After Effects?

Looking at the docs, I see that it takes octaves as an argument leading me to think it might be based on perlin noise? My guess would be, wiggle( freq, amp, octaves, amp_mult, t ) { current_time = t + time; noiseDetail( octaves, amp_mult ); …
Jet Blue
  • 5,109
  • 7
  • 36
  • 48
4
votes
1 answer

Perlin Noise algorithm does not seem to produce gradient noise

I am attempting to implement Perlin Noise in c++. Firstly, the problem (I think) is that the output is not what I expect. Currently I simply use the generated Perlin Noise values in a greyscaled image, and this is the results I get: However, from…
CodingBeagle
  • 1,888
  • 2
  • 24
  • 52
4
votes
1 answer

Fixed Point Perlin Noise returns sum of input points as output

I have taken the fixed-point perlin-noise implementation from: http://mrl.nyu.edu/~perlin/noise/INoise.java and modified it slightly so it compiles under c#. In this version 1.0 is represented by 2^16. When I pass in input coordinates (int x, int…
ShaunAU
  • 41
  • 4
4
votes
2 answers

GLSL - Using a 2D texture for 3D Perlin noise instead of procedural 3D noise

I implemented a shader for the sun surface which uses simplex noise from ashima/webgl-noise. But it costs too much GPU time, especially if I'm going to use it on mobile devices. I need to do the same effect but using a noise texture. My fragment…
Nolesh
  • 6,848
  • 12
  • 75
  • 112
4
votes
3 answers

Perlin noise for terrain generation

I'm trying to implement 2D Perlin noise to create Minecraft-like terrain (Minecraft doesn't actually use 2D Perlin noise) without overhangs or caves and stuff. The way I'm doing it, is by creating a [50][20][50] array of cubes, where [20] will be…
Rei
  • 512
  • 1
  • 7
  • 18