Archive: avs


1st September 2004 11:22 UTC

avs
this is my first try at avs presets...i dont even know what i have done...but anyway if you like them please tell me along with some tips.


4th September 2004 13:41 UTC

nice work, you've managed to fill the whole srceen with most of them, which is a good thing, t's what makes presets look good - there's nothing more boring than a black background with some random stuff ontop of it that only fills a tiny spot in the center. Try using more inverts, unique tones and get some thicker lines. That's another thing that makes presets look good - thick lines. With superscopes if you have it set to draws as lines not dots put "linesize=5;" in the per point box - it'll make it look much better. Also, try to slow your presets down(not in fps terms) but get slower and more fluid movement and things will start looking good. So learn to code dynamoves and ssc's, use more colour modifying trans and you'll be set.


6th September 2004 08:08 UTC

thanks for your comments...but i would like to know how i can learn this avs language.


6th September 2004 12:27 UTC

A short dm tutorial
The same way i did - experiment.
Start with basic dynamic movements and work your way up.

Heres a short tutorial for dms:

With your dm's there are two types of equations: rectangular coordinates (x&y values) and polar coordinates (D(degrees)&R(radians)). I find x&y is much easier to use if you just want a simple movement like having you picture scroll up and then back down again-like looking at tiles really close up and moving your head up and down.
To do this you need movement along your y-axis.

First of all if your dm's going to work you'll need something to be rendered. Put in a trans>interleave into a blank avs with clear every frame on. Drag both sliders to the middle and make the colour any colour other than black (so you can see it). You should have a kind of grid on your screen.

Now to make the DM:
Place a trans>dynamic movement after your dot grid.
Select reccoords and wrap.
For this dm we won't need anything in the init box, so leave it blank.
In frame, write a=a-0.02 - this means the variable "a" will start at 0 and decrease by 0.02 every frame.
You can have any letter you want as a variable "a" is just an example. The only letters you can't use are: x&y, d&r and b which equals 1 when a beat occurs and 0 when there is no beat.
We won't use the Beat box yet so leave that blank for now.
In the point box is where most of the code for your dm goes. Before we start with the point box you first need to know how sin() and cos() work in avs. They basically clamp any changing variable (in our case "a") between -1 and +1.
So the term cos(a) will casue "a" to decrease to -1 and then change to a=a+0.02 and "a" will increase untill it reaches +1 then flip again.
So in you point box type y=y-cos(a) - this will cause y to decrase by cos(a), which results in the immage of your dot grid rising and falling due to "a" changing from - to +.
If you want the grid to sccroll up and not change directions, remove cos() so it reads y=y-a - this means a will not flip and just continue decreasing to infinity.
(i hope you understand me up to here)
Because sin() and cos() work together, you can use them to create smooth curved motion - like a circle.
To make circular motion you need to add an x value.
At the end of every expression eg. y=y+a-c you need to place a ";" to tell AVS where one expression starts and another begin.
So after y=y-cos(a); write x=x-sin(a)
This will result in circular motion.

Now to add some music response we will use the beat box.
The beat box executes the code you have written every time a beat is detected. If we wrote a=a-0.02 in the beat box instead, "a" will decrease by 0.02 every time a beat is detected, not every frame. Keep a=a-0.02 in the frame box and write a=a-(rand(100)/100) in the beat box - this will make a decrease by a random value between 0 and 100 /100 so anywhere between 0.00 and 10.00 eg: 5.23.
This will give your grid a random speed burst every time a beat is detected.


Onto D & R:
I like to think of R as rotation.
Make a new dm after your first one and turn rectcoords off but keep wrap on. Set your grid size to 0x0!
Write a=a-0.02 again in the frame box.
In point write r=r-a;. YaY, now it's spinning!
Remember to end r=r-a with a ; .
After r=r-a; write d=d+cos(a) - now it's zooming in and out.
In this case we must use either cos() or sin() or else it will keep zooming in or out forever.

And the rest is experimenting. Have fun!


6th September 2004 13:17 UTC

In the above post :
if you want a random number 0..10 you would need to use this instead

rand(100)/10;


OR

rand(1000)/100; // which is what I think he wanted


;)
probably a typo, but we don't need to confuse him now, eh?

6th September 2004 13:29 UTC

no we don't.


7th September 2004 09:02 UTC

Hey guys thanks for all the help...but i dont seem to have trans>dynamic movement..i have only movement. HOW CAN I DOWNLOAD THAT.


7th September 2004 09:22 UTC

What version of Winamp are you using?
I think version 5.05 has it when installed.
If you don't have it, download the new version of winamp.


7th September 2004 09:30 UTC

damn, all that typing and he doesn't even have dm's...


7th September 2004 09:37 UTC

Originally posted by Mr_Nudge
damn, all that typing and he doesn't even have dm's...
I thought it was a good tutorial. :D

7th September 2004 10:32 UTC

sweet - perhaps i should post it somewhere else?


7th September 2004 12:59 UTC

Nudge and Chaos, teh uberleet AVS teachers eh? ;)


8th September 2004 04:38 UTC

damn straight!


8th September 2004 05:34 UTC

Originally posted by Mr_Nudge
damn straight!
:D

In the future however, you might want to save yourself some time and just point people to FAQ #7 ;)

8th September 2004 08:30 UTC

how many times to you see people posting questions that have been answered in the FAQ - a lot. It's obvious that people don't read the FAQ as much as they should.
Anyway it opened my eyes a bit in the making.


19th September 2004 08:48 UTC

New Improved
now i have the new version of winamp....and i have tried to code a few superscopes and a couple of DM's....some of them were already posted by me before...Give me some feedback 'bout the new ones.


19th September 2004 10:24 UTC

Originally posted by Mr_Nudge
nice work, you've managed to fill the whole srceen with most of them, which is a good thing, t's what makes presets look good - there's nothing more boring than ...
..generalization and obtruding one's oppinion on others

19th September 2004 11:43 UTC

it was a broad statement. calm down.