POV-Ray : Newsgroups : povray.off-topic : Friday afternoon project: a real time ray tracer in your browser : Re: Friday afternoon project: a real time ray tracer in your browser Server Time
6 Oct 2024 06:45:48 EDT (-0400)
  Re: Friday afternoon project: a real time ray tracer in your browser  
From: Orchid Win7 v1
Date: 26 Jul 2015 10:11:47
Message: <55b4eaa3$1@news.povray.org>
On 24/07/2015 06:00 PM, Orchid Win7 v1 wrote:
> On 24/07/2015 04:05 PM, scott wrote:
>> * One of the hardest bits is to get a random number generator running on
>> the GPU that is random enough to not show any patterns after a while.
>> There is still some subtle non-randomness visible, but it's way better
>> than it was originally. That's why there's random bits of code like
>> rng.x = sin(r1 - FrameNumber) in there. It seems to do the job.
>
> Ah yes - it's not like you can just run the Mersenne Twister on a GPU...
> ;-)

...actually, apparently you *can* run MT on a GPU. o_O

Trouble is, it's laughably slow.

Have you seen this? The accepted answer looks simplish...

http://math.stackexchange.com/questions/337782/pseudo-random-number-generation-on-the-gpu


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.