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.

Filter by
Sorted by
Tagged with
0
votes
0answers
59 views

Perlin noise terrain, how to add features (rivers, etc..) [closed]

I'm new to gamedev. I'm currently working on a little peaceful low-poly game using LWJGL3, following ThinMatrix tutorials. So far, I'm using Perlin noise to generate the heightmap. This is what I ...
0
votes
0answers
38 views

Generating procedural 2D perlin noise

I've been searching around for a week after a C# implementation of a 2D seed based procedural noise generation function. I'm trying to implement a way to generate orespawns on a 2D plane. The plane is ...
0
votes
1answer
32 views

Comments getting executed as command

I have a script to edit my world on run time and a script to generate a world. When i tried to place a block, something wrong happened, so I tried to make my script into command until I find which ...
0
votes
2answers
41 views

Capping neighbour height difference on heightmap?

I am generating a heightmap with some basic perlin noise but I need to cap the differences between each neighbouring value. A cardinal neighbour can only be ...
6
votes
2answers
115 views

Mapping noise to sphere surface

I'm attempting to create a sphere with terrain (aka planet). I managed to procedurally create an icosahedron, and I am able to subdivide it (yay), but now I'm stuck on terrain. My current idea was to ...
1
vote
1answer
51 views

How to add noise into a texture?

I'm working on a Heat Map generated from Perlin Noise. So far I've got 2 different outputs. Let's go step by step: The result should be something like this: This is the Perlin Noise I've got, easy ...
0
votes
0answers
49 views

Help understanding Accidental Noise Gradient function

Background: I am trying to create a set of functions to manipulate noise, similar to Libnoise, Fastnoise and the Accidental Noise Library. The end goal is to produce terrain. As recommended by ...
0
votes
0answers
35 views

Game Object's Vector3 changing through script without reason

I am trying to do a combine block script. However, I encountered 2 problems: the blocks / the combined mesh isn't showing up anymore when it was, all the blocks where at the same location Even ...
5
votes
1answer
100 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
27 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
37 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
150 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 ...
2
votes
2answers
282 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
262 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
111 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
413 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
835 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
279 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
127 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
296 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 ...
5
votes
1answer
307 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
278 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
49 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
315 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
157 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
680 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
977 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
4k 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
223 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
340 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
707 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
182 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
451 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
603 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 ...
5
votes
1answer
428 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
440 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
397 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
110 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
383 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
598 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
186 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
620 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
549 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
771 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
972 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
278 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
822 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
646 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. ...
3
votes
0answers
167 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
603 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 ...