Archive: help!!


12th December 2001 00:11 UTC

help!!
ok , i dont want every one to satrt jumping all over me.

i mean i know how to make AVS's, but i need like more advanced tutorials, cause i dont get the numbers and stuff you know like the vars the X Y and T and stuff like that that you have to enter.

anyone know a good website with good tutorials i would be greatfull

thanx


16th November 2002 18:35 UTC

Well...
First, T is not a set variable in AVS.

b in almost everything is 0 if no beat, 1 on beat.

In superscopes, 3 variables define the preset. n is the number of points, x is the x position (-1 to 1) and y is y position. I am not positive what i does, but ususally it is used like this:

x = i*2-1
y=v

giving a basic movement

in movement and dynamic movement, d is distance from the original point, and r is the difference in angle. If you use the rectangular coordinates, x and y are the coordinates (-1 to 1)

in ddm, d is distance


17th November 2002 08:17 UTC

Oh, I got this one.

*ahem*


You've just posted a frequently asked question. The answer can be found in the FAQ (link) or by searching the forums (click "Search the forums" at the top).

We do this all in our spare time, so we're trying our best to avoid unnecessary posts like yours. If you're a new user, welcome to these forums. Feel free to ask other questions, but please take five minutes of your time to make sure it hasn't been asked before: that way you don't have to wait for someone else to answer it, because the answer is already out there...

The AVS forum regulars.


24th November 2002 04:55 UTC

your about to get in the deep end
while most of the avs presets are fairly simple. the one that seem to dance around and look 3d are beyond simple .for example a basic triangle is a^2+b^2=c^2.but in avs it's much more. Like the others say read ahead.if you can get it and break it down in simple terms you'll be the first. don't stop trying avs can really kick ass. good luck and I'll be looking for your post.

happy thanks giving , chris


24th November 2002 16:01 UTC

The deep end

Originally posted by chrisc
a basic triangle is a^2+b^2=c^2
That is totally wrong, I could write a 10,000 dissertation on why that is wrong and still be able to point out more flaws. Thats why it won't work.

Originally posted by chrisc
if you can get it and break it down in simple terms you'll be the first
AVS code is a combination of logic an maths and, as a result, all that you need to know in order to write code of any complexity is an understanding of logic and maths. The reason that its hard to explain a lot of the basics of AVS code is because they are actually fundamental basics, things which are preprogrammed into your brain, basic logic. So it actually couldn't be any simpler... it is virtually impossible to make it any simpler without destroying the functionality, you could change the syntax but it would still be the same thing - a set of instructions which perform basic functions of maths and logic.

If you type a^2+b^2=c^2 into a superscope what do you expect to get? Well I'd expect to get nothing since it doesn't set x or y for a start and because a, b and c haven't been defined. A triangle is a set of three points with lines between them, using some very basic maths and very basic logic you can draw a triangle like this:


Init: n=4;

Per Frame: q=0;

Per Point:
q=q+1;

x=if(bor(equal(q,1),equal(q,4)),0.5,x);
y=if(bor(equal(q,1),equal(q,4)),0.5,y);

x=if(equal(q,2),0.5,x);
y=if(equal(q,2),-0.5,y);

x=if(equal(q,3),-0.5,x);
y=if(equal(q,3),-0.5,y);



Argh!!! Its a mess of code, I don't understand it!!!

So I'll explain it.

x and y are the x and y co-ordinates of the screen.

(normally i would stop there as that should enough explaination for anyone over the age of 10)

lets go through the code slowly:

'init: n=4;' tells the superscope to calculate 4 points

- but a triangle has 3 points why use 4?

Well, when you draw a triangle it goes from point 1 to point 2, then point 2 to point 3, then point 3 to point 1. we tell avs to do this, but since we can only tell it the points to draw the lines between and there is no 'go back to the beginning when you are finished' function we have to define the first point twice, once at the beginning and once at the end.

'per frame: q=0;' this sets a variable 'q' to 0 at the beginning of every frame

- why do this?

because we will need it later.

per point:
q=q+1;

this increases q by one for every point that we draw. so for the first point q=1, the second q=2...

- why do we need to do this?

so that we know which point we are defining in the code.


x=if(bor(equal(q,1),equal(q,4)),0.5,x);

this looks quite imposing but should make sense if you look at it for more than 2 seconds. it says this:

if 'q equals 1' or 'q equals 4' then 'x becomes 0.5' otherwise we leave it as x.

the other if statements do the same sort of thing. remember that q is the number of the point that we are defining so this line of code sets the x co-ordinate of the first and fourth point to be the same thing.

y=if(bor(equal(q,1),equal(q,4)),0.5,y);

this line does the same thing for the y co-ordinate


x=if(equal(q,2),0.5,x);

this sets x to 0.5 if q=2... and so on.


can't understand it - then look at the expression help for a bit. if you still can't understand how to code it then you have nothing but disrespect and hate from me... it means that you are sub-humanly intelligent or your education has been worthless.

25th November 2002 05:56 UTC

too touchy
O.k. I did not write put this "a^2+b^2+c^2" in the super scope.also "a square plus b square equals c square" is pythagoras theorem it's totaly right.



omarello if you can get jheriko as worked as I did maybe he'll explain more. he's better and nicer at helping than others like unconed.


25th November 2002 07:13 UTC

First little tip: NEVER argue with Jheriko about simple, common, and extremely proveable mathematical theory.
a^2+b^2=c^2 is NOT your 'basic triangle', it is the formula to find the length of the hypotenuse of a right triangle (a.k.a. the generalized 2D distance formula)

Also, Jheriko's a dirty little bastard that'll seduce your grandmother AND your grandfather - UnConeD's one of the nicest guys you'll ever get to know. Don't make rash generalizations about people you've hardly had contact with. The only reason he made that long post is because he, like most of us, doesn't have a life and therefore has nothing else to do than write lengthy posts on why you're stupid.


25th November 2002 07:41 UTC

holy $hi*

i asked this question a year ago, and now i get an answer??? my god, the only reason i came back here is because chrisc sent me a PM other than that i totally forgot about this, was busy doing some WA3 skins and some other stuff...

thanx for the help guys i got to learn some avs, but i am not really into it right now, dont have much time.

newasy hope u dont turn this into a flame war.... as there are som many threads turning into flame wars here these days.

take it easy guys

thanx chrisc for reminding me.....

my god one year?????? hehe who found this post??


25th November 2002 12:12 UTC

Michaelthecat resurrected it obviously, just look at the timestamps :).


25th November 2002 13:25 UTC

He resurrected a few threads. :)


25th November 2002 16:46 UTC

*cough* *cough* postpumper *cough* ...


25th November 2002 18:06 UTC

Originally posted by Atero
Also, Jheriko's a dirty little bastard that'll seduce your grandmother AND your grandfather
...
The only reason he made that long post is because he, like most of us, doesn't have a life and therefore has nothing else to do than write lengthy posts on why you're stupid.
I never realised that you held me in such high esteem Atero. And yes the (not so) subtle undertone to my post was 'If you can't understand simple maths and code then you are a retard', but that was mostly because I was in a particularly foul mood at the time. Reading it all though I think I made good sense.

25th November 2002 18:14 UTC

Jheriko: you missed one important thing though. When you say 'read the code and see what it does', most newbies can't understand what you mean. Programming is something that needs to be learnt, and putting logical thought into code is not a born skill.

When I say:

per frame: j=0;
for point: j=j+1;

You can see I'm talking about a counter per point.

However, to some people "j=j+1" makes no sense. How can 'j' equal itself plus one? They don't see it as an assignment, but as a mathematical equation. Only when they understand how the code gets executed (assignment after assignment) can they understand why putting 'x^2 + y^2 = 1' will not draw a circle (and definitely not a triangle).


25th November 2002 19:14 UTC

And, uh, I was joking. You're cool. But I'm still pretty sure you're behind my dog's dissapearance.
Does that imply you're not ALWAYS in a foul mood? ;)


25th November 2002 20:06 UTC

Atero... don't talk about your mother like that :p

(I sincerely hope that you got that one - since I got your joke and was joking back)

UnConeD, I see your point... just. But, it doesn't take a genius to look at code, and what it does, to figure out the rest inbetween. I'm not saying that code can just be looked at and instantly understood, you have to go through it all line at a time to understand what it does... thats why I hate reading code written by others, since I have to read the code to understand what the variables are doing. I can remember first looking at code and not having any issues with things like assignment, its like a word which has multiple meanings, you can understand what it means by the context in which it is used.

I guess what I'm trying to say is that anyone can understand code because it is based on simple logical principles (like mathematical axioms). You just need to find those simple principles for yourself.


3rd December 2002 12:44 UTC

Ridiculoso.
Yeaaaah Hi Lumburg here,

I was just wondering I'm new and I had a question I was wanting to produce an eleven dimensional Fractal with the colour red in the middle, red becuase it reminds me of apples... yes a red fractal apple eleven apple Avs. I was wondering what the variable "eject" does.. When I try in there's no apple only a CD then I have to put him back in again and then it freeze's up my machine. Mind you I'm using the latest General Electric Washmaster 2000. Its got a great frame rate and spin cycle. If some one out there could show me the way of the universe I'd be very greatfull because I'm new at this whole life thing and and well sigmoid(cos(pi),atan(x)) doesnt help me through those rough times when I need a hug..:cry: ...

It's True tho after reading alot of posts UnconeD is a really cool dude..

V:igor: I:igor: s:igor: A:igor: G


3rd December 2002 19:20 UTC

To VIsAG,
You stupid idiot !!!

Yeah well if you want some a those apples,

What you gotta do is multiply fish with goats...

fish*goats;

then squareroot a morsel of dried chicken

sqrt(morsel of dried chicken);

divide your head by the sin of ointment

head/sin(ointment);

and apples ahoy !!! :D here is the attached avs file to show you.

From the real VIsAG:igor:


3rd December 2002 19:41 UTC

visag, don't fucking spam you idiot
this thread was over loooong ago

someone lock this thread :hang:


17th December 2002 22:07 UTC

VisAg, you are funny!

You want to see why? Here's why - the variables and other code in his SSC!

Code follows:

Init:n=1000;goats=0;


PerFrame:goats=goats+.01

PerPoint
:fish=100*(v)/3;
head=(cos(fish)-sin(fish))-.25;
ointment=(sin(fish)+cos(fish))-.25;
x=cos(head+goats)*sin(ointment/head);
y=((ointment/2)+.1);
The above SSC is (c) VisualAgnosia. All rights reserved.

20th December 2002 22:09 UTC


This response is very delayed, I haven't checked the forums in a while, but for the record, I do not deliberatley resurrect old posts...I search for posts with the least number of replies so I can help without repeating information, and it turned out the last few posts I've inadvertantly replied to old posts (I should take a better look at dates...), but I do not do this just to increase my posts.

BTW, I think that posting helpful information is much better than just saying

*cough* *cough* postpumper *cough*
which adds nothing, Atero.