|
|
#1 |
|
Junior Member
Join Date: Jan 2004
Location: berlin, germany
Posts: 44
|
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. |
|
|
|
|
|
#2 |
|
Major Dude
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 |
|
|
|
|
|
#3 |
|
Forum King
|
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 |
|
|
|
|
|
#5 |
|
Major Dude
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 |
|
|
|
|
|
#6 | |
|
Junior Member
Join Date: Jan 2004
Location: berlin, germany
Posts: 44
|
Quote:
I'll also google for it, but a personell explaination is always better. |
|
|
|
|
|
|
#7 |
|
Major Dude
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 |
|
|
|
|
|
#8 |
|
Senior Member
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.
|
|
|
|
|
|
#9 |
|
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. |
|
|
|
|
|
#10 |
|
Senior Member
Join Date: Oct 2003
Posts: 272
|
they are arrays. gmegabuff holds global vars and megabuff holds normal vars
|
|
|
|
|
|
#11 |
|
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! |
|
|
|
|
|
#12 |
|
Forum King
|
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. :/ |
|
|
|
|
|
#13 |
|
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. |
|
|
|
|
|
#14 |
|
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. |
|
|
|
|
|
#15 |
|
Senior Member
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.
|
|
|
|
|
|
#16 |
|
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 |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|