Krita PRNG (minor nit)
Cyrille Berger
cberger at cberger.net
Tue Mar 3 23:49:45 CET 2009
On Tuesday 03 March 2009, Matthew Woehlke wrote:
> Matthew Woehlke wrote:
> > I'm comparing notes now, will see if I can comment on the 'noticeable
> > pattern' mentioned in r934614; it may be a while before I can look
> > though as I am doing a full rebuild due to the qt-copy update.
>
> Strictly looking at the code, I would guess it would help if the input
> wasn't 'x + y * a' (where 'a' is a relatively small number). As I recall
> from early experimentation, that's why I wanted the input number to be
> somewhat random-noise on its own, i.e. why I throw big numbers at the
> coordinates before feeding the resulting scalar to the meat-grinder.
Might explain why I get a reapetitive patter on bigger image. Will try with a
bigger number.
> I'm curious where the current algorithm came from? (Also if there is any
> reason for not using my latest suggestion other than that it does more
> operations per pixel?)
it does less operations :)
I also get confused by your use of the generator in the noise filter, which
doesn't fit with what is currently done. So I wasn't sure if your algorithm
would fit the filter.
--
Cyrille Berger
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/kimageshop/attachments/20090303/bfa865bc/attachment.htm
More information about the kimageshop
mailing list