Go Back   Winamp Forums > Visualizations > AVS > AVS Presets

Reply
Thread Tools Search this Thread Display Modes
Old 13th February 2004, 09:57   #1
your-dentist
Junior Member
 
Join Date: Jan 2004
Location: berlin, germany
Posts: 44
Talking Single Superscope Preset: Überflow

Refraction turned out to be a lot tougher than expected ,so I had to start at the lowest level and got stuck soon.
So I turned to one of my unfinished projects, the Überscope http://www.deviantart.com/view/4931276/.
Now here's the result, I wrote a total new system for the grid (based on some codesniffing in UnConeD's Seismogrid) and made it much easier to handle, you can now access the X- and the Y-coordinates of every single point on the grid. That way it is possible to make very flexible 3d-grid-superscope-objects now (think of a cloth that falls physically correct - might be possible with huge efforts). All I want you to do, is to tell me how you like it, give tips on improving, or even making another gridbased object out of it and post it here. Please also read the comment in the preset for more information.
Well, that's what to be had said before, now here's the link:
http://collective.valve-erc.com/data.../uberstuff.zip (made on winamp5.1)
The torus is just for fun. Made it in 5 minutes, that's why i didn't fix the deformation.
your-dentist is offline   Reply With Quote
Old 13th February 2004, 21:24   #2
Jaak
Major Dude
 
Jaak's Avatar
 
Join Date: Jan 2003
Location: Estonia.
Posts: 851
yes nice coding bla bla bla blaaa....


but its so stupid to do same thing with one ssc and f_cking your brains out if you can do the same thing with 2 superscopes without any problems... really pointless in my mind

Phi = (1+sqrt(5))/2
Jaak is offline   Reply With Quote
Old 13th February 2004, 21:49   #3
anubis2003
Forum King
 
anubis2003's Avatar
 
Join Date: Dec 2002
Location: middle of somewhere
Posts: 5,564
Send a message via AIM to anubis2003
The seismogrid like thing is okay - but it's not too original.

Also, the torus - the colors - there's a straight line where the color doesn't smoothly change - use a coloring algorithm that is mirrored - so the point where the end meets the beginning still is smooth
anubis2003 is offline   Reply With Quote
Old 16th February 2004, 09:24   #4
your-dentist
Junior Member
 
Join Date: Jan 2004
Location: berlin, germany
Posts: 44
actually this was just an example for the grid system.
though no one really seems to be interrested in this here is one more cool thing:
a 3x3 patchgrid,
grab it
your-dentist is offline   Reply With Quote
Old 16th February 2004, 11:43   #5
Jaak
Major Dude
 
Jaak's Avatar
 
Join Date: Jan 2003
Location: Estonia.
Posts: 851
bezier patch is like sooo 1 year ago.... imo bezier is much much easyer and smaller than your method... just google for it, now you can do bezier batch with any control points, we have loops and unlimited number of varables one can use

if you REALLY want i can use my sucky english and "l33t" math skill to explain how to do the bezier in avs very easily

Phi = (1+sqrt(5))/2
Jaak is offline   Reply With Quote
Old 16th February 2004, 12:53   #6
your-dentist
Junior Member
 
Join Date: Jan 2004
Location: berlin, germany
Posts: 44
Quote:
Originally posted by Jaak
if you REALLY want i can use my sucky english and "l33t" math skill to explain how to do the bezier in avs very easily
well I really want you to do so.
I'll also google for it, but a personell explaination is always better.
your-dentist is offline   Reply With Quote
Old 16th February 2004, 14:19   #7
Jaak
Major Dude
 
Jaak's Avatar
 
Join Date: Jan 2003
Location: Estonia.
Posts: 851
oh well, ill try:

first thing you need to do, is to solve (a+b)***711;(n-1) wile n is the number of control points, so if you want 3 control points then you get:

a***711;2+2*a*b+b***711;2 ,if 5 then:
a***711;4 + 4*a***711;3*b + 6*a***711;2*b***711;2 + 4*b***711;3*a + b***711;4

now you got to multiply each.. err... step, or whatever its called with coordinate of each control point, so with 3 control points you get:

x=x1*a***711;2+x2*2*a*b+x3*b***711;2;
y=y1*a***711;2+y2*2*a*b+y3*b***711;2;

where (x1,y1),(x2,y2) and (x3,y3) are control points of the line
only yhing you have to do now is:

a=1-i;
b=i;
x=x1*a***711;2+x2*2*a*b+x3*b***711;2;
y=y1*a***711;2+y2*2*a*b+y3*b***711;2;

thats how the bezier curves work in 2d for avs, for patch is little more complicated, and i really think i do not have skill to explain this one, so ill just post a preset.
preset is done in time we didnt have loops and megabuffers, so you can make it with much less code, its 5x5 point bezier patch, UCD had 4x4 one allready, so thought to do the 5x5...

as a hint i can say, think about this line of code:
p6=p1*sqr(1-hy)*sqr(1-hy) + p2*4*sqr(1-hy)*(1-hy)*hy + p3*6*sqr(1-hy)*sqr(hy) + p4*4*sqr(hy)*hy*(1-hy) + p5*sqr(hy)*sqr(hy);
http://www.acko.net/dumpx/jaak/5x5%20(2).zip

[edit: Stretch fix
-- UnConeD]

Phi = (1+sqrt(5))/2
Jaak is offline   Reply With Quote
Old 17th February 2004, 21:52   #8
Shock Value
Senior Member
 
Shock Value's Avatar
 
Join Date: Aug 2002
Location: USA
Posts: 158
That bezier patch preset is nice. Add more effects to make it more aesthetic and more aggressive music visualization and you've got a winner.
Shock Value is offline   Reply With Quote
Old 18th February 2004, 09:55   #9
your-dentist
Junior Member
 
Join Date: Jan 2004
Location: berlin, germany
Posts: 44
thanks for your help, but I've already found a tut on bezier stuff on google. I still have problems with bezier patches.
well, for a short look here are my presets:
cubic bezier curve
bezierpatch (not working)
I'll look at the preset, but I'm busy right now.

[edit]btw: what are gmegabuff and megabuff good for (they store something to a one million buffer, but what does that mean?)

Last edited by your-dentist; 18th February 2004 at 10:30.
your-dentist is offline   Reply With Quote
Old 18th February 2004, 14:58   #10
UIUC85
Senior Member
 
UIUC85's Avatar
 
Join Date: Oct 2003
Posts: 272
they are arrays. gmegabuff holds global vars and megabuff holds normal vars
UIUC85 is offline   Reply With Quote
Old 23rd February 2004, 09:32   #11
your-dentist
Junior Member
 
Join Date: Jan 2004
Location: berlin, germany
Posts: 44
Whooho! I love megabuf!
Just one more thing!
A 9x9 beziersurface!
The comment is not complete, so thanks to Jaak!
Attached Files
File Type: zip yd_9x9.zip (2.2 KB, 54 views)
your-dentist is offline   Reply With Quote
Old 26th February 2004, 01:45   #12
jheriko
Forum King
 
jheriko's Avatar
 
Join Date: Aug 2002
Location: a twist in the fabric of space
Posts: 2,149
Send a message via ICQ to jheriko
That Bezier patch looks pretty cool. The preset and colours are a bit ugly though.. the starfield serves no purpose either. Nice tech.. but the looks need some work.

Using lots of control points for a Bezier sounds good.. but its quite expensive for a huge patch (like a landscape) so a good idea is to tile lots of smaller ones. Doing this with bicubics is possible but I don't know how to do it myself. :/

-- Jheriko

'Everything around us can be represented and understood through numbers'
jheriko is offline   Reply With Quote
Old 27th February 2004, 17:07   #13
your-dentist
Junior Member
 
Join Date: Jan 2004
Location: berlin, germany
Posts: 44
well, this 9x9 patch thingy was just a test for the AVS. since it's so slow and I doupt that I can increase the speed with optimization I wont make a serious preset out of it.

using several bicubic isn't tough at all, if you know the basics for beziercurves and patches, you can simply combine them.
(me is one of those who'd try to put 9 bicubics or even more into one single superscope *hrhr*)
the biggest problem with a landscape is that you would have to use voxels to make it look real.(like UnConeDs mission to mars) and i think that a more or less complex combination of sine function can form a realistic landscape with way less loss of speed.
i thought of some kind of dove-wings-bezierpatch-preset or a cloth as realistic as possible.
your-dentist is offline   Reply With Quote
Old 2nd March 2004, 07:47   #14
your-dentist
Junior Member
 
Join Date: Jan 2004
Location: berlin, germany
Posts: 44
err!
what about bezier tentacles.
ultra high definition tentacles not only three or four points.
have a look.
Attached Files
File Type: zip yd_beziertentacles.zip (1.5 KB, 56 views)
your-dentist is offline   Reply With Quote
Old 2nd March 2004, 08:18   #15
UIUC85
Senior Member
 
UIUC85's Avatar
 
Join Date: Oct 2003
Posts: 272
Do you know any good sites about patches and bezier curves? Those are a few subjects I could use a few good sources on.
UIUC85 is offline   Reply With Quote
Old 2nd March 2004, 11:18   #16
your-dentist
Junior Member
 
Join Date: Jan 2004
Location: berlin, germany
Posts: 44
try this one:
http://www.cc.gatech.edu/classes/AY2...ing/bezier.pdf
i just googled for bezier curves when i wanted to learn the formula. this pdf explained it very good, to my mind
your-dentist is offline   Reply With Quote
Reply
Go Back   Winamp 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