|
![](/i/fill.gif) |
Apache wrote:
>
> The method is far from perfect, but here is the c code I wrote. I have been
> thinking of a better way, because there there are some faint plateaus in the
> distribution and we don't want that. I guess some smart jittering will get
> rid of the plateaus. The algorithm is VERY SLOW, so I'm afraid that coding
> it in pov SDL is completely useless!
>
> (Code attached to this post. file extension is .cpp, but the code itself is
> ANSI C.)
You know you should not post binary attachments in a non binary group...
Apart from that - it looks like a regular distribution. No matter how
uniform it is this is usually a bad idea. Most of the computations seems
to be required for sorting the samples - this can be removed when you
generate the precise number of samples you need.
Christoph
--
POV-Ray tutorials, include files, Sim-POV,
HCR-Edit and more: http://www.tu-bs.de/~y0013390/
Last updated 28 Feb. 2003 _____./\/^>_*_<^\/\.______
Post a reply to this message
|
![](/i/fill.gif) |