3 ms·
Hey, someone found those noise functions I ported to JS a few years ago! Sorry for not referencing the original code. The java version I translated from is her
by josephg 10y ago
Hey, someone found those noise functions I ported to JS a few years ago!
Sorry for not referencing the original code. The java version I translated from is here: http://webstaff.itn.liu.se/~stegu/simplexnoise/SimplexNoise.java http://webstaff.itn.liu.se/~stegu/simplexnoise/SimplexNoise....
And the paper describing the algorithm is here: http://webstaff.itn.liu.se/~stegu/simplexnoise/simplexnoise.pdf http://webstaff.itn.liu.se/~stegu/simplexnoise/simplexnoise....
Glad it was useful to you!
- tracker1 10y agoIt's funny, but nothing helps you understand something better than porting it to a new language... Even if you aren't particularly skilled in the shortcuts a given language/platform offers, it does help you understand a given algorithm.
- lokedhs 10y agoI used that code to create a Common Lisp version, the result is here: https://gist.github.com/lokedhs/d5348c4a221e1436000b https://gist.github.com/lokedhs/d5348c4a221e1436000b I used it as a base for a map generator for a strategy game. Thanks a lot for the code, it worked perfectly.