Creative COW SIGN IN :: SPONSORS :: ADVERTISING :: ABOUT US :: CONTACT US :: FAQ
Creative COW's LinkedIn GroupCreative COW's Facebook PageCreative COW on TwitterCreative COW's Google+ PageCreative COW on YouTube
ADOBE AFTER EFFECTS:HomeForumBasicsExpressionsTutorialsPodcastsAE TechniquesCreative Cloud DebateFAQ

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
Share on Facebook
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
Reply   Like  
Share on Facebook


Current Message Thread:




LOGIN TO REPLY



FORUMSTUTORIALSFEATURESVIDEOSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

Creative COW LinkedIn Group Creative COW Facebook Page Creative COW on Twitter
© 2014 CreativeCOW.net All rights are reserved. - Privacy Policy

[Top]