Skip to content
Forum Archive

new AVS with mouse/kb support

60 posts

justin#

new AVS with mouse/kb support

OK added a new eval function, getkbmouse(), that lets you query the mouse position, button states, and keyboard button states. I'll let you guys figure out the implications of this (interactive presets, games, whatnot). Here's the latest DLL:



Word. Try a superscope like this:


mousex=getkbmouse(1);
mousey=getkbmouse(2);
mousea=atan2(mousex,mousey);
x=(i-0.5)*mousex - v *0.5*cos(mousea);
y=(i-0.5)*mousey + v*0.5*sin(mousea);
red=if(getkbmouse(3),0,1);
-Justin

P.S. Edit:
"<THEMike> db|not|at|home: why say "I'll let you guys figure out the implications of this" then tell them what they are?"

Well, because you guys always blow me away, so what I think the implications are and what they will turn out to be will likely be very different =)
justin#
I made an AVSpaint preset, haha.
Turn off clear framebuffer, set blend mode to additive, and
superscope with n=2:


x=if(i,getkbmouse(1),lastx);
y=if(i,getkbmouse(2),lasty);
red=getkbmouse(3);
blue=red;
green=red;
lastx=if(i,x,lastx);
lasty=if(i,y,lasty);

ha ha.
QuadHeliX#
OMG yes!! The Matrix trilogy skin AVS will be the first to use it, we got some neat Texer 2 stuff in there that needs mouse support!! Justins been eatin his Wheaties.
justin#
And here's my first hacked up game, hehe.
based on unconed's and gaekwad2's presets.
Jaak#
Thise is sweet Justin, now there is only two things i w8 🙂
arrays and vectors 😉

[edit]
oh bloody darn! I just noticed how good is the mouse controlled rotation, fianly I dont have to worry if the face of plyherdon is in correct spot YAY!
And avs games, I am allready expecting something very cool from some ppl :]
A M A Z I N G
[/edit]
Jaak#
\o/

if i find somewhere how rot. dalay works im gonna do 3d one also 🙂
YtseJam#
AVS games? I think once this becomes a trend, I might finally have a reason to install AVS. Very neat...
UnConeD#
"Reason to install AVS?"

Heathen!

By the way, nemo, mousecontrol might still be useful for VJing and such. Don't dismiss the idea.
blazer1504#
WTF!

hey with this version the fps doesn't jam into 32 or 64 animo (like it did with all the earlier versions) !!!! YAY!😱
UIUC85#
I'm not downloading all this until it is officially released so here's an idea for someone to work with. Since we can make games I think a real time DDR preset would rock
Raz#
Hmm, that sonic preset that zevensoft made is seeming like we'll be seeing something good in the not too distant future. 😁

Thanks Justin. 👍
skupers#
Wow, this is sweet. Justin is tha man. A few months ago, all us avsers thought that avs wasn't going to be updated anymore. Now we got things we didn't even dream of. I think I speak for the whole AVS community, when I say: 'Thank you, Justin'!
UIUC85#
If you dont mind me asking, when is Winamp 5 going to be officially released? I thought it was supposed to be in mid October?
Deamon#
Who gives a fuck, as long there is no final version, updates like this can always happen 😁. I love it. Btw, I think I'm getting a hang at this... sweeet 🙂.
Shock Value#edited
Very nice! Blazer's right, no more locking to 64fps. Mouse controls - awesome! Check it out. Click and hold to ignite, use mouse position to control direction.

EDIT: I just hope you get the crashy bugs out of this version of AVS before it is released. So far it has crashed three times today while editing presets. Unfortunately I couldn't find any specific causes - just out of nowhere a hang, and then an end program popup. Again though, great work Justin!
sidd#
ack, sob... this just revolutionises avs.

sob

so many uses
...

however.. i still stand by the idea that vis' should be just a sit back and watch thingo.

but games are different, w00t!
[Ishan]#
yay!!!!!! oh man this is just so f*cking sweet 😁😁😁
oooh mouse sentivity would kick ass!!!😁😁
Tuggummi#
Originally posted by NemoOrange
so much for music visualization.
I think that says it all.
I've got a gut feeling that this will tear apart the avs community into the "gamers" and into the "visualizers". Just like devart now has the more artistic avsters and the forums the more technical ones 😔

But i know i might get a bit over-dramatic sometimes, so i will of course test it first. But aah, i don't want to be a test bunny. I will still wait for the final wa5, thank you.

But seems like you really pushed the forumers buttons ( heh heh 🙄 ) with this justin, points for you on that 😉
WhiteRayven#
Man I dont make avs's. I dont have the time. But I cant wait to see what you guys can do with this.
[Ishan]#
just one problem tho, in fullscreen you cant use the click function(getkbmouse(3)) cause it closes if we do.