Filters : Preview and Adjustement Layer
Moritz Moeller
mnm at dneg.com
Wed Jan 30 11:27:14 CET 2008
Cyrille Berger wrote:
> In fact what we need is a random number generator that allways return the same
> value for a pixel (for a given seed). A ugly possibility would be to do
> something like qsrand( xpixel * ypixel + seed); randum_number = qrand(); A
> more elegant alternative would be to have a KisRandom class with a function
> returning the random number for each pixels.
That's how we do it in 3D rendering:
http://www.affine.org/cellnoise.html
Basically a Perlin-style noise implementation w/o any interpolation.
.mm
More information about the kimageshop
mailing list