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 function - values way out of range

So, I've been trying to use Perlin Noise in my project, and bizarrely the noise function outputs mostly values way out of the [-1, 1] bounds. I've implemented it in C through Perlin's code for his improved noise in Java, and another useful…
bieux
  • 15
  • 5
0
votes
1 answer

what version of perlin noise does Unity use?

Fond out that there is not one but 2 versions of Perlin noise as seen here Since the second one is the improved version of the first one, I was wondering witch one Unity3D is currently using as I use it quite a lot and was wondering if I should make…
0
votes
1 answer

How to change the colors in this THREE.js demo

I just found this beautiful demo on codepen, but I don't know how to change the colors of the sphere - I mean the blue and purple colore, not the background color I know how to change that! Here is the demo: Link to the demo JavaScript experts…
Ershad Qaderi
  • 441
  • 4
  • 11
0
votes
1 answer

Making a procedural terrain with Transvoxel/Marching cubes and 3D perlin noise

I'm working on an implementation of Transvoxel and it works fine, but I can't get on with the noise. Now I'm generating a 2d heightmap using perlin noise and using the heightmap I'm setting the cell values, but I don't have any idea on how to…
Statey
  • 631
  • 5
  • 10
0
votes
0 answers

Shifting image behind perlin noise flow field doesn't work in Atom

I would really appreciate it if someone could help me out. I made a Perlin Noise flow field in Atom. Behind that flow field I set an image and that worked fine. But when I want to make that image shift a bit to the right after x seconds (and back),…
blob
  • 11
  • 1
0
votes
1 answer

Perlin Noise is not Gaining Depth with More Octaves

I am new to Perlin noise and I have hit a roadblock. The perlin noise function I have translated from C++ seems to work correctly for one octave, however I have found that the lower octaves of noise aren't added to the original Perlin Noise. Here is…
Hunter
  • 201
  • 3
  • 17
0
votes
1 answer

Why is this Perlin Noise image smoother than the other?

An exercise in Shiffman's Nature of Code asks me to create Perlin Noise using Processing's noise() function. Here's my code I made to create Perlin Noise float xSpace = 0; // Signifies "space" between noise() values on the x coordinate. float…
Alex Fidel Chen
  • 85
  • 2
  • 10
0
votes
0 answers

Perlin Noise implementation that doesn't require doubling permutation table

Many implementations of Perlin Noise I saw, double the permutation table, because index might be out of the [0, 255] range. private static readonly int[] p; static Perlin() { p = new int[512]; for(int x=0;x<512;x++) { p[x] =…
bitinn
  • 9,188
  • 10
  • 38
  • 64
0
votes
1 answer

Make Perlin Noise Scaleable

I got a perlin noise algorithm and an opensimplex noise algorithm that returns a double based on the X and Y values given. I'm designing software and I would like to know how to: Scale the perlin noise with a 0-1 double value Allow building the…
frogocomics
  • 41
  • 1
  • 5
0
votes
1 answer

Draw and get OpenSimplexNoise result

I want to generate a random terrain with OpenSimplexNoise. To start I just want to get a result and draw it to a window. My question is now: How can I get the correct output of OpenSimplexNoise (cause there are many methods and I just don't know…
ShadowDragon
  • 2,238
  • 5
  • 20
  • 32
0
votes
0 answers

Perlin noise generator generates high-contrast noise

I've been following the book "Raytracing: The next week" by Peter Shirley. I have trouble implementing his perlin noise generator. I get results with a contrast that is way higher than his, and I'm not sure why. namespace SharpRays.Utilities { …
Herbstein
  • 309
  • 4
  • 12
0
votes
0 answers

Using perlin noise field, to get random positions for objects to spawn

I am trying to make a system that uses a perlin noise field to generate random positions that are then saved, or saved as the are generated, to a list. Then using that list the game will use those positions to spawn in objects within the level. I…
0
votes
1 answer

How to use an array of two dimensional float arrays?

I've tried using the generic list but my research said that the enumerator for the List could not be reset so that wont do since I need to iterate continuously over a list of float [,]. I essentially want to cache 10 different perlin noise maps that…
0
votes
1 answer

Perlin Noise block grid

I encountered a problem trying to compute Perlin noise using an OpenGL fragment shader. The result is blocky and not continuous at all. I'm trying to use this kind of implementation: I can't figure out the problem, here is my fragment shader…
JimZer
  • 918
  • 2
  • 9
  • 19
0
votes
1 answer

How do I get the "terrain" in Three.js to appear 3D?

I am working on creating a 3D terrain using Three.js and ImprovedNoise.js. Using the examples on the Three.js site I have managed to create what appears to be terrain but it is 2D (not expanding into the z-axis). While trying to create this scene I…