Maths : counterbalance non-uniform noise when displacing ?

Discuss SVG code, accessible via the XML Editor.
v1nce
Posts: 696
Joined: Wed Jan 13, 2010 4:36 am

Maths : counterbalance non-uniform noise when displacing ?

Postby v1nce » Thu Mar 29, 2012 6:48 am

Hi,

The distribution of random numbers is (or looks ?) uniform for fractalnoise.
So when you feed a displacement with a fractalnoise the result will stay in place (there are as much "pixels" that are moved to the left than moved to the right)

But what about the turbulence that has a non uniform distribution ?
How do you counterbalance the offset that occurs ?

Using trial and error it looks like the folowing offseting work well
33% of displacement factor when the octave is 1.
20% when octave is 10

Does someone know the right (mathematical) ratio ?
Or do you know a trick (normalisation ?)

thank you.

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Maths : counterbalance non-uniform noise when displacing

Postby brynn » Sun May 06, 2012 2:15 pm

Hi v1nce,
I'm just trying to get some recent unanswered messages back into the action :D So I don't really have an answer for you. Maybe someone will see it after my reply bumps it. Or you know about Launchpad, the bug tracker, right (https://launchpad.net/inkscape). You might find a bug report about this, which might contain some helpful info. Or if it looks like a bug, you might even report it.

Good luck :D


Return to “SVG / XML Code”