OpenSimplex Noise ported to D

Brian Schott via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Tue Sep 23 13:56:14 PDT 2014


On Tuesday, 23 September 2014 at 12:31:12 UTC, MrSmith wrote:
> On Sunday, 21 September 2014 at 02:36:46 UTC, Brian Schott 
> wrote:
>> Some of you may have noticed this article posted to 
>> /r/programming: 
>> http://uniblock.tumblr.com/post/97868843242/noise. I ported 
>> the algorithm to D and uploaded it here: 
>> https://github.com/Hackerpilot/OpenSimplexNoise-D
>
> Can you also make 2D version, please?

You can get 2d noise from this by generating a slice of 3d noise. 
Call OpenSimplexNoise.eval(x, y, c) where x and y are loop 
variables and c is a constant. The test file[1] does this to 
produce a 2d image.

[1] 
https://github.com/Hackerpilot/OpenSimplexNoise-D/blob/master/test/main.d


More information about the Digitalmars-d-announce mailing list