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.)
Post a reply to this message
Attachments:
Download 'main.cpp.txt' (11 KB)
|