Old 16th January 2004, 16:15   #1
Warrior of the Light
Forum King
 
Warrior of the Light's Avatar
 
Join Date: Aug 2002
Location: The Netherlands
Posts: 4,121
difficulty with keyboard/mouse input

I'm working on a preset called AvsCAD and I want to be able to set the linewidth from 1 to 2 .. to 5 and back to 1. This is not a problem, it's just that if you hold the key for multiple frames, the counter keeps adding on. I thought I had a solution, but it doesn't seem to work.

Could anyone tell me what I'm doing wrong?
I've attached a tryout instead of the preset itself to prevent people from making remixes before final release.

Edit: general idea of what it does:
code:


qpulse=
if qold=qnew
then
0
else
if qold=0
then
1
else
0


--So:-----

keyold|keynew|goal
------|------|----
0|0 =|0
0|1 =|1
1|0 =|0
1|1 =|0


Attached Files
File Type: zip wotl - keytrick.zip (416 Bytes, 106 views)

Jesus loves you [yes, you] so much, he even died for you so that you will not need to die, but live forever
Warrior of the Light is offline   Reply With Quote
Old 16th January 2004, 17:23   #2
Neoavs
Junior Member
 
Neoavs's Avatar
 
Join Date: Jan 2004
Location: Vilnius, Lithuania
Posts: 29
Send a message via ICQ to Neoavs
Well, I've attached the fixed file. It seems to work now. If you would add a counter such as reg01=reg01+reg27; then you would see that it is really working. Coz' on high FPS you wont able to see the 0 changing to 1, of course, I slowed my FPS to minimum and tested. The first line of text really changes from 0 to 1 and then quickly back to 0
Attached Files
File Type: zip wotl - keytrick2.zip (462 Bytes, 111 views)
Neoavs is offline   Reply With Quote
Old 16th January 2004, 18:01   #3
Warrior of the Light
Forum King
 
Warrior of the Light's Avatar
 
Join Date: Aug 2002
Location: The Netherlands
Posts: 4,121
Thanks a lot for fixing that. I had been staring at it 'til I didn't understand my own code anymore

Jesus loves you [yes, you] so much, he even died for you so that you will not need to die, but live forever
Warrior of the Light is offline   Reply With Quote
Old 16th January 2004, 19:06   #4
Neoavs
Junior Member
 
Neoavs's Avatar
 
Join Date: Jan 2004
Location: Vilnius, Lithuania
Posts: 29
Send a message via ICQ to Neoavs
No problem. Keep up the work. Do you have any AVS packs, I would like to see some?
Neoavs is offline   Reply With Quote
Old 16th January 2004, 22:03   #5
Warrior of the Light
Forum King
 
Warrior of the Light's Avatar
 
Join Date: Aug 2002
Location: The Netherlands
Posts: 4,121
You can check out my website, but all that is at least 1.5 years old (EyeCandy minipack being the newest, (don't bother looking at the so called 'new' presets on the site))

I've been neglecting my packs since to do tests and master SSC's.

But a few days ago I decided to start with my second pack, and here's an underway preview of the preset I needed your help for. It leakes out my new nickname and it will be in my new pack (if I get it all done).

(wow, I've been working on this all night from 18:30 to now, 00:05)
Attached Files
File Type: zip wotl- avscad preview.zip (3.5 KB, 127 views)

Jesus loves you [yes, you] so much, he even died for you so that you will not need to die, but live forever
Warrior of the Light is offline   Reply With Quote
Old 16th January 2004, 23:47   #6
piR
Senior Member
 
piR's Avatar
 
Join Date: Feb 2003
Location: France
Posts: 108
You can have also a more concise code replacing:

qpulse=if(equal(qold,qnew),0,if(equal(qold,0),1,0));

by:

qpulse=qnew*bnot(qold)

It may be also faster ...

Try my AVS packs piR One and piR Two.
Take a look to my last presets on my web site.
piR is offline   Reply With Quote
Old 17th January 2004, 19:09   #7
Warrior of the Light
Forum King
 
Warrior of the Light's Avatar
 
Join Date: Aug 2002
Location: The Netherlands
Posts: 4,121
@piR:
Thanks, I'll use that.

Just wondering: What are the opinions on this kind of presets (and this one in special ), do you like it or is it too far off from 'music visualization'?

Jesus loves you [yes, you] so much, he even died for you so that you will not need to die, but live forever
Warrior of the Light is offline   Reply With Quote
Old 18th January 2004, 04:42   #8
Shock Value
Senior Member
 
Shock Value's Avatar
 
Join Date: Aug 2002
Location: USA
Posts: 158
Well personally I think these kinds of presets are great if you can do something origional. You're off to a great start with this preset, but keep adding features to make it more interesting. Right now I'm working on an architectual design preset where you can design your own buildings floor-by-floor, for example.
Shock Value is offline   Reply With Quote
Old 18th January 2004, 10:57   #9
UnConeD
Whacked Moderator
 
UnConeD's Avatar
 
Join Date: Jun 2001
Posts: 2,104
I don't see the point in releasing this as part of a preset-pack with visualisations.

I'll take fsk's digital artist preset over this any time.

UnConeD is offline   Reply With Quote
Old 19th January 2004, 09:55   #10
Warrior of the Light
Forum King
 
Warrior of the Light's Avatar
 
Join Date: Aug 2002
Location: The Netherlands
Posts: 4,121
As the comment says, there'll be at least a line option and there is a bonus in already... try to find it

Jesus loves you [yes, you] so much, he even died for you so that you will not need to die, but live forever
Warrior of the Light is offline   Reply With Quote
Old 19th January 2004, 10:31   #11
Neoavs
Junior Member
 
Neoavs's Avatar
 
Join Date: Jan 2004
Location: Vilnius, Lithuania
Posts: 29
Send a message via ICQ to Neoavs
Found It. It is a rect-coords disabled movement. Enable rect coords to get paintbrush effect. Got any cookies for finding that?
Neoavs is offline   Reply With Quote
Old 19th January 2004, 13:12   #12
Warrior of the Light
Forum King
 
Warrior of the Light's Avatar
 
Join Date: Aug 2002
Location: The Netherlands
Posts: 4,121
nope, as I said, it's a bonus for now - In the fianl version, it'll probably be just an option

Jesus loves you [yes, you] so much, he even died for you so that you will not need to die, but live forever
Warrior of the Light is offline   Reply With Quote
Old 19th January 2004, 15:33   #13
Neoavs
Junior Member
 
Neoavs's Avatar
 
Join Date: Jan 2004
Location: Vilnius, Lithuania
Posts: 29
Send a message via ICQ to Neoavs
You'll have to find a way to combine both paintbrush and normal modes. Then you can do cool drawings.
Neoavs is offline   Reply With Quote
Old 19th January 2004, 19:32   #14
fragmer
Senior Member
 
fragmer's Avatar
 
Join Date: May 2003
Posts: 101
Hey how did you read my mind? I'm working on the MSPaint simulator right now :P
fragmer is offline   Reply With Quote
Old 19th January 2004, 20:53   #15
Warrior of the Light
Forum King
 
Warrior of the Light's Avatar
 
Join Date: Aug 2002
Location: The Netherlands
Posts: 4,121
Please leave out the MS-part - unless you want to include the systemcrashes of course

Jesus loves you [yes, you] so much, he even died for you so that you will not need to die, but live forever
Warrior of the Light is offline   Reply With Quote
Old 20th January 2004, 02:48   #16
fragmer
Senior Member
 
fragmer's Avatar
 
Join Date: May 2003
Posts: 101
Oh wait! I have an idea! AVS-OS!
Complete shell emulator done in AVS
Noone touch this idea! I'm making it already :F
fragmer 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