Click here to Skip to main content
15,885,435 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
so i was watching this tutorial :PERLIN NOISE in Unity - Procedural Generation Tutorial - YouTube[^]
i was looking for a way to create a heightmap in an array.
i know this tutorial is made with unity but i tought i just ignore the unity stuf and only pick the stuf i need. it worked realy well until he writes the function mathf.PerlinNoise thats a unity function and not a c# but i need it to go further.

so how do i calculate PerlinNoise ?

What I have tried:

searching the web but there was nothing i could find.
Posted
Updated 20-Jan-18 9:02am

1 solution

Had a quick look at Google Search and there is plenty of information for you: C# calculate perlin noise[^]

* Understanding Perlin Noise[^]
* Improved Perlin Noise Implementation in C# · GitHub[^]

UPDATE: For 2D, there is an answer using the Google Search above: c# - 2D Perlin Noise - Stack Overflow[^]. Also che3ck out an answer here on Code Project to the same question asked a few years earlier: How do I make perlin noise?[^]
 
Share this answer
 
v4
Comments
dolfijn3000 20-Jan-18 15:45pm    
I also found this the problem is im tryong to do somthing 2 demensional and i think that code on github is for 3 demensional uses
Graeme_Grant 20-Jan-18 16:00pm    
see the revised solution
dolfijn3000 20-Jan-18 16:09pm    
Thx i will look into these

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900