I translated Simplex class from: http://staffwww.itn.liu.se/~stegu/si...plexNoise.java
This is a noise generation algorithm, possibly more efficient than original Perlin noise. I have tested this to work with 2- to 4-dimensions on Lazarus and Delphi. Uploaded to SVN version, also viewable here:
https://code.google.com/p/nxpascal/s...rc/nxNoise.pas
This is quick screenshot from 4D-animation, on TBitmap:
noise.jpg
Fill rate is roughly 1250 point calculations per 1 millisecond. So even this small 400x300 screen is slightly laggy. However if purpose is to generate a game world, this is quite alot, i guess.
Also uploaded demo zip with sources and win32 binary:
https://docs.google.com/file/d/0B7FI...it?usp=sharing
All related nxPascal files are included there, so it will compile even without rest of the library.
Bookmarks