Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [perlin-noise]

Perlin noise is an algorithmic (computer-generated) effect developed by Ken Perlin, often used for simulating elements in nature and for procedural terrain generation, especially in situations with low levels of memory. It is also pseudo-random, and can be in any number of dimensions. An improved version of this now exists, also developed by Ken Perlin, and also covered by this tag - simplex noise.

4
votes
1answer
71 views

Fastest way to regroup every cell with the same value into a cellular noise

I'm working on a Map Generator, who are computed based on multiple height-map (I'm using FastNoise Asset on Unity Store to get all data) and they are split into Chunk. Some noises are "cellular" and ...
0
votes
0answers
16 views

Trying to understand the range of Improved Perlin noise

I've been implementing Improved Perlin Noise for a small library I'm writing. Everything was hunky dory when it was just in the 3rd dimension, but I recently expanded to the 1st, 2nd, and 4th ...
0
votes
0answers
30 views

How can I diminish my voxel terrain's height smoothly instead of randomly?

I have a script that is supposed to diminish height smoothly when an int is lowered, I tried perlin noise to make it lower like it would if it where terrain, which is the goal I'm after, but it only ...
0
votes
1answer
34 views

Understanding the “gradient” in Perlin Noise

If I didn't get it wrong from the wikipedia, the word "gradient" should represents either the derivative for continuous functions, or the differential for discrete functions. To rebuild the original ...
0
votes
1answer
77 views

C# 2D Perlin Noise Heightmap By Seed

I need a function of 'Perlin Noise' in this format: public int PerlinNoise_maxY(int seed, int x, int z) { // ... } The function gets Seed, X cordinent and a ...
2
votes
2answers
159 views

Generating different maps using Perlin Noise with a seed

I am developing a 2D game in python and I could get Perlin Noise working with this code: ...
2
votes
1answer
124 views

Perlin Noise generation always returning zero

I am using noise and I can't get Perlin Noise working, only the Simplex Noise. So far I got this: ...
0
votes
1answer
75 views

how to use 2D noise with a voxel sphere

I have a bunch of voxels, lets just say 64x64x64, that I use to create a sphere/planet. This works very well, but once I try to apply noise to create a more interesting terrain things go wrong. 3D ...
1
vote
1answer
298 views

How to distort 2d perlin noise?

I am using Unity's 2D Mathf.PerlinNoise(x, y) function and I would like to make it distorted. What I mean is described with this picture I made: How can I do that? ...
4
votes
3answers
652 views

How can I tile Perlin noise to more accurately represent a world map?

I'm currently working on my game. I would like to generate the world map with Perlin noise, and wrap it just like a real world map. I've found a algorithm to create a map wrapped along X and Y axis: ...
0
votes
2answers
248 views

How can Perlin Noise be modified to not tile?

In vanilla perlin noise, the texture repeats after 256 coordinates, due to the way it picks a gradient vector. In games that require an infinite procedural world, however, this is not an acceptable ...
0
votes
1answer
113 views

Perlin Noise Problem with Falloff

I know this might be a bit of a noob question, but I can't figure out what I'm doing wrong, and the math that I have done should make this work correctly. I am trying to make a perlin noise map that ...
0
votes
2answers
241 views

Perlin noise terrain: 3 coordinates from one

I am making a game with procedural terrain, like minecraft. I have a perlin noise function which takes one integer and returns a number between zero and one. However, for terrain, I need a single ...
6
votes
1answer
284 views

3D terrain generation: geological slices and noise function

Everyone knows how to use Perlin noise to generate the surface of a 3D world. You may use one or several octaves to generate more detail. It is also known how to use 3D Perlin noise to generate, to ...
1
vote
1answer
241 views

Applying Perlin Noise to Tiles

Playing with some Documentation about Perlin Noise i managed to create this map: Nothing different from other Procedural Generated Maps. It is a HeightMap with colours at given heights. The problem ...
0
votes
1answer
47 views

The GameObject transform automatically sets to (0, 0, 0) when i apply Perlin Noise

I am learning how to use the Perlin Noise with some Documentation. So far i mostly understood quite a lot. Here i post the codes in order: The Noise Code ...
1
vote
0answers
209 views

Unity - PerlinNoise same x,y values, different output

For a project I am working on, I am making infinitely generating terrain, similar to the way Minecraft terrain is generated. This means I am generating chunks of 16*16. Because I need to know if the ...
0
votes
1answer
132 views

Getting the top layer of 3D perlin Noise

I am generating 16x16x64 chunks. Afterwards I apply 3D noise to them. I want the first layer to be all grass blocks and after those I want layers of dirt. The current problem is that I am getting ...
3
votes
1answer
554 views

Zooming in on procedural generated 2D terrain? (LOD)

My question is what methods are there to "zoom in" on a procedurally generated map using Perlin Noise (or Simplex). If I have for example this generated and I wanted to "zoom" into that little red ...
5
votes
2answers
800 views

Procedurally generated terrain that has some caves

I want to generate a terrain that has a few overhangs, and some caves. So a simple height field from a 2D noise is out, as there would be no overhangs. The other extreme, to define a world from a 3D ...
1
vote
1answer
3k views

Minecraft style world generation

I want to generate a world like minecraft's with an algorithm that treats every block separately. I want the world generator to be a single large function that takes in the x,y,z coordinates and ...
0
votes
1answer
197 views

I have a Unity addon that generates noise via a shader. How can I use it besides just dragging it onto a mesh?

I'm probably asking this question wrong. I'm using Turbulence Library to generate noise as shaders. What I want to do is take the noise generated by these shaders and apply them to Texture2Ds that I'm ...
3
votes
2answers
280 views

How can you use Fractals to perturb an image?

I've been playing around with Procedurally Generated World. I've so far managed to create the Height Map, and a translate map, but now i'm attempting to create Caves, The main idea is to use another ...
0
votes
1answer
598 views

Perlin noise terrain generation with integer (discrete) elevation levels results in artifacts at rounding boundaries

I am trying to generate terrain with discrete height levels using Unity's built in 2D Perlin noise function. The output is a float in [0,1]. I then scale the float linearly to a range [minimum Height, ...
2
votes
1answer
157 views

Determine the startposition for Perlin worms

I want to implement Perlin worms for the level generation of my 2D game and I was wondering, which options exist to find the startposition for the worms. My idea was to randomly start zero to X (...
-1
votes
1answer
365 views

Perlin noise always produces the same map. How do I generate a different map?

My tile map takes a spritesheet, slices the tiles up based on a resolution, and assigns each tile to an array, which uses an integer. Since perlin noise generates a float between 0 and 1, I multiply ...
5
votes
4answers
552 views

How to make noise-generated terrain more square?

I use a perlin noise generator to create a map. All works fine and dandy. It uses the following formula: Generate perlin noise Posterize the height values to be an integer between 0 and 5. What I ...
6
votes
1answer
365 views

Perlin Noise unwanted artifacts

I am trying to write a perlin noise class with c++ and sfml, but I am experiencing unwanted visual artifacts in the output. In the image, there are obvious lines being drawn between the points of the ...
0
votes
2answers
390 views

Generate random point inside Perlin noise?

I’m working on terrain generation for a game of mine and has run into a slight problem. The terrain itself within the game procedurally generates as your character moves around. This means that all ...
1
vote
1answer
308 views

Marching cubes with destructible environment

I've been spending a lot of time over the past few days finding out information about the marching cubes algorithm and I'm pretty sure I understand it. My game would be using chunks of land with the ...
0
votes
1answer
106 views

Only first vertex of data used in shader OpenGL

I'm making a voxel game like Minecraft which was working fine until I added water. Then I realized that whatever the texture was for the first visible block was applied to the rest of the blocks in ...
-1
votes
1answer
324 views

Could I use Perlin Noise to generate a random musical melody? [closed]

Wouod it be possible to use a perlin noise function that generated random musical melodies? It would need parameters directing range and key changes. If so, with what platform/language?
1
vote
1answer
547 views

How does this hash function work in this perlin noise implementation?

In Perlin's implementation of his noise function, he uses an array to hash the input coordinates and later find the gradient vectors. But in Stefan Gustavson's implementation, a strange "permute" ...
0
votes
1answer
162 views

Perlin noise terrain issue when scrolling

I am generating a terrain in Javascript canvas using this js project for the Perlin noise. I have an array of points, and when one point leaves the left-hand-side of the window, it is removed, and a ...
1
vote
0answers
593 views

Using Perlin/Simplex noise in a 2d tile game for terrain generation

I've been doing a bunch of research regarding procedural 2d terrain generation and have come to the conclusion that the use of perlin/simplex noise seems to be the way to go for most things. I've ...
-1
votes
1answer
488 views

Perlin Noise' gradient

I'm having some problem understanding the Perlin Noise algorithm and none of the explanation I found go into this (probably obvious)detail. From what function is the gradient on it? Is it from the ...
1
vote
1answer
678 views

Why is perlin noise generating flat terrain in Unity?

I am trying to generate terrain using perlin noise however the terrain being generated is a plateau. Here is the code that I'm using: ...
1
vote
2answers
818 views

How should I use this 1D perlin noise function?

I'm trying to create a terraria like terrain with SDL2 and C++. For generating the terrain I'm trying to use the 1D noise function from here: https://github.com/SRombauts/SimplexNoise It's pretty ...
0
votes
2answers
252 views

What does mean the float value in a voxel data?

We know that a voxel can be represented by a three dimensional array of boolean or float values. There is an answer that demonstrates this perfectly: the difference between binary/boolean or floating-...
2
votes
1answer
666 views

Are there any methods for generating rivers on-demand with Perlin/Simplex noise?

I'm aware of many methods for procedurally generating rivers, but they require an entire heightmap beforehand in order to work. For instance, they may require to find a high position on the map and ...
4
votes
1answer
591 views

How do I apply domain warping to my marching cubes voxel terrain in Unity?

So, in GPU Gems 3 there is a cool warped terrain that I seek to replicate. Currently, I'm generating the terrain fine, but I want to add that warp effect. ...
2
votes
0answers
150 views

Regional Variation with Perlin Noise

I used Game Maker to construct a 3D terrain using Perlin Noise. Since I wanted to create an island, I set the noise function to return a value between 0 and 128. Then I checked each point and ...
2
votes
1answer
529 views

How to make map generation with Perlin noise look more like an actual map

I have been following a guide on Perlin noise, but I can't post the link here because of my current reputation level. I will post code if needed. When I get noise from this distribution, I tend to ...
1
vote
1answer
662 views

How can I apply Perlin noise to generating an asteroid from cubic voxels?

I know I can use Perlin noise to generate randomised terrains, but for my current project i want to generate random asteroids of non-uniform length, width depth etc. My first thought was to apply ...
2
votes
1answer
150 views

How can I model AI Interactions across the entire game world without computing them individually? [duplicate]

I'm making a 2D top-down tile-based game in C++ using SDL2. The game uses a very large world map (think Dwarf Fortress). My world terrain is generated using a noise function, another function is ...
0
votes
2answers
811 views

Strange 1D Perlin noise generation with negative x values

I'm trying to use 1D Perlin Noise to generate "random" terrain for a side-view scrolling game (Think Terraria). I've gotten it mostly working, however strange things start to happen when generating ...
1
vote
0answers
225 views

How do I create tileable 3D Perlin/Simplex noise?

I have a library which provides functions for 1/2/3/4-D simplex noise. With that I successfuly created a tileable 2D cloud texture (see How do you generate tileable Perlin noise?). Now I want to ...
5
votes
1answer
879 views

Creating a set of islands by subtracting gradient values from a Perlin noise

The answers to this question explains fairly well how to create a big island in the center of the screen by setting up a gradient and then subtracting its value from a Perlin Noise. Anyway they ...
0
votes
1answer
79 views

Perlin noise looks uncoherent on higher z

I was experiencing with my Perlin noise function and I tried to animate a 2D noise by changing the z value of a small amount every frame. However, as z increases, the result becomes stranger and ...
4
votes
1answer
606 views

Unwanted Perlin Noise result

I've finally managed to write a working Lua version of Perlin's improved noise for Love 2D. However, when I run it, i get this: Which is just fine, I guess. But I would like something that looks more ...