Old 25th February 2003, 19:47   #1
Warrior of the Light
Forum King
 
Warrior of the Light's Avatar
 
Join Date: Aug 2002
Location: The Netherlands
Posts: 4,073
/\/\/\-like SSC

I've been trying this for about months now, but I can't get a scope to reverse when it goes off limits, like:
code:

|--------|
| /\ /\ |
|/ \/ \|
|--------|



Using a sine would slow it down at the tops, and my attempts with if(above(below... failed all

Some help would be appreciated.

----
Another thing, maybe i should post another thread, but ah well, let's try to keep the first part short.

With the attached preset (note: not finished), I can't get the speedometers to follow the circle. If someone could help me with that, I'd like that too.
Attached Files
File Type: zip winkingvampire - street racing1a.zip (1.4 KB, 87 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 25th February 2003, 21:39   #2
anubis2003
Forum King
 
anubis2003's Avatar
 
Join Date: Dec 2002
Location: middle of somewhere
Posts: 5,564
Send a message via AIM to anubis2003
You aren't following the same equations for the circles and the lines. Look at Atero's primer. It has an example of rotating things.
anubis2003 is offline   Reply With Quote
Old 25th February 2003, 21:59   #3
Nic01
Major Dude
 
Nic01's Avatar
 
Join Date: Mar 2002
Location: The Biggest Little City
Posts: 508
Send a message via AIM to Nic01
Attached is how to change a sine into a zig-zag line.
Attached Files
File Type: zip nic01-zigzagline.zip (238 Bytes, 78 views)

[soon to leave, sirs]
Nic01 is offline   Reply With Quote
Old 25th February 2003, 22:04   #4
dirkdeftly
Forum King
 
dirkdeftly's Avatar
 
Join Date: Jun 2001
Location: Cydonia, Mars
Posts: 2,651
Send a message via AIM to dirkdeftly
a simple way to do that is to use the asin/sin combination, which easily reverses/reflects images:
x=asin(sin(x*pi))/pi; y=...

"guilt is the cause of more disauders
than history's most obscene marorders" --E. E. Cummings
dirkdeftly is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast 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