You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The built-in processing "noise" function claims to generate Perlin noise, but in fact it generates value noise. A simple search of the processing github here for "perlin" turns up a real Perlin noise implementation in one of the examples:
For almost any conceivable application, Perlin noise is better than value noise because it lacks the perceivable grid-like structure of simple value noise. Here is a screenshot comparing the built-in noise() function with Perlin noise generated by the code from the example above:
It would be pretty nice if Processing had real Perlin noise built-in, but as long as it doesn't, it should at least not mislead readers of the documentation into thinking that value noise is Perlin noise.
P.S. Using simplex noise instead of Perlin noise would be even better, especially for 3D noise as it's significantly faster in that case, but that's probably a bit harder.
The text was updated successfully, but these errors were encountered:
Sure, but a lot of sketches rely on the very old (circa 2001) implementation, so we're not about to change that. If you have a reference issue, file it in the correct location.
The built-in processing "noise" function claims to generate Perlin noise, but in fact it generates value noise. A simple search of the processing github here for "perlin" turns up a real Perlin noise implementation in one of the examples:
https://github.com/processing/processing/blob/01964947f1aa7780499fd010b151d639ecfdf440/java/examples/Demos/Graphics/Planets/Perlin.pde
For almost any conceivable application, Perlin noise is better than value noise because it lacks the perceivable grid-like structure of simple value noise. Here is a screenshot comparing the built-in noise() function with Perlin noise generated by the code from the example above:
http://imgur.com/guiiWRU
It would be pretty nice if Processing had real Perlin noise built-in, but as long as it doesn't, it should at least not mislead readers of the documentation into thinking that value noise is Perlin noise.
P.S. Using simplex noise instead of Perlin noise would be even better, especially for 3D noise as it's significantly faster in that case, but that's probably a bit harder.
The text was updated successfully, but these errors were encountered: