Old 10th October 2003, 09:01   #1
skupers
Senior Member
 
skupers's Avatar
 
Join Date: Aug 2002
Location: the Netherlands
Posts: 207
Send a message via AIM to skupers
Cool 3d Timescope (for AVS2.70)

With the 256 variables of AVS2.70 (thank you, Justin!), I was finally able to make a 3d timescope. I'll tell you about some of the tricks used in the scopes.

It uses rounding to put the getspec data for 5 frequencies (gi0, gi1, gi2, gi3, gi4) in a single variable (g1):

code:

Frame:

gi0=((getspec(0,0,0))*100)%100/100;
gi1=((getspec(0.05,0,0))*100)%100/100;
gi2=((getspec(0.1,0,0))*100)%100/100;
gi3=((getspec(0.2,0,0))*100)%100/100;
gi4=((getspec(0.3,0,0))*100)%100/100;

g1=gi0+gi1*100+gi2*10000+gi3*10000*100+gi4*10000*10000;



And then in pixel it puts all that getspec data in different variables (j4, j3, j2, j1, (j0)). j0 isn't actually created in the preset, it's included in the z1.

code:

pixel:

j4=(j/10000/10000*100)%100/100;j4=if(above(j4*10000*10000,j),j4-0.01,j4);
j3=((j-j4*10000*10000)/10000/100*100)%100/100;j3=if(above(j3*10000*100,j-j4*10000*10000),j3-0.01,j3);
j2=((j-j3*10000*100-j4*10000*10000)/10000*100)%100/100;j2=if(above(j2*10000,j-j3*10000*100-j4*10000*10000),j2-0.01,j2);
j1=((j-j2*100*100-j3*10000*100-j4*10000*10000)/100*100)%100/100;j1=if(above(j1*100,j-j2*10000-j3*10000*100-j4*10000*10000),j1-0.01,j1);
j0=j-j1*100-j2*10000-j3*10000*100-j4*10000*10000;



I have a question though: how many digits can a variable hold? This preset goes from 0.01 to 10000000, but if you could use more, a lot more frequencies can be included.

Is it possible to do some kind of int() function, because the way I round the numbers (var*100)%100/100 requires an extra line in the section with j4, j3, j2 and j1, because it rounds. That means that when var=1.67, it rounds to 2, when I want 1. The line j4=if(above(j4*10000*10000,j),j4-0.01,j4); can fix that, but an int()-like function would be faster.
Attached Files
File Type: zip skupers - 3dtimescope.zip (1.3 KB, 148 views)
skupers is offline   Reply With Quote
Old 10th October 2003, 09:16   #2
Jaak
Major Dude
 
Jaak's Avatar
 
Join Date: Jan 2003
Location: Estonia.
Posts: 851
i have no idea how that works but it looks great

Phi = (1+sqrt(5))/2
Jaak is offline   Reply With Quote
Old 10th October 2003, 10:42   #3
Deamon
Major Dude
 
Deamon's Avatar
 
Join Date: Nov 2002
Location: Arnhem, the Netherlands
Posts: 927
It looks neat Though would indeed be better with more frequencies. I can't help you with that though, my math level is very low. Sorry dude.

.:HyperNation @ winamp:. .:DeviantArt:.
Thermal is now available for download at DeviantArt.
Deamon is offline   Reply With Quote
Old 10th October 2003, 11:12   #4
Zevensoft
Major Dude
 
Zevensoft's Avatar
 
Join Date: Apr 2002
Location: Ballarat, Australia
Posts: 529
Ah ha! Now I have an idea that will defeat UnConeD! >:]

1 | 2 | 3 | 4 | 3W | 4WW
Zevensoft is offline   Reply With Quote
Old 10th October 2003, 11:16   #5
Deamon
Major Dude
 
Deamon's Avatar
 
Join Date: Nov 2002
Location: Arnhem, the Netherlands
Posts: 927
Yeah? You've seen his tokyo preset? Watch in on acko.net . If you defeat that, you're good

.:HyperNation @ winamp:. .:DeviantArt:.
Thermal is now available for download at DeviantArt.
Deamon is offline   Reply With Quote
Old 10th October 2003, 22:45   #6
dirkdeftly
Forum King
 
dirkdeftly's Avatar
 
Join Date: Jun 2001
Location: Cydonia, Mars
Posts: 2,651
Send a message via AIM to dirkdeftly
damn, whenever i have good ideas someone else does them first....:|

anyway, nice, but it could be a bit bigger...i mean, you're only really using 5 frequencies*12 memory=60 positions (correct?), and you could nearly do all that in the old avs....

"guilt is the cause of more disauders
than history's most obscene marorders" --E. E. Cummings
dirkdeftly is offline   Reply With Quote
Old 10th October 2003, 23:09   #7
Yathosho
Forum King
 
Yathosho's Avatar
 
Join Date: Jan 2002
Location: AT-DE
Posts: 3,366
maybe skupers is holding back the final (bigger) version for his pack?
Yathosho is offline   Reply With Quote
Old 11th October 2003, 00:43   #8
UnConeD
Whacked Moderator
 
UnConeD's Avatar
 
Join Date: Jun 2001
Posts: 2,104
Did you have to stretch the page?

UnConeD is offline   Reply With Quote
Old 11th October 2003, 09:32   #9
skupers
Senior Member
 
skupers's Avatar
 
Join Date: Aug 2002
Location: the Netherlands
Posts: 207
Send a message via AIM to skupers
Quote:
Originally posted by UnConeD
Did you have to stretch the page?
Did doesn't look stretched on my computer...

Anyway, maybe you know how many digits a variable can hold.
skupers is offline   Reply With Quote
Old 11th October 2003, 13:20   #10
Pixelcraft
Wildly Confused
(Major Dude)
 
Pixelcraft's Avatar
 
Join Date: Jan 2003
Location: Minnesota
Posts: 1,204
It's Whitecap in AVS! Remember Whitecap? By good ol' Andy O'Meara? Yup I remember this. Very cool

"It's like saying give a man a Les Paul guitar and he becomes Eric Clapton, and of course that's not true, give a man an amplifier and a synthesizer and he doesn't become...whoever; he doesn't become us." - Roger Waters
Pixelcraft is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Visualizations > AVS > AVS Presets

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 Off
HTML code is Off

Forum Jump