Archive: examples


27th March 2002 17:28 UTC

examples
To assisist newbies, when you select a preset trans/movement from the list, show it's equation in the user defined textbox.

For some effects in trans/movement, the source map does not draw everything (there's black spots). Or perhaps I misunderstand what source map is for. Far as I know it's just the opposite movement.

Canned DMs. (like the movement examples)


27th March 2002 18:00 UTC

Some movements can't be written as AVS code (blocky partial out) because they are resolution dependant.

And yes, there are holes in the movement when you turn on source map, because that's the way it works... when AVS calculates a movement, it calculates the formulas you entered for every point on the screen.
To do the opposite though, AVS simply takes the results, and fills the pixel at the result position with the source position.
However, this is not a 1 to 1 relationship. For example, when you have a movement that zooms in by 200%, every pixel receives a portion of half of the screen. When you source map that, every pixel on only half of the screen has a source-pixel associated with it, but those outside don't.

Let's suppose that we have an 11x1 screen and a movement x = x/2;
The image-coordinates look like this


[ -5,
-4,
-3,
-2,
-1,
0,
1,
2,
3,
4,
5]

The movement table looks like this:

[ -2.5,
-2.0,
-1.5,
-1.0,
-0.5,
0,
0.5,
1.0,
1.5,
2.0,
2.5 ]


When we map every pixel to its source, we get:


[ ?,
?,
?,
-4,
-2,
0,
2,
4,
?,
?,
? ]


Now do you see where the holes come from?

Having AVS automatically reverse the movement is near-impossible, because it would need to calculate the inverse function, no to mention that some movements are simply not invertable.