|
|
#41 |
|
Major Dude
Join Date: May 2003
Location: Australia
Posts: 1,353
|
no, arrays are a very good idea, and would be extremely usefull. They would certainly allow us to do many things that we have been otherwise putting off. Such as propper tentacle effects, and speeding up older presets by making more complicated things into single scopes.
I dont think they would scare off the new comers, as they dont need to know about them if they dont understand it. But still, i think its vital that the released version of 2.8 is just as stable as 2.6 is. |
|
|
|
|
|
#42 |
|
Whacked Moderator
Join Date: Jun 2001
Posts: 2,104
|
I'd say no arrays for now. They'd only be really useful with proper looping control structures (though you could always use a skip=1 superscope as a for loop
).
|
|
|
|
|
|
#43 |
|
Moderator
|
yeah, With no looping it is a real pain and will deminish the usefulness of arrays.
"Rules are for the guidance of wisemen and the obedience of fools" Visuals - Morphyre www.Morphyre.com |
|
|
|
|
|
#44 |
|
Major Dude
Join Date: Jan 2003
Location: Estonia.
Posts: 851
|
grrr... thats no good
Phi = (1+sqrt(5))/2 |
|
|
|
|
|
#45 |
|
Forum King
|
I have a ton of things I could use arrays for, and I'm sure that most of the other advanced programmers here do to. It's not something I'd want to stall the release of WA5 over, but I would *REALLY* like to see some proper array management. I'll be blunt - that arrayalloc() shit sucks major ass. Like I said before, if that gets implemented, people will start using that and then there'll be no way to change it. I know it'd be a lot of major work, and I appreciate that - you're only human (well, to us you're an uberhuman) - but I think trying to use a bad form of array management would be a really bad idea. As for garbage collection, why not create an internal list of every $global created, and then when a preset is turned off, delete all $globals in that list? Or, when the preset is turned off, look through all the variables and delete all the ones that start with $ (or whatever other marking they'll get)? Another thing I'd still like to see is a user-expandable varlib. I don't know if this is possible, and if it's not I'd like to see it expanded again, especially if we're gonna be using arrays. (I'm going to assume for now that array[5][5] will take up 25 variable slots, correct me if I'm wrong). justin is k1ng!!1 "guilt is the cause of more disauders than history's most obscene marorders" --E. E. Cummings |
|
|
|
|
|
#46 |
|
Senior Member
Join Date: May 2003
Posts: 101
|
I think making one global array, like global variables, will be _realy_ good.
Global variables are almost ok, they'll be perfect if they could be accessed like this: code: Or, if you'd like to continue using function only on the right side of equation, use this for setting value: code: It's like eval("reg"+number+"=blahblah"); stuff in other languages ![]() And to access arrays with standard syntax ( array[ level1 ][ level2 ] ) will be hard (impossabile?) to program in just a few days, I understand. I thing one 1-dimentional array will be enough for the first time. P.S. maybe you don't want to do major stuff with AVS because it's free and doesn't do any good for you - maybe you should make a donation stuff, I'll give you 50$ or more if you do
|
|
|
|
|
|
#47 |
|
Major Dude
|
Fragmer : Numbers work just fine.
For the second part... don't be lazy. 1-D array... It *can* be made into a 2D with a little improvisation I guess. [soon to leave, sirs] |
|
|
|
|
|
#48 |
|
Major Dude
Join Date: May 2001
Location: somewhere else
Posts: 1,286
|
I searched, but didn't see this mentioned before:
When you take the sign of a global variable, it is always 1 or -1, never 0. powered by C₈H₁₀N₄O₂ |
|
|
|
|
|
#49 | |
|
Moderator Alumni
Join Date: Apr 2000
Location: USA
Posts: 315
|
Quote:
![]() -J |
|
|
|
|
|
|
#50 |
|
Major Dude
Join Date: Jan 2003
Location: Estonia.
Posts: 851
|
make limit for times running a loop, or something like that
Phi = (1+sqrt(5))/2 |
|
|
|
|
|
#51 |
|
Foorum King
Join Date: Jul 2003
Location: bar2000
Posts: 11,457
|
or only implement finite loops (for..next)
|
|
|
|
|
|
#52 |
|
Major Dude
Join Date: Feb 2003
Location: Somewhere in Canada
Posts: 776
|
Now that someone mentioned it. I think loops might be much more useful than arrays. As for the infinite loop problem you have two choices, you could trust people not to send presets into an infinite loop. Or do what gaekwad2 said. I think the first would be better.
Maybe a harder but overall better solution would be to put in some kind of feature that allows presets made by other people to use loops. But doesn't allow n00bs to use loops unless a checkbox in the display options is checked. That way n00bs who don't need loops simply can't use them unless the checkbox is on. Which would prevent idiots from accidentally sending there presets into infinite loops. Darn, I can't think of anything to put here. |
|
|
|
|
|
#53 |
|
Member
|
Justin, would it be possible to make render/text display more than one line of text?
|
|
|
|
|
|
#54 |
|
Senior Member
Join Date: Aug 2002
Location: USA
Posts: 158
|
In Macromedia Flash, if a loop goes for too long (I think about 10 seconds) a popup comes up asking if you would like to abort the script. This happens every ten seconds if you select not to abort but the script is still looping. Perhaps this can be implemented in AVS.
|
|
|
|
|
|
#55 |
|
Moderator Alumni
Join Date: Apr 2000
Location: USA
Posts: 315
|
OK I'll think about loops and arrays, and we'll do it later (post wa5.0).
Here is avs 2.8b2, which mainly just fixes the sscope skip bug in b1. http://www.firehose.net/~deadbeef/avs28b2.zip Ideally this will be the ver in wa5.0 that launches, well, any day now... -Justin |
|
|
|
|
|
#56 |
|
Senior Member
Join Date: May 2003
Posts: 101
|
I think arrays will be more useful than loops. I mean, loops are great, but priority of arrays is above loops.
Arrays will enable particle engines, complex random-scopes, complex flows etc. What major improvements can loops make? And - preset is recompiled at any change, every time you check a checkbox or type a symbol. Imagine that you're typing code and you didn't finish it and it's already compiled - and does infinite loop. Imagine how much harder it is to build loops (with standart syntax I mean) than arrays? I'm voting for arrays first! |
|
|
|
|
|
#57 |
|
Forum King
|
I'd say they are the same priority. A lot of things that you would want to do with arrays can't be done til loops are implemented.
I have a feeling they will both be added at the same time to AVS. |
|
|
|
|
|
#58 |
|
Major Dude
Join Date: Jan 2003
Location: Estonia.
Posts: 851
|
yuh, arrays are nuffin without loops...
but thing i vote for is less buggier avs, this is above everything
Phi = (1+sqrt(5))/2 |
|
|
|
|
|
#59 |
|
Forum King
|
arrrays aren't nothing without loops - they are just a bit less. You can still use arrays to draw a cube or something much easier - just use array[curr_pixel] to get the predefined vertice for the 3D figure.
For example: square INIT: n=6;vertices[6][2]={{-1,-1},{-1,1},{1,1},{1,-1}}; FRAME: q=0; PIXEL: x=vertices[q][0];y=vertices[q][1]; q=q+1; Then it would be really cool if matrix/array math was added. 3D rotation and just about everything would be a bit easier, although possibly not faster. |
|
|
|
|
|
#60 |
|
Major Dude
Join Date: Feb 2002
Location: Leipzig / Germany
Posts: 859
|
IMO, it's more important to get avs stable and to do some "small" improvementsto avs right now like multiline text and maybe some others to have a proper release ready for WA5.
There's been so much progress that it might take me a few months to work all the stuff out i could do with those new features. I agree that arrays, looping and a better assignment structure are valueable but for now they're not nessecary. People have been messing around with avs for about 2 years without any changes, tweaking it to the max of its possibillities. Now, there's a flood of new stuff and peopel keep on asking for more although it's been barely used yet. Let's leave this stuff for coming up releases.
|
|
|
|
|
|
#61 |
|
Forum King
|
that's a good idea anubis, didn't think of that. which is funny cos i've wished for it in cpp for a long time
![]() (of course if it's there i'd never know about it cos i'm a n00b cpper) btw justin, it's really not that hard to make avs crash (or at least lock up). i've done it several times before. i can never repeat it, but it's entirely possible. all you really have to do is make it do a TON of slow operations all at once. you might even be able to do something like: init: n=pow(w*h,2) point: n=n+1;p=p+1;x=p*n*pow(-1,p)*cos(p);y=p*n*pow(-1,p)*sin(p);red=p/0; at some point i'll make a special "fuck you" preset that just crashes avs just for you justin
"guilt is the cause of more disauders than history's most obscene marorders" --E. E. Cummings |
|
|
|
|
|
#62 |
|
Major Dude
Join Date: Aug 2003
Posts: 682
|
I have a question. Is there a posability that fullscreen on a second monitor feature could be added to the AVS. You can see my specs. I noticed that in the modern skin If I click the full screen button in the video window it goes full screen on whatever monitor the window occupies.
I hope that made sense. I'd like to see that same feature added to the AVS if possible. Also I am aware that milkdrop is supposed to do that. But I cant get it to work. Why make something idiot proof?? Someone will only make a better idiot! |
|
|
|
|
|
#63 |
|
Senior Member
Join Date: Aug 2002
Location: right around the corner
Posts: 223
|
i didnt think idd ever say this, but...
FAQ I hate signatures!! *bangs his head on the keyboard in hope of getting an idea* Ufihreevf43n98pevfr |
|
|
|
|
|
#64 |
|
Major Dude
Join Date: Aug 2003
Posts: 682
|
Um yeah, I just looked at the FAQ and I could not find anything relevant to my post.
Why make something idiot proof?? Someone will only make a better idiot! |
|
|
|
|
|
#65 |
|
Foorum King
Join Date: Jul 2003
Location: bar2000
Posts: 11,457
|
yeah it's in current avs wishlist
|
|
|
|
|
|
#66 |
|
Major Dude
Join Date: Aug 2003
Posts: 682
|
OK, fine then
/me stomps off back to Winamp5 disscusion. Why make something idiot proof?? Someone will only make a better idiot! |
|
|
|
|
|
#67 |
|
Major Dude
|
any mirrors for the new avs 2.8b2?
EDIT: Nevermind. However, any mirrors might be good for other users. |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|