- AVS
- Lets talk superscope...
Archive: Lets talk superscope...
stewleonard
20th November 2001 21:24 UTC
Lets talk superscope...
I look at code after code of avs superscopes. So many numbers, letters, just about everything you can think of. But it is another language to me. So i have some questions and maybe you all can help me out. Firstly, what do these letters mean:?
n, r, t, p, b, s, c and d ? they are the most commonly used letters in superscopes, so they must all mean something. Are there words that they are short for?
Next, what happens when you combine letters? Like rdx, rdy, and rdz in 3d superscopes, bt and sc in regular ones (just some examples, the possibilirties are probably endless for this one.
And finally, i read, i think it was unconed who wrote it but i dont remeber, wrote about how trigonometry has to do with this all, but after consulting the math textbook, it makes no sense as to why sin, cos, and tan have any affect on anything to me?
I know this is alot of info to cover in one message, so spread it out. People who know what tey are talking about, write about 1 topic every now and again and maybe everyone else can start to understand what this is all about.
(P.S. if you ask me, maybe you should start up a newsletter at winamp that people could subscribe to about avs, and evrey month or week, a new topic could be discussed, like a school lesson almost on AVS. That would be a big help, so consider it...)
THanks.
-Stew
napolean
20th November 2001 23:33 UTC
n -> Number of pixels, do you know what "pixels" are ?
r -> Radius
t-> its not a default var. its just used to make movements. you may use "stew" instead of "t".
p -> I think its just another var, :confused:
b -> either.!
s -> eiher.! :)
c -> eiher.! :)
d -> Distance.
w ->widht
h -> height
the default vars, that cannot be changed are " D", "R", "W", "H" "N", "X", "Y".
Are there words that they are short for? WHAT ??? :confused: I dont understand your question.
That letters combination its not a right value they can be anything!
you can creat your hown vars.
eg -> INIT: n=100; stew=0.5; var1=1; sinx=0.5; cosy=-1;
to understand more abut 3D you got to know a little bit of geometry.
If you really found that "trigonometry help" used and publish it.
if you found it mail me please -> heliobt@oninet.pt
And all "that" expression make sense, believe me ! :)
NApoleAN-HeLL
AndyR
21st November 2001 00:54 UTC
This is a very good post...
It's information that a lot of people could use. Not only the definitions but also plain English examples, syntax and usage (I'm not asking alot am I?) :)
If someone could find the time to do this then I'm sure that a hell of a lot of people would appreciate it!
flatmatt
21st November 2001 01:01 UTC
"b" is actually a pre-defined variable. b = 1 when there is a beat and 0 when there isn't.
Also, you can't just type "sinx", it has to be "sin(x)". Otherwise, it won't work since Winamp reads "sinx" as one variable named "sinx".
Remember, you CAN change the variable n, but it has a meaning. "n" is only pre-defined in superscopes, not movements.
stewleonard
24th November 2001 06:41 UTC
Napoleon...
I understand that strining together DSX and DSY is just a nameing of a variable that is gonna be defined, but why does it appear in so many different creators code? is it just a standard for avs that people just have an easy time understanding? thats all from stew!
Lucid DM
24th November 2001 17:53 UTC
Here's what the predefined variables stand for:
n - Number of points drawn every frame.
v - Volume of point "i" on the spectrum/waveform. Goes from -1 to 1.
i - Point on the waveform, goes from 0 to 1.
x - Horizontal coordinates. -1 on the far left, +1 on the far right.
y - Vertical coordinates. -1 at the top, +1 at the bottom.
d - Distance from centre (used in polar equations).
r - Rotation around the centre point (also used in polar equations).
b - Beat. Whenever there's a beat, this changes from 0 to 1.
w - Width of the window in pixels.
h - Height of the window in pixels.
red - Red value, from 0 to 1. (RGB).
green - Green value, from 0 to 1. (RGB).
blue - Blue value, from 0 to 1. (RGB).
Did I miss any out?
stewleonard
24th November 2001 21:05 UTC
Thanks lucid
Lucid you cleared up alot. thanks man, even if you do spell COLOR funny! :) Later.
rarefluid
27th November 2001 18:54 UTC
So, that makes me finally ask :
What variables can I use, meaning which are save to use. Can I run into problems when I use something like "xtz" or "bsin2" as a variable, because the parser doesn't get that it is a variable?
I think I had some problems with that in some presets.
And if you like, check out Superscopes doing fractals and tell me if you like it (or not). I just tried if it was possible. There are some deactivated fractals in it, some don't work, some do...
DjOli
27th November 2001 19:20 UTC
:cool: On Another subject how do you get little pics next to your name on the posts..???