> Have you seen this? The accepted answer looks simplish...
>
>
http://math.stackexchange.com/questions/337782/pseudo-random-number-generation-on-the-gpu
Looks promising, I'll save that page and see if I can implement it. It's
surely going to be better than my trial-and-error bodge.
As highlighted on that page, the main problem is that every single pixel
runs exactly the same code with the same inputs (apart from pixel
coordinate). So you need some way of making every pixel generate a bunch
of random numbers that are in no way related to any other pixels in the
image (otherwise you get strange patterns like you saw with your 1
sample image).
Post a reply to this message
|