Archive: Flip image


24th June 2003 12:42 UTC

Flip image
Is it possible to flip the entire avs image horizontally after a random amount of time? If so how can this be done?- And, no, mirror isn't what I am after.

Thank you.


24th June 2003 13:44 UTC

In movement:

x=-x (to flip it horizontally)

y=-y (to flip it vertically)



With a dynamic movement:

For a flip at every N beat you can do...

Init
flip=1 ; beatlimit=10

Beat
counter= if( above(counter,beatlimit), 0 , counter+1 ) ;
flip= if( equal(counter,0), -flip , flip ) ;

frame
x=x*flip (for horizontal flip)

or

y=y*flip (for vertical flip)



That simple :)


24th June 2003 16:31 UTC

god why couldnt I reply first :p


24th June 2003 17:22 UTC

And if, instead of after a certain number of beats you want it to go after a certain amount of time(for whatever reason) then instead of increasing the counter and setting the flip variable in the ON BEAT section, you could set it in the ON FRAME section, so that you could specify the number of frames instead of the number of beats.


24th June 2003 18:13 UTC

Thanks for the info!
I managed to get the "static" flipping working, but not the dynamic

http://www.aroundmidnight.demon.co.uk/temp/avshelp.gif

(see piccy) What am I doing wrong/left out/forgotton etc? I've never messed around with variables and the like in the AVS....Until now.


24th June 2003 18:29 UTC

x=x*flip goes in pixel, not frame.

x,y,d,r are never calculated in frame


25th June 2003 06:40 UTC

X and Y are claculated in Per Frame only in Dynamic Shift


25th June 2003 09:35 UTC

HUZZZZAH!

Many thanks once again. All is working luverly juberly now.


25th June 2003 16:18 UTC

hehe, you speak funny :D...
nice sig also...


29th June 2003 12:27 UTC

lol even I know the answer on that :)