Hi,

I'm started working on a tool that uses clutter and the poppler
library to display PDF based presentations, similar to "impressive"
(video here: http://www.youtube.com/watch?v=APmDV-GF6ZQ). I'm trying
to implement a zoom effect, as in "impressive" (see at about 1:50 in
the video), i.e. I have an overview page that shows all the slides on
a grid and when the user clicks on a slide the camera zooms in to the
specified slide.

I tried using a custom behavior that moves a clutter.group containing
all the slides and simultaneously changes the scale of the stage, i.e.

    def do_alpha_notify (self, alpha_value):
        pos_x = self.start_x + alpha_value*self.dx
        pos_y = self.start_y + alpha_value*self.dy
        self.actor.set_position(pos_x, pos_y)
        scale = self.zoom_start + alpha_value*self.d_zoom
        self.stage.set_scale(scale, scale)

The problem is that this does not result in a linear zoom effect, it
appears more like the camera moves along a curve in the 3D space. Does
anyone have an idea how a linear zoom effect like used in impressive
could be implemented?

best,

Martin
-- 
To unsubscribe send a mail to [email protected]

Reply via email to