Winamp & SHOUTcast Forums > AVS Swirly Movement?

 23rd August 2015, 15:50 #1 ramesesp Junior Member   Join Date: Aug 2015 Posts: 1 Swirly Movement? Are there any technique to create some swirly-flowy (dynamic) movement like, e.g., Flurries (Tuggummi), Arctic Rainbow (S_KuPeRS), etc.? Do they model the equations right away from their mind (swirling imagery)?
 27th August 2015, 20:15 #2 Warrior of the Light Forum King     Join Date: Aug 2002 Location: The Netherlands Posts: 4,062 learn your trigonometry, the window ranges from -1,1 both in x and y. A lot could be learnt from reading and trying to understand the code in various presets. Jesus loves you [yes, you] so much, he even died for you so that you will not need to die, but live forever
30th November 2015, 02:55   #3
unsaved97
Junior Member

Join Date: Nov 2015
Posts: 15
Very simple.

init:
xa=ya;ya=-xa;

frame:
xt=xt+xa;
yt=yt+ya;
xa2=sin(xt)*.02;
ya2=sin(yt)*.02;
xz=1-sin(xa2);
yz=1-sin(ya2);

beat:
xa=rand(100)/1000-0.05;
ya=rand(100)/1000-0.05;

Pixel:
x=x*xz;x=x+sin(y+xt)*.05;
y=y*yz;y=y+sin(x+yt)*.05;
Attached Files
 swirling example.avs (1.9 KB, 104 views)

 Winamp & SHOUTcast Forums > AVS Swirly Movement?