Ken Burns Effect Algorithm-Functions
Sivakatirswami
katir at hindu.org
Thu May 18 02:17:47 EDT 2006
Alex... thanks... this is better, yes, but there is still the
"twinkling" of pixels everywhere as it zooms in... if i open the same
photo in iMovie and run a Burns effect zoom on it... it is absolutely
smooth... Actually the "twinkle" effect would be a good for thing for
children... but pros will sneer at it...
I would be interesting in understanding the fundamental differences
from the "video physics" between the two technologies.. the Rev
script is obviously just doing simple geometry...
I wonder how a movie technology differs...
Am I asking too much to try to get the same thing in Revolution? (I
expect so...) My whole endeavor here is to avoid a heavy weight QT
app for light weight internet delivery.
On May 17, 2006, at 12:59 PM, Alex Tweedly wrote:
> For images that are close to square, this "drift" won't be obvious
> - but I think it will make the zoom less smooth.
>
> You can avoid that by calculating the revised height, and then
> centering that around the height.
>
> function zoomIn tRect
> put tRect into saferect
> subtract 1 from item 1 of tRect
> add 1 to item 3 of tRect
> put ( (item 3 of tRect - item 1 of tRect) * tRatio) / 2 into
> tNewHalfHeight
> put (item 2 of tRect + item 4 of tRect) / 2 into tNewCentre
> put tNewCentre - tNewHalfHeight into item 2 of tRect
> put tNewCentre + tNewHalfHeight into item 4 of tRect
> put saferect && tRect & cr after msg
> return tRect
> end zoomIn
More information about the use-livecode
mailing list