Go Back   Winamp Forums > Visualizations > AVS

Reply
Thread Tools Search this Thread Display Modes
Old 17th May 2001, 19:43   #1
Kloque
Junior Member
 
Join Date: May 2001
Posts: 11
If you've made any cool stuff in the avs, like superscopes, and movements, post the code here, maybe we can start like a code library... When I learn hpe to make my own stuff, I will post...



P.S. Hey, winamp people, Make a section dedicated to the avs codes, like people can send in, and you can have your own, and a how to code section to
Kloque is offline   Reply With Quote
Old 17th May 2001, 20:03   #2
ElChevelle
Moderator Alumni
 
ElChevelle's Avatar
 
Join Date: Jun 2000
Location: the MANCANNON!
Posts: 22,431
I think you now have more threads than post, newbie
ElChevelle is offline   Reply With Quote
Old 17th May 2001, 20:04   #3
bluetape2k1
Banned
 
bluetape2k1's Avatar
 
Join Date: Dec 2000
Posts: 1,356
Send a message via Yahoo to bluetape2k1
hi Kloque

Well welcome to the WinAmp forums

you can check out my pack on my site at http://www.andysplace.fsnet.co.uk there is a wide selection of packs there so have a look

If you are gonna use some of the idea's from other peoples pack then please tell them or mention their names on the avs pack i.e. coments

BlueTape2k1

bluetape2k1 is offline   Reply With Quote
Old 17th May 2001, 20:06   #4
Matt
Banned
 
Join Date: Oct 2000
Location: England
Posts: 3,397
There used to be an avs preset section. I think it went wrong.

Have a look at blue's site for some avs info -
http://www.andysplace.fsnet.co.uk/new_page_1.htm

You can get my presets there. A bit crappy and simple but they demonstrate some of the movement effects.

There is some more stuff in the developer section here -
http://www.winamp.com/nsdn/wvs/


I don't use AVS much or make many presets now but more help on the avs commands would be good. Why can't it have it's own forum? NSIS and Milkdrop get one. Or does no one like avs ?

EDIT - Oh blue already linked his site. Nevermind
Matt is offline   Reply With Quote
Old 18th May 2001, 02:41   #5
rm'
Banned
 
rm''s Avatar
 
Join Date: Jul 2000
Posts: 11,361
Quote:
Originally posted by Matt
Why can't it have it's own forum? NSIS and Milkdrop get one.
Whatcha talkin' about, Willis? Milkdrop doesn't have a forum.
rm' is offline   Reply With Quote
Old 18th May 2001, 02:48   #6
jarsonic
Major Dude
 
jarsonic's Avatar
 
Join Date: Aug 2000
Location: Charlottesville, VA
Posts: 1,112
Send a message via AIM to jarsonic
Quote:
Whatcha talkin' about, Willis? Milkdrop doesn't have a forum.
actually, it _sorta_ does. But it's only accessible through the MilkDrop webpage (ie. it uses the winamp forums, but it doesn't have a defined section).

MilkDrop Webpage:
http://firehose.net/free/milkdrop

MilkDrop Forum:
http://forums.winamp.com/forumdisplay.php?forumid=82



-- Jarsonic

[Edited by jarsonic on 05-18-2001 at 12:19 AM]
jarsonic is offline   Reply With Quote
Old 18th May 2001, 02:51   #7
rm'
Banned
 
rm''s Avatar
 
Join Date: Jul 2000
Posts: 11,361
Dang. Quit confusing me.
rm' is offline   Reply With Quote
Old 24th September 2002, 20:34   #8
tjkenney
Junior Member
 
Join Date: Sep 2002
Location: Reseda, CA
Posts: 3
I just figured out what the dang variables mean (with some help from this forum) so here goes...


This SuperScope is a simple one. Draws a circle of varying diameter, based on the 'V' input variable (music value). Changes the color on beat, as well as doubling the size of the circle on beat. This is the basis for an AVS file I posted called "Gastronomy" that is currently under review and should be available in the Visualizations section of this site. Look for a "Toms AVS II" component.



Anyway, here's the code:

-----------------------------------
INIT:
n=64;rot=0;rad=0;

ON BEAT:
rad=v*2;cr=rand(100)/100;cg=rand(100)/100;cb=rand(100)/100;

PER FRAME:
rad=v/1.5;red=cr;green=cg;blue=cb;

PER POINT:
rot=i*360;
x=sin(rot)*rad;
y=cos(rot)*rad;

SETTINGS:
Source data: Waveform
Draw as: Lines

-----------------------------------
tjkenney is offline   Reply With Quote
Old 24th September 2002, 21:19   #9
Xion(810)
Major Dude
 
Xion(810)'s Avatar
 
Join Date: Aug 2002
Location: Gran Da Val Island, Ragol
Posts: 1,020
I forgot where I found this movement, or if I made this one. If you recognise this as yours, please say so I can know if I made it or not.

d=.05;x=sin(d)

Looks really good, even as simple as it is.
Xion(810) is offline   Reply With Quote
Old 24th September 2002, 23:36   #10
dirkdeftly
Forum King
 
dirkdeftly's Avatar
 
Join Date: Jun 2001
Location: Cydonia, Mars
Posts: 2,651
Send a message via AIM to dirkdeftly
Favorite SSC: Color-changing forward (orthogonal) projection 4D rotating cube
PHP Code:
Lines
Init
:
n=58sqrt2=sqrt(2); pit=acos(-1)/3iwxt=rand(100)/1000-0.05iwyt=rand(100)/1000-0.05iwzt=rand(100)/1000-0.05ixyt=rand(100)/1000-0.05ixzt=rand(100)/1000-0.05iyzt=rand(100)/1000-0.05hue=rand(100)/20sr=rand(100)/100sg=rand(100)/100sb=rand(100)/100s=0.01;

Beat:
iwxt=rand(100)/1000-0.05iwyt=rand(100)/1000-0.05iwzt=rand(100)/1000-0.05ixyt=rand(100)/1000-0.05ixzt=rand(100)/1000-0.05iyzt=rand(100)/1000-0.05hue=rand(100)/20sr=rand(100)/100sg=rand(100)/100sb=rand(100)/100s=-s;

Frame:
p=0wxt=wxt+iwxtwyt=wyt+iwytwzt=wzt+iwztxyt=xyt+ixytxzt=xzt+ixztyzt=yzt+iyztcwx=cos(wxt); swx=sin(wxt); cwy=cos(wyt); swy=sin(wyt); cwz=cos(wzt); swz=sin(wzt); cxy=cos(xyt); sxy=sin(xyt); cxz=cos(xzt); sxz=sin(xzt); cyz=cos(yzt); syz=sin(yzt); sr=sr*0.94sg=sg*0.94sb=sb*0.94hue=hue+s;

Point:
p=p+1
w1=equal(p,2)+equal(p,9)+equal(p,15)+equal(p,21)+equal(p,22)+equal(p,23)+equal(p,24)+equal(p,25)+equal(p,26)+equal(p,28)+equal(p,29)+equal(p,30)+equal(p,31)+equal(p,32)+equal(p,34)+equal(p,35)+equal(p,36)+equal(p,37)+equal(p,38)+equal(p,39)+equal(p,40)+equal(p,42)+equal(p,43)+equal(p,44)+equal(p,45)+equal(p,53)+equal(p,54)+equal(p,55)+equal(p,56)+equal(p,57)+equal(p,58)-0.5;
x1=equal(p,4)+equal(p,11)+equal(p,17)+equal(p,18)+equal(p,19)+equal(p,20)+equal(p,21)+equal(p,26)+equal(p,27)+equal(p,28)+equal(p,29)+equal(p,30)+equal(p,31)+equal(p,40)+equal(p,41)+equal(p,42)+equal(p,43)+equal(p,44)+equal(p,45)+equal(p,46)+equal(p,48)+equal(p,49)+equal(p,50)+equal(p,51)+equal(p,52)+equal(p,53)+equal(p,55)+equal(p,56)+equal(p,57)+equal(p,58)-0.5;
y1=equal(p,6)+equal(p,13)+equal(p,14)+equal(p,15)+equal(p,16)+equal(p,17)+equal(p,25)+equal(p,26)+equal(p,27)+equal(p,28)+equal(p,30)+equal(p,31)+equal(p,32)+equal(p,33)+equal(p,34)+equal(p,36)+equal(p,37)+equal(p,38)+equal(p,45)+equal(p,46)+equal(p,47)+equal(p,48)+equal(p,50)+equal(p,51)+equal(p,52)+equal(p,53)+equal(p,54)+equal(p,55)+equal(p,57)+equal(p,58)-0.5;
z1=equal(p,8)+equal(p,9)+equal(p,10)+equal(p,11)+equal(p,12)+equal(p,13)+equal(p,19)+equal(p,23)+equal(p,31)+equal(p,32)+equal(p,33)+equal(p,34)+equal(p,35)+equal(p,36)+equal(p,38)+equal(p,39)+equal(p,40)+equal(p,41)+equal(p,42)+equal(p,44)+equal(p,45)+equal(p,46)+equal(p,47)+equal(p,48)+equal(p,49)+equal(p,50)+equal(p,52)+equal(p,53)+equal(p,54)+equal(p,55)+equal(p,56)+equal(p,57)-0.5;
w2=w1*cwx+x1*swxx2=w1*swx-x1*cwx;
w3=w2*cwy+y1*swyy2=w2*swy-y1*cwy;
w4=w3*cwz+z1*swz+sqrt2z2=w3*swz-z1*cwz;
x3=x2*cxy+y2*sxyy3=x2*sxy-y2*cxy;
x4=x3*cxz+z2*sxzz3=x3*sxz-z2*cxz;
y4=y3*cyz+z3*syz;
x=x4y=y4;
red=abs(sin(hue+sr));
green=abs(sin(hue+sg+pit));
blue=abs(sin(hue+sb+pit*2)); 
Favorite DM: Somethin for a swirling pulsating mass
PHP Code:
Rectangular coordinatesbilinear filtering and wrap enabled (16x12 gridsize)
Frame:
xt1=xt1+ixt1xt2=xt2+ixt2xt3=xt3+ixt3;
yt1=yt1+iyt1yt2=xt2+ixt2yt3=yt3+iyt3;
bf=bf*0.9;

Beat:
xf1=rand(20)/3xf2=rand(20)/3xf3=rand(20)/3;
ixt1=rand(100)/500-0.1;
ixt2=rand(100)/500-0.1;
ixt3=rand(100)/500-0.1;
yf1=rand(20)/3yf2=rand(20)/3yf3=rand(20)/3;
iyt1=rand(100)/500-0.1;
iyt2=rand(100)/500-0.1;
iyt3=rand(100)/500-0.1;
bf=1;

Pixel:
y=y*(0.94-bf/10)+(sin(x*xf1+xt1)+sin(x*xf2+xt2)+sin(x*xf3+xt3))/20*bf;
x=x*(0.94-bf/10)+(sin(y*yf1+yt1)+sin(x*yf2+yt2)+sin(x*yf3+yt3))/20*bf
But don't you dare use either of them in your packs without giving me full credit

"guilt is the cause of more disauders
than history's most obscene marorders" --E. E. Cummings
dirkdeftly is offline   Reply With Quote
Old 25th September 2002, 01:08   #11
Karnov
Senior Member
 
Karnov's Avatar
 
Join Date: Aug 2002
Location: Narok<Where I live<Valhalla
Posts: 165
CHIRST ATERO, U MADE THIS WINDOW WIIIIIIIIIIIIIIIIIIDE

lol

my favorite is a
Trans->movement
PHP Code:
d=d/(0.92-cos(r-1.0+3.14159)*0.1); r=r+5
Karnov is offline   Reply With Quote
Old 25th September 2002, 03:50   #12
Nic01
Major Dude
 
Nic01's Avatar
 
Join Date: Mar 2002
Location: The Biggest Little City
Posts: 508
Send a message via AIM to Nic01
Favorite SSC :

code:


Frame : p=0

Pixel :

p=p+1;
x1=if(equal(p%18,1)+equal(p%18,2)+equal(p%18,5)+equal(p%18,6)+equal(p%18,7)+equal(p%18,10)+equal(p%18,16)+equal(p%18,17),r,-r)+p1/2+1.1-pp*2.5;
y1=if(equal(p%18,1)+equal(p%18,4)+equal(p%18,5)+equal(p%18,6)+equal(p%18,9)+equal(p%18,10)+equal(p%18,11)+equal(p%18,12),r,-r)+pp/2-1.6;
z1=if(below(p%18,6)+equal(p%18,12)+equal(p%18,13)+equal(p%18,16),r,-r)+getosc(p1/25,0,0);

c=1-(equal(p%18,16)+below(p%18,2));
red=c;
blue=c;
green=c;




The rest is the 3D SSC code. It's a wee little cube generator which I'm too lazy to optimize =P Not exactly my *favorite*... there's too many for me to choose from =D

Of course, I should have a glass-ish framed cube coming somtime later...

Of course, I could've posted the Beat Counter, but it's holyf***ing long...

Oh, what the heck!

code:

BEAT : b1=1;

FRAME : nn=if(above(nn,9),nn-10,nn+b1);n=if(bor(bor(equal(nn,0),equal(nn,2)),bor(equal(nn,4),equal(nn,5))),7,if(equal(nn,1),2,if(equal(nn,3),10,if(bor(equal(nn,6),above(nn,7)),8,4))));b1=0;

PIXEL :
p=n*i-i;
x=if(equal(nn,9),if(bor(band(above(p,1),below(p,5)),equal(p,7)),0.25,0),if(equal(nn,8),if(bor(bor(below(p,3),equal(p,5)),equal(p,6)),0,0.25),if(equal(nn,7),if(above(p,1),0.25,0),if(equal(nn,6),if(bor(band(above(p,1),below(p,5)),equal(p,7)),0,0.25),if (equal(nn,5),if(bor(bor(equal(p,1),equal(p,4)),equal(p,5)),0.25,0),if(equal(nn,4),if(below(p,3),0,0.25),if(equal(nn,3),if(equal(p,1),0,if(equal(p,5),0,if(Equal(p,9),0,0.25))),if(equal(nn,2),if(bor(bor(equal(p,1),equal(p,4)),equal(p,5)),0,0.25),if(equ al(nn,1),if(bor(below(p,3),equal(p,5)),0,0.25),if(equal(nn,0),if(bor(below(p,3),equal(p,5)),0,0.25),0))))))))))/3+0.8;
y=if(equal(nn,9),if(below(p,3),0.25,if(bor(equal(p,6),equal(p,7)),0,-0.25)),if(equal(nn,8),if(bor(bor(equal(p,1),equal(p,4)),equal(p,5)),-0.25,if(bor(equal(p,2),equal(p,3)),0.25,0)),if(equal(nn,7),if(below(p,3),-0.25,0.25),if(equal(nn,6),if(below(p,3),-0.25,if(bor(equal(p,6),equal(p,7)),0,0.25)),if(equal(nn,5),if(below(p,3),-0.25,if(bor(equal(p,3),equal(p,4)),0,0.25)),if(equal(nn,4),if(bor(equal(p,1),equal(p,4)),-0.25,if(equal(p,5),0.25,0)),if(equal(nn,3),if(below(p,4),-0.25,if(band(above(p,3),below(p,7)),0,0.25)),if(equal(nn,2),if(below(p,3),-0.25,if(bor(equal(p,3),equal(p,4)),0,0.25)),if(equal(nn,1),if(bor(equal(p,1),above(p,3)),-0.25,0.25),if(equal(nn,0),if(bor(equal(p,1),above(p,3)),-0.25,0.25),0))))))))))/3




That was only the 1's section... I believe you change b1 into 1*(10^-n) for bigger place values (N is any number, not the number of points, of course)

Fav DM?
Sorry, can't decide


EDIT : Tell me if you want me to divide that big code into smaller bits...

[soon to leave, sirs]
Nic01 is offline   Reply With Quote
Old 25th September 2002, 07:35   #13
jheriko
Forum King
 
jheriko's Avatar
 
Join Date: Aug 2002
Location: a twist in the fabric of space
Posts: 2,149
Send a message via ICQ to jheriko
Favorite SSC:

This one draws a solid triangle with vertices (ax,ay,az), (bx,by,bz), (cx,cy,cz), with some very basic on beat response:

code:

Init: n=21;ax=1;ay=1;az=1;bx=0;by=1;bz=0;cx=1;cy=0;cz=-1;axadd=(ax-cx)/(0.5*(n+1));ayadd=(ay-cy)/(0.5*(n+1));azadd=(az-cz)/(0.5*(n+1));bxadd=(bx-cx)/(0.5*(n+1));byadd=(by-cy)/(0.5*(n+1));bzadd=(bz-cz)/(0.5*(n+1));

On Beat: drz=if(below(drz,0.01),0.2,drz);

Per Frame: drz=drz*0.9;q=0;crz=cos(rz);srz=sin(rz);cry=cos(ry);sry=sin(ry);crx=cos(rx);srx=sin(rx);rx=rx+0.01;ry=ry-0.01;rz=rz+drz;

Per Point:

q=q+1;

x1=if(equal(q%2,0),ax-axadd*(q-2)*0.5,bx-bxadd*(q-1)*0.5);
y1=if(equal(q%2,0),ay-ayadd*(q-2)*0.5,by-byadd*(q-1)*0.5);
z1=if(equal(q%2,0),az-azadd*(q-2)*0.5,bz-bzadd*(q-1)*0.5);

x2=x1*crz-y1*srz;
y2=x1*srz+y1*crz;
z2=z1;

x3=x2*cry+z2*sry;
y3=y2;
z3=-x2*sry+z2*cry;

x1=x3;
y1=y3*crx-z3*srx;
z1=y3*srx+z3*crx;

x=x1/(3+z1);
y=y1/(3+z1);

x=x*h/w;




And my favorite DM has got to be:

code:

Pixel:

d=d/(1+y)



Because it can be changed into so many different and complex 3d forms, with some simple changes, and because it is so much faster than the usual method of generating a plane.

(God damn this window is wide - even at 1280x1024)

-- Jheriko

'Everything around us can be represented and understood through numbers'
jheriko is offline   Reply With Quote
Old 1st October 2002, 23:07   #14
tjkenney
Junior Member
 
Join Date: Sep 2002
Location: Reseda, CA
Posts: 3
Here's a neat Dynamic Movement that I used in three of my latest AVS files (still under review for publishing). Relatively simple, but kinda neat. Playing with the values yields some neat differences in effect.

------------------------------------

BEAT:

r_mod=(0.5-(rand(100)/100))/10;
d_mod=(0.5-(rand(100)/100))/10;


PIXEL:

r=r-r_mod;
d=d+d_mod;
tjkenney is offline   Reply With Quote
Old 2nd October 2002, 08:43   #15
Tuggummi
Bin King
 
Tuggummi's Avatar
 
Join Date: Mar 2001
Location: Finland
Posts: 2,168
Just a note: Damn it's hard to read this thread!

My favorite ssc.. hmm... I love to use circles! You just can do so much things with em!

my basic circle code would be:

INIT:
pi=acos(-1) ; n=50 ; t=0.25

ON BEAT:
t=-t ; xts=t+rand(300)/1000-0.15 ; yts=t+rand(300)/1000-0.15

PER FRAME:
xt=xt+xts ; yt=yt+yts ; sz=getosc(0,0,0)*0.2

PER POINT:
z=2-sz ;
x1=sin(i*pi*2) ;
y1=cos(i*pi*2) ;
x=x1/z+sin(xt)*0.75 ;
y=y1/z+cos(yt)*0.75



And my favorite dm... uhm well i use something like this ALOT:
va=va+sin(va2*n+t)*0.1

And here is what they stand for:
va=variable like d,r,y or x
va2=is a "counter-variable" for the first variable like d for r and x for y (and vice versa)
n=times n, depends how many times you want to multiply the va2 value, i usually use over 3 atleast.
t=well of course transition Which makes it move. The beat detection you can check from my superscope.

That's it. I use this stuff way too much in my opinion... but i always try to use it differently

Texer Resources

Im retarded... err i mean retired!
Probably both...
Tuggummi is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Visualizations > AVS

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump