Go Back   Winamp Forums > Visualizations > AVS > AVS Presets

Reply
Thread Tools Search this Thread Display Modes
Old 29th August 2006, 21:40   #1
Warrior of the Light
Fοrum King (AVS Reviewer)
 
Warrior of the Light's Avatar
 
Join Date: Aug 2002
Location: The Netherlands
Posts: 3,782
need some assistance

This preset started out as a tech tryout.
I wanted to have a line that went up, and as soon as y>1 then it would re-enter at the bottom.
I have that working now.

I went a little further - I changed the line to an arrow and added a background, if you can call it that, and rotation.

Then, it seemed fun enough to -try to- turn this into a worthy preset.

I have one problem though. (see attached preset)
What I want is that if an arrow leaves the top (or when it re-appears at the bottom, whatever) that it shifts along the x-axis.

Point is however, that I can't shift the entire arrow at once because the rest of the arrow isn't there yet when the tip reaches the top. I have a somewhat working solution that's based on y1<-0.97
That solution shifts like I want to, but it causes the arrow to 'shake' when it's re-appearing.

I don't know if this post makes enough sense, so if you have any questions: just ask

All ideas and insights are more than welcome..
Attached Files
File Type: zip wotl - arrows thingey.zip (753 Bytes, 104 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 30th August 2006, 17:39   #2
ASD5A
Titeleinzigartigkeit
Senior Member
 
ASD5A's Avatar
 
Join Date: Apr 2005
Location: under a bridge
Posts: 623
problem solved..
you just needed to generate the new mx value once per passthrough of the arrow.

see the commented code
Attached Files
File Type: zip wotl - arrows thingey corrected.zip (886 Bytes, 109 views)

oversized e-penis replacement
ASD5A is offline   Reply With Quote
Old 30th August 2006, 22:11   #3
Warrior of the Light
Fοrum King (AVS Reviewer)
 
Warrior of the Light's Avatar
 
Join Date: Aug 2002
Location: The Netherlands
Posts: 3,782
I had thought about such a solution, but this method doesn't really fix the issue.

I'll show you the bug in your fix:
Set rx to 0 (bz in init too), and remove the *1.5 at the end of x and y to make it more clear. Close/reopen AVS.
When the tip of the arrow reaches the top, the remaining part suddenly shifts.


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 2nd September 2006, 10:58   #4
ASD5A
Titeleinzigartigkeit
Senior Member
 
ASD5A's Avatar
 
Join Date: Apr 2005
Location: under a bridge
Posts: 623
Arrow

i finally fixed the problem by rewriting major parts of the code. if you have question on the code just ask.
Attached Files
File Type: zip wotl - arrows thingey finally corrected.zip (896 Bytes, 79 views)

oversized e-penis replacement
ASD5A is offline   Reply With Quote
Old 2nd September 2006, 14:09   #5
Warrior of the Light
Fοrum King (AVS Reviewer)
 
Warrior of the Light's Avatar
 
Join Date: Aug 2002
Location: The Netherlands
Posts: 3,782
Quite a different approach indeed.

I'll dig into your code and find out what you did..
Thanks a lot, man


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 6th September 2006, 12:13   #6
jheriko
Forum King
 
jheriko's Avatar
 
Join Date: Aug 2002
Location: a twist in the fabric of space
Posts: 2,149
Send a message via ICQ to jheriko
This is a classic problem. The easy solution to making something appear at a different x each time it wraps around y is to use 2 of it, when one goes off the top it just let it keeps going until the next arrow goes off the top. This way is lazy, but it works. This boils down to rendering twice and using some if and mod for n/skip

I would open the preset and look... but I'm at work :/

-- Jheriko

'Everything around us can be represented and understood through numbers'
jheriko is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Visualizations > AVS > AVS Presets

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

Forum Jump