Old 6th December 2003, 16:30   #41
sidd
Major Dude
 
sidd's Avatar
 
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.
sidd is offline   Reply With Quote
Old 6th December 2003, 17:12   #42
UnConeD
Whacked Moderator
 
UnConeD's Avatar
 
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 ).

UnConeD is offline   Reply With Quote
Old 6th December 2003, 17:58   #43
Rovastar
Moderator
 
Join Date: Jun 2001
Location: London, England
Posts: 3,632
Send a message via AIM to Rovastar
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
Rovastar is offline   Reply With Quote
Old 6th December 2003, 18:04   #44
Jaak
Major Dude
 
Jaak's Avatar
 
Join Date: Jan 2003
Location: Estonia.
Posts: 851
grrr... thats no good

Phi = (1+sqrt(5))/2
Jaak is offline   Reply With Quote
Old 6th December 2003, 18:36   #45
dirkdeftly
Forum King
 
dirkdeftly's Avatar
 
Join Date: Jun 2001
Location: Cydonia, Mars
Posts: 2,651
Send a message via AIM to dirkdeftly

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
dirkdeftly is offline   Reply With Quote
Old 6th December 2003, 23:40   #46
fragmer
Senior Member
 
fragmer's Avatar
 
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:
reg( variable ) = value; // set value
and blahblah = reg( variable ); // read value


Or, if you'd like to continue using function only on the right side of equation, use this for setting value:
code:
value = reg( variable ); // almost same thing

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
fragmer is offline   Reply With Quote
Old 7th December 2003, 00:49   #47
Nic01
Major Dude
 
Nic01's Avatar
 
Join Date: Mar 2002
Location: The Biggest Little City
Posts: 508
Send a message via AIM to Nic01
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]
Nic01 is offline   Reply With Quote
Old 7th December 2003, 01:03   #48
mikm
Major Dude
 
mikm's Avatar
 
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₂
mikm is offline   Reply With Quote
Old 7th December 2003, 07:17   #49
justin
Moderator Alumni
 
Join Date: Apr 2000
Location: USA
Posts: 315
Quote:
Originally posted by UnConeD
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 ).
My fear of adding loop capability would be what if a preset does an infinite loop?

-J
justin is offline   Reply With Quote
Old 7th December 2003, 09:07   #50
Jaak
Major Dude
 
Jaak's Avatar
 
Join Date: Jan 2003
Location: Estonia.
Posts: 851
make limit for times running a loop, or something like that

Phi = (1+sqrt(5))/2
Jaak is offline   Reply With Quote
Old 7th December 2003, 12:08   #51
gaekwad2
Foorum King
 
gaekwad2's Avatar
 
Join Date: Jul 2003
Location: bar2000
Posts: 11,457
or only implement finite loops (for..next)
gaekwad2 is offline   Reply With Quote
Old 7th December 2003, 16:09   #52
hungryskull
Major Dude
 
hungryskull's Avatar
 
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.
hungryskull is offline   Reply With Quote
Old 7th December 2003, 17:57   #53
OnionRingOfDoom
Member
 
OnionRingOfDoom's Avatar
 
Join Date: Nov 2003
Location: Brookly, NYC
Posts: 72
Send a message via AIM to OnionRingOfDoom
Justin, would it be possible to make render/text display more than one line of text?
OnionRingOfDoom is offline   Reply With Quote
Old 7th December 2003, 18:26   #54
Shock Value
Senior Member
 
Shock Value's Avatar
 
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.
Shock Value is offline   Reply With Quote
Old 7th December 2003, 21:33   #55
justin
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
justin is offline   Reply With Quote
Old 7th December 2003, 22:17   #56
fragmer
Senior Member
 
fragmer's Avatar
 
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!
fragmer is offline   Reply With Quote
Old 8th December 2003, 04:22   #57
anubis2003
Forum King
 
anubis2003's Avatar
 
Join Date: Dec 2002
Location: middle of somewhere
Posts: 5,564
Send a message via AIM to anubis2003
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.
anubis2003 is offline   Reply With Quote
Old 8th December 2003, 04:41   #58
Jaak
Major Dude
 
Jaak's Avatar
 
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
Jaak is offline   Reply With Quote
Old 8th December 2003, 05:38   #59
anubis2003
Forum King
 
anubis2003's Avatar
 
Join Date: Dec 2002
Location: middle of somewhere
Posts: 5,564
Send a message via AIM to anubis2003
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.
anubis2003 is offline   Reply With Quote
Old 8th December 2003, 06:09   #60
Magic.X
Major Dude
 
Magic.X's Avatar
 
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.


-=[The Ultimate VJ-Tool for AVS]=-

Hotlist 2.3 developement thread (old)
Magic.X is offline   Reply With Quote
Old 8th December 2003, 09:51   #61
dirkdeftly
Forum King
 
dirkdeftly's Avatar
 
Join Date: Jun 2001
Location: Cydonia, Mars
Posts: 2,651
Send a message via AIM to dirkdeftly
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
dirkdeftly is offline   Reply With Quote
Old 8th December 2003, 16:15   #62
WhiteRayven
Major Dude
 
WhiteRayven's Avatar
 
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!
WhiteRayven is offline   Reply With Quote
Old 8th December 2003, 19:20   #63
fsk
Senior Member
 
fsk's Avatar
 
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
fsk is offline   Reply With Quote
Old 8th December 2003, 21:00   #64
WhiteRayven
Major Dude
 
WhiteRayven's Avatar
 
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!
WhiteRayven is offline   Reply With Quote
Old 8th December 2003, 21:31   #65
gaekwad2
Foorum King
 
gaekwad2's Avatar
 
Join Date: Jul 2003
Location: bar2000
Posts: 11,457
yeah it's in current avs wishlist
gaekwad2 is offline   Reply With Quote
Old 8th December 2003, 22:03   #66
WhiteRayven
Major Dude
 
WhiteRayven's Avatar
 
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!
WhiteRayven is offline   Reply With Quote
Old 8th December 2003, 23:19   #67
jmatthews112
Major Dude
 
Join Date: Jun 2003
Posts: 1,661
Send a message via AIM to jmatthews112 Send a message via Yahoo to jmatthews112
any mirrors for the new avs 2.8b2?

EDIT: Nevermind. However, any mirrors might be good for other users.
jmatthews112 is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Visualizations > AVS

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

Forum Jump