Author Topic: zoom speed  (Read 295 times)

Kotch

  • Jr. Member
  • **
  • Posts: 30
zoom speed
« on: December 21, 2011, 06:07:49 pm »
Hello

I have a book which has two zoom levels - 1.0 and 4.0.   I use zoomsnap to specify the two zoom levels.

Is there a way of slowing down the tween between the two states? - the client thinks its too sudden and jerky as it is.  I'm not using adaptive zoom, just one large hi-res image for each page.

Cheers

Kotch

  • Jr. Member
  • **
  • Posts: 30
Re: zoom speed
« Reply #1 on: January 12, 2012, 10:36:56 pm »
Hello again

I'm still interested in advice on this.   

I'd like to use Megazine for my project but the only drawback is when I zoom from 1.0 to 4.0 (there will only be two zoom levels in this application) the movement is sudden.

Is there any way at all to create or simulate a smooth tween from zoom level 1.0 to zoom 4.0?

I am in a really fix with this so any help at all is welcome.

Thanks


Kotch

  • Jr. Member
  • **
  • Posts: 30
Re: zoom speed
« Reply #2 on: January 12, 2012, 10:38:03 pm »
That should read as "I'm in a real fix".

Hans Nücke

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 800
  • MegaZine3 Sales Manager
Re: zoom speed
« Reply #3 on: January 13, 2012, 01:59:13 am »
Actually there is no option to "tween" between zoom levels.
I cannot judge if this is  something difficult to implement; have to ask FLorian... and then will let you know.

Kotch

  • Jr. Member
  • **
  • Posts: 30
Re: zoom speed
« Reply #4 on: January 13, 2012, 11:29:09 am »
Thanks.

So far, to get over this problem, I am not using the zoom within megazine, only using megazine for the page flipping.  Instead, I have created my own zoom functionality by changing the scaleX and scaleY of the megazine instance on stage. 

But this workaround is causing me huge performance problems as it relies on having each page as a hi res image (about 15 mb each).

So... if I could use Megazine for the zoom, particularly the adaptive zoom, my life would be made much easier.  I just need to be able to create that smooth tween between the two zoom levels...

Florian Nücke

  • κρύα πόδια
  • Administrator
  • Hero Member
  • *****
  • Posts: 1989
  • MegaZine3 Developer
    • MegaZine3
Re: zoom speed
« Reply #5 on: January 26, 2012, 12:05:36 am »
I added an attribute 'book@zoomtween' which allows setting a time it should take to transition zoom states (i.e. does a smooth transition from one scale to another over the specified time).
For the Snark was a Boojum, you see.

Before you ask a question
          After you get an answer
  • please document your problem with the answer in the Project Wiki. (e.g. in the FAQs)
  • help others out if you can, by answering their questions on the forum.

Kotch

  • Jr. Member
  • **
  • Posts: 30
Re: zoom speed
« Reply #6 on: January 28, 2012, 12:16:14 am »
Great news, Florian!

Now if only I'd had this feature about a month ago, before I created my extensive zoom workaround.  I'd have a lot less grey hairs by now ;)