ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Re: Creating an ocean of text layers, all reacting to a displacement map

COW Forums : Adobe After Effects Expressions

FAQ   •   VIEW ALL   •   ADD A NEW POST   •   PRINT
Respond to this post   •   Return to posts index   •   Read entire thread


Dan EbbertsRe: Creating an ocean of text layers, all reacting to a displacement map
by on Apr 27, 2012 at 7:39:49 pm

OK--play around with these. You'll probably want to tie the variables to sliders (it's important that they match in the two expressions).


// *** position ***

maxX = 300;
maxZ = 100;
maxY = 100;
tMult = .25;
xMult = .25;
zMult = .25;

seedRandom(index,true);
x = random(-maxX,maxX);
z = random(-maxZ,maxZ);
y = maxY*noise([x*xMult,z*zMult,time*tMult]);

value + [x,y,z]





// *** z rotation ***

maxX = 300;
maxZ = 100;
maxY = 100;
tMult = .25;
xMult = .25;
zMult = .25;

deltaX = 10;
rMult = .15;

seedRandom(index,true);
x = random(-maxX,maxX);
z = random(-maxZ,maxZ);
y1 = maxY*noise([(x-deltaX)*xMult,z*zMult,time*tMult]);
y2 = maxY*noise([(x+deltaX)*xMult,z*zMult,time*tMult]);

rMult*radiansToDegrees(Math.atan2(y2-y1,2*deltaX))




Dan



Posts IndexRead Thread 


Current Message Thread:





© 2016 CreativeCOW.net All Rights Reserved
[TOP]