whuop/hxNoise

Diamond-square algorithm producing incorrect results on web

Closed this issue · 1 comments

The diamond-square sample takes a very long time (around 10 seconds) and then produces (something like) this on web (Chrome, OS X):

Running the same sample but using simply Math.random as the random function produces this interesting result:
screen shot 2016-04-09 at 21 58 17

Running the diamond-square sample on OS X natively produces this result:
screen shot 2016-04-09 at 21 56 42

Maybe some variables are uninitialized causing these platform differences?

whuop commented

Weird stuff! Will look into it very shortly. It definitely shouldn't do that on web.