Isotropix Forums

slowly changing noise

Discuss about expressions in Clarisse

slowly changing noise

Unread postby bvz2000 » Wed Aug 12, 2020 3:46 am

Is there a way to generate slowly changing noise?

I.e. I want a light to dance around a bit as though it were a candle flame. I have been using this function in the translate x field. But it changes too rapidly (i.e. I am getting a true random noise it appears when I want a slowly modulating noise).

Code: Select all

I'm afraid that my math skills aren't up to figuring out how I could smooth out a noise function so that the light source slowly moves from one point to the next vs. jumping around frame to frame.

(Bonus question: I am controlling the light intensity based on a sample image of a real fire - a sequence of images. Could I somehow reference the intensity of a pixel in this map to control the translate values for the light?)
Posts: 428
Joined: Thu Nov 13, 2014 6:05 pm

Re: slowly changing noise

Unread postby dcourtois » Wed Aug 12, 2020 9:58 am

You want something like this:

Code: Select all
multiplier = 0.1;
cellnoise(T * 0.1)

Just make multiplier lower to slow down even more.
Also, F is the frame number, and T is the time in second (e.g. if your scene is setup at 24 FPS, if F == 12, T == 0.5, so it's usually easier to use T for slowly varying stuff)
User avatar
Posts: 104
Joined: Tue Jul 25, 2017 3:15 pm

Return to Expressions