Archive: need help on my great avs


10th June 2006 01:35 UTC

need help on my great avs
I just made this great (2d) avs. Its so nice as one of my first avs but there's 3 big problems about it.

first, it is very slow, and its the worst avs in pixel doubling mode, so dont even try it in full screen.

second, there is this very annoying line appearing for no reason in the middle left side of the screen. Its caused by the grid size in the last dynamove. I would be very very happy if someone would solve this little (im sure its a little problem for pros) problem. Either tell me how to or send a corrected version.

finally, the avs only look very nice with my own songs, not because they're special songs, its because of the file type.
This can be explained with a little story:
There was a time when i beggan this avs, it was about 1 year ago, and at this time, i didn't have internet yet, so i did not have any good songs. The great solution I found is (you can laugh) to record songs from the... radio. And you know, the radio and hid annoying little sound. It just hapens that this annoying sound is what makes my avs look great, caus its a constant noise and when there's nothing in the song, it makes white and its ugly. So put your heaviest song and hope its still nice. Maybe ull find it great with white always, its ur opinion.

Anyway, give me your comments, it will be appreciated.

oh sorry I should have put this thread in avs presets,I just didn't think of it.


10th June 2006 03:26 UTC

It took me 10 sec to fix it after I opened the preset.


Init

t=5;mm=0.1;oo=0;time=0

Frame t=t*0.8+tt*0.2;m=m+mm;o=o*0.8+oo*0.2;

l=if(above(time,4),1,0)
Beat

tt=if(l,(rand(7)+1),tt);mm=-0.8+rand(160)/100;oo=-2+rand(40)/10;
time=time+1;time=time-5*above(time,5)
Pixel

y=(r*t+m)/$PI;x=d*1.2-cos($PI+o)
Your problem was in the pixel area and to be more exact: R*T. I really don't know how to explain it but I just know that if you use it with x, y or d variable you will get that line.

In the zip file there is a version where I just fixed the DM and in the other I deleted some stuff.You can change it however you like for the colours but don't use so much useless things, just remember that if you want your preset to change the colour on beat the best way to do it is: "channel shift".

10th June 2006 03:27 UTC

Also, if you want to see more of my work, and soem of my codings, caus flower explosion was really low on coding, here's a little "pack" of some drawing style presets.Most of them represents 2d games caus I like making games.I did an interactive version of pong, but winamp just crashed when i was finished and :( i did forgot to save... and i was too lazy to do it all again. Remember that those presets weren't created to look great for the eyes, and they do not.


10th June 2006 03:33 UTC

thanks fastin, i know my codes and how i use the effects look noob caus well im a noob. Maybe I'll work on that but
doing presets is not like my "passion". I do that because i like coding and programming and i dont have any other great programs to create codings and great stuff. And hum I dont see any zip file you posted.


10th June 2006 03:55 UTC

Welcome, newbie!
your works are pretty good.

:):up:


10th June 2006 04:00 UTC

Ohh my bad.


10th June 2006 04:36 UTC

hey fastin, the changes you did to the codes just doesn't work caus you can't delete the "r" variable, thats what makes the "kaleodosquope"(dam how do we write this word).Now there's just a big circle.And the "t" changes the number of sides it has. the problem is that it looks like each number of sides need a special grid size, ex. 5 sides need grid 19*19, and I want to know if there's a way to set the grid size in coding.Also I dont put channel shift caus there's only 3 colors.


10th June 2006 14:21 UTC

You have made a pretty nice preset, and I really like the movement in it, although I think it's just slightly too bright.

You can improve the speed by not using replace/replace effect lists. Maybe it makes your preset easier to understand from the avs editor, but it actually doesn't do anything, so you should take out all the components from those effect lists, and delete the ELs.
Also you can decrease the gridsize of the first dm, disable it's bilinear filtering (and inserting a slow fadeout to compensate), remove the brigtness and the first and the third unique color, without any real loss of quality.
Finally it's possible to do some code optimizations, such as calculating color on frame instead of on poit in the first ssc, and it's possible to save the 2nd dm for the /pi calculation (in case you didn't know division is rather slow and should be used as little as possible in per pixel og per point code).

After those optimizations are done you'll probable get about 30 % increase in the framerate. If you want to improve the speed further, you'll have to try to decrease the amount of effect lists and the movements with bilinear filtering.

About the line on the left: It is caused by the fact that the dm tries to smoothen a transition from y = (0*t+m)/pi to y = (2pi*t+m)/pi, which will never look any good (unless you use movement instead, but that wouldn't be dynamic). To fix it you can remove the y code with: y=(asin(sin(r))*t+m)/$pi;
you should however note that this will give a mirror effect, which you may not like.

I've attached a zip containing 2 files, both with the mentioned optimizations, and one with the fix for the line.


10th June 2006 19:58 UTC

Ok I got 2 new versions now. It seems that the line is not removable with "r*t" so I made a version that stays at 7 sides, so there's no line (in editor format). you can change the sides but you will need to change the grid size too. the 2nd version is with dummy's mirror version of the dynamove, and so i can put the "t" variable.
As for the low speed, it just dosen't work to delete all effects, it looks bad, and the speed is not so low caus you dont need to put the preset very big, its still nice in editor size. Finally, I found how to adjust the preset for normal song and its so simple that I feel really stupid, its all in the adjustable blend.Adjust it to your songs and its perfect, well almost. If someone find out a way to delete that line without changing the effect, please say it.


10th June 2006 22:45 UTC

Huzzah! This is maybe the third good newbie I have seen in about a year and a half.


11th June 2006 01:01 UTC

Nothing too special, but it's better than the regular noob bull.

Btw. Try the 3rd version with XOR selected in the Effect List containing the Blurs and the Color Clips. I like it best that way.