You are not logged in.

mindlessboss

Professional

  • "mindlessboss" started this thread

Posts: 1,082

Location: Russia, Kaliningrad

  • Send private message

1

Friday, March 25th 2011, 5:44pm

Tween on ipad?

Hello!
I try to use this on iPad: tween(plugin[name].x, get(var), distance(150,0.3), linear );

In flash it's move smooth, in HTML5 on safari with user client type "iPad" move smooth!
But on iPad it's moving jumping. *confused* Why it's happend? and how fix it?

Thanks in advance!
VRAP - desktop VR content player based on krpano.
Common tasks in one place in one click! Discussion thread
DOWNLOAD for MAC
DOWNLOAD for WIN

This post has been edited 1 times, last edit by "mindlessboss" (Mar 29th 2011, 3:10am)


mindlessboss

Professional

  • "mindlessboss" started this thread

Posts: 1,082

Location: Russia, Kaliningrad

  • Send private message

2

Tuesday, March 29th 2011, 3:05am

Somebody! *cry* No idea?
VRAP - desktop VR content player based on krpano.
Common tasks in one place in one click! Discussion thread
DOWNLOAD for MAC
DOWNLOAD for WIN

atomicmak

Trainee

Posts: 60

Occupation: E-Media Creative Work

  • Send private message

3

Tuesday, March 29th 2011, 6:09am

am also looking for this for ipad. wanted to tween one plugin from y to y with easein and fade effect.
Regards
Mak

4

Thursday, May 26th 2011, 7:55pm

Not working here either *sad* Even on my old iPod touch (fist generation!) the tweening is much smoother than on iPad(1). It´s really jumpy, just like mindlessboss said. I´m using the latest release of krpanoiphone.js

I guess there´s something wrong, because the iPad is fast enough to move even fullscreen-images very smooth (ie: photos).

Klaus, any idea?

HansNyb

Professional

Posts: 1,063

Location: Denmark

Occupation: Photographer

  • Send private message

5

Thursday, May 26th 2011, 10:43pm

I do not see any special problems on my iPad 1 besides if you try to use a tween while the pano is autorotating.

I have an info screen on this demo which moves from left to centre.
Just click the info button.
http://www.360-foto.dk/vr/churches/

It might also be jumpy if you click very fast on it. Remember it has to load first and you can not see that.
'
Hans

6

Friday, May 27th 2011, 1:09pm

Thanks for your reply, Hans!
Based on your example (nice panos btw:) I did a little research why the heck the tween-tag was so damn slow in my tour and I think I found the causing problem! I used a parent/child-system to tween the plugin and as soon as I removed it and moved the plugin on its own instead of moving the parent, it runs much smoother.

@Klaus
Is this a normal behavior, that the moving starts to judder if the plugin is a child of another plugin, or is there something wrong in the code?:


<style name="pb"
align="centertop"
zorder="91"
width="90%"
height="prop"
/>

<style name="pbs"
parent="panomenu_bg"
align="centertop"
zorder="91"
scale="2"
/>

addplugin(panomenu_bg);
set(plugin[panomenu_bg].url,skin/menu_bg.png);
set(plugin[panomenu_bg].align,righttop);
set(plugin[panomenu_bg].height,100%);
set(plugin[panomenu_bg].width,100%);
set(plugin[panomenu_bg].x,-100%);
set(plugin[panomenu_bg].zorder,90);
set(plugin[panomenu_bg].children,true);
set(plugin[panomenu_bg].scalechildren,true);
set(plugin[panomenu_bg].onloaded,tween(x, 0, 1));

addplugin(pb1);
if(isphone,set(plugin[pb1].url,skin/pb1s.jpg),set(plugin[pb1].url,skin/pb1.jpg));
if(isphone,set(plugin[pb1].onloaded,loadstyle(pbs)),set(plugin[pb1].onloaded,loadstyle(pb)));
set(plugin[pb1].y,70);
set(plugin[pb1].zorder,91);
set(plugin[pb1].onclick,action(start_pano);loadscene('Entre',null,MERGE,BLEND(2)););

For me everything looks fine. I even did try to swap out the tween-tag into an action and call the action after loading, with the same result: judder movement :(

Thanks a lot in advance!
Nupsi

7

Wednesday, June 1st 2011, 5:21pm

Hi,

Quoted

@Klaus
Is this a normal behavior, that the moving starts to judder if the plugin is a child of another plugin, or is there something wrong in the code?:
no, it's not automatically a normal behavior,
it may depend on the used images, their sizes and the number of childs and parents...
krpano is only setting the positions and sizes of the html elements,
the 'rendering' itself will be done by Safari browser,
and maybe in your case the Safari browser is not longer able to handle all that smoothly...

best regards,
Klaus