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
2 answers

Java LibGdx 2d terrain generator

Hello I try to do game like terraria but I don't have idea how to generate random terrain :(. Someone can help me ?. I search in internet but I don't find anything, only some thing with perlin noise. And sorry from my English.
NoName
  • 33
  • 7
0
votes
1 answer

Perlin noise generating visible "blocky" formations, Java

I've been trying to implement a perlin noise generator in java, based on this article. Homever, my generator produces noise that is not continuous but instead "blocky", forming visible lines between every even numbered -coordinate. Below is my…
Mr. Noise
  • 1
  • 1
0
votes
1 answer

Converting numbers from certain range to numbers in a different range

EDIT: Solved! I just multiplied my outcomes with -1, this solved the problem I'm trying to convert doubles ranging from -1.0 to 1 to integers ranging from 0 to 255. But when I try to do this, it returnes negative values. I've tried using the code…
user3376217
  • 35
  • 3
  • 9
0
votes
0 answers

Perlin Noise scaling

I am working on this 2D game in Python and I want there to be an infinite randomly generated map, but one that can be regenerated using a seed. So first of all I want to be able to render any part of the map without rendering other stuff, so if I…
Basic Block
  • 729
  • 9
  • 17
0
votes
2 answers

How to changes doubles to a greyscale image?

I've created a 2d array of 1024 x 1024 values ranging from -1 to 1, but I do not know how I am supposed to change this to a greyscale image. What I have been doing is assigning a certain color to certain values, but this is not what I was going…
user3376217
  • 35
  • 3
  • 9
0
votes
2 answers

Is there a more effecient way to calculate and use Perlin noise?

I just started using Perlin noise a few days ago, and the results look quite good. But it takes over 3 seconds to calculate and draw a 1024x1024 bitmap of said noise. I use an array of 1024x1024 to store int32's ranging from -1 to 1. The code that…
user3376217
  • 35
  • 3
  • 9
0
votes
1 answer

Perlin noise not working; returns weird numbers

I just started on my first perlin noise project, but when I test it out it gives back insanely high numbers. To my understanding they are supposed to stay between 1 and -1. Also when I change the lacunarity to an even value, it only returns…
user3376217
  • 35
  • 3
  • 9
0
votes
1 answer

Perlin Noise algorithm - Why subtracting one from the points?

I was looking at this doc: https://code.google.com/p/fractalterraingeneration/wiki/Perlin_Noise And in the document it says: top-left: just x, y top-right: x-1 bottom-left: x, y-1 bottom-right: x-1, y-1 This may seem counter-intuitive, but it is…
fuzzylogical
  • 852
  • 1
  • 7
  • 9
0
votes
2 answers

Perlin noise, blocky,c++

Okay first of all, I am trying to implement the Perlin noise algorithm, and I managed to achived something strange, and I can't find the solution. I am using matlab to visualize the results I have already checked this question: "Blocky" Perlin…
user3511545
  • 71
  • 1
  • 6
0
votes
1 answer

HLSL Perlin Noise and XNA

i need a real time Perlin Noise generation for a 2d game i am implementing. The CPU noise runs fine, but needs ~1 sec for half my screen size (1920 x 1080). I can scale it up about 4 times without too many artifacts but still that is a little slow…
crush3dice
  • 198
  • 1
  • 2
  • 15
0
votes
2 answers

Where to start with voxel engine?

I have been working on a voxel game for some time now, but all that I have really accomplished was the main menu and an Item system. Now its time to make the voxel engine. I have been searching for a while now to find some tutorials or an ebook that…
SemperAmbroscus
  • 1,308
  • 2
  • 12
  • 23
0
votes
1 answer

Perlin noise how to get a vector from a permutation-array?

I am currently trying to implement perlin noise on HLSL in 2D. I watched Ken's improved Perlin Noise, but i don't understand how the conversion from the permuation-array into Vectors works. I know that i can get the hash-code like this int g00 =…
crush3dice
  • 198
  • 1
  • 2
  • 15
0
votes
1 answer

Perlin Noise, Erlang and javascript

Given the same seed to the a perlin/simplex noise generation algorithm, is it possible for the same noise map to be generated, in the two different programming languages? My usecase: a procedurally generated multiplayer world - using javascript…
0
votes
2 answers

How to make honeycomb version of perlin noise?

I wish to: Make regular 2d perlin noise constrain into a quantized, straight line version of itself, where the straight lines are 60° Maybe i can quantize the input of the perlin noise function to be on the 3 60° axes? Perhaps i could rewrite 2d…
bandybabboon
  • 2,210
  • 1
  • 23
  • 33
0
votes
0 answers

Perlin Noise Gradient Generating Issues

It appears to be an issue with the gradients from what I can see. I'm not really sure what to do about this, but the gradients are in a 4x4 grid, and they are not matching with it's neighboring gradient (generated the wrong direction?). I've tried…