Forum Replies Created

  • Criszero

    February 6, 2007 at 2:55 pm in reply to: looping noise()

    Ha haaa!! Yay! That’s great. Thank you Dan

  • Criszero

    February 2, 2007 at 10:31 am in reply to: looping noise()

    Thanks for the reply Dan.

    I tried adding the extra code to the noise() code I have, but I’m getting an error. Here’s what I have now:

    numRows = 7;
    numCols = 16;
    xyCompress = 200;
    speedCompress = 1;
    amplitude = 100;

    cycle = 2;
    t = time % cycle;

    row = Math.floor((index – 1)/numCols);
    col = (index – 1)%numCols;
    x = col*width + width/2;
    y = row*height + height/2;
    z = time;

    xOffset = (this_comp.width – numCols*width)/2;
    yOffset = (this_comp.height – numRows*height)/2;

    noiseVal1 = amplitude*noise([x/xyCompress,y/xyCompress,t/speedCompress]);
    noiseVal2 = amplitude*noise([x/xyCompress,y/xyCompress,(t-cycle)/speedCompress]);
    50 + amp * linear(t, 0, cycle, noiseVal1, noiseVal2)

    [x,y,z] + [xOffset,yOffset,0]

    Hey! Like I said…I’m not really a coder! Would you be able to untangle this mess?!
    Thanks again for your help. Much appreciated.

    Chris

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy