Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

3sfera

Fortgeschrittener

  • »3sfera« ist der Autor dieses Themas

Beiträge: 249

Wohnort: Mexico City

Beruf: Virtual tours, Krpano coding, Graphic Design, Photographer, Panographer

  • Nachricht senden

1

Mittwoch, 28. September 2011, 22:23

Messed up tweening animations with Krpano 1.0.8.14

Hi Klaus, I've just downloaded and installed the new krpano version. Unfortunately in the animation intro to my interface I noticed immediately something was wrong, and I think something is not right with this version.

In my interface I use a lot of tweenings, there is an intro image with instructions, I also use an info Button wich triggers a tweening image with my contact info and I also created a special arrow bellow the control buttons to hide/show them by tweening their position/alpha. The fact is that with the new krpano what used to be some nice and smooth tweening animations now run as if they were in an accelerated time (they miss a lot of frames).

I created a special demo so you can compare both interfaces, all .xml are the same, the only thing that changes is krpano.swf, from 1.0.8.12 to 1.0.8.14. You can check it at:

www.3sfera.com/krpano-err/1.0.8.12
www.3sfera.com/krpano-err/1.0.8.14

You can check this parameters:

- INTRO ANIMATION
- INFO ANIMATION (INFO BUTTON)
- HIDE/SHOW CONTROLS ANIMATION (ARROW BUTTON BELOW ABOVE CONTROLS)

If you want to check xmls, they are in both directories named: inicial.xml, global.xml, actions.xml

Hope this problem can help you improve next krpano release, I really like Krpano and I'd love to use this new version but I'll have to wait till this details are solved.

Best Regards.

Luis Erantzcani

2

Freitag, 30. September 2011, 16:16

Hi,

yes, there was a change in the 1.0.8.14 version,
see here in the releasesnotes:
http://krpano.com/examples/10814/releasenotes.txt

this note:

Zitat

The default value for the "actionintervalbase" is now "timer" (like in HTML5 where no real frame-rate exists).
this was changed for better Flash-HTML5 compatibility,
in HTML5 there is no real framerate, there the code always runs with the same rate and the real rendering is independent of it,
and by using that setting the animations should run in the same speed in Flash and HTML5,

you can get the "frame" based motion back by setting "actionintervalbase" to "frame",
see here:
http://krpano.com/docu/xml/#krpano.advanced
and here:
http://krpano.com/docu/xml/#krpano.actionintervalbase

e.g.

Quellcode

1
<krpano ... actionintervalbase="frame">


best regards,
Klaus

3sfera

Fortgeschrittener

  • »3sfera« ist der Autor dieses Themas

Beiträge: 249

Wohnort: Mexico City

Beruf: Virtual tours, Krpano coding, Graphic Design, Photographer, Panographer

  • Nachricht senden

3

Samstag, 1. Oktober 2011, 03:40

I see, if I change actionintervalbase back to frame it runs as before. Anyway, I still don't get the point now of why not to have some control over the frame rate, right now all my tweenings are based in defined times so when framerate is not defined my "times" get extended/contracted and my animations run in an unpredictable way. If it also depends of the computer used to view my panos, then I lose all control over how animations are displayed. I guess later I'll find out how this represents an improvement in HTML5, because for now I can't use this new "timer" feature as it messes my animations.

Best Regards.

Luis Erantzcani