Sie sind nicht angemeldet.

1

Donnerstag, 5. Dezember 2013, 16:04

gyro + interface

hi,

i've got an interface (bottombar) on my pano,

my gyro plugin works fine in ipad with the orientation Locked (iPad hard button),
i can rotate the ipad any direction, the horizon of pano follow, the bottom bar interface stay on his initial place.

but when i unlock the hard button of ipad,
rotating the device made rotating the interface too and add additional rotation to pano horizon,then pano horizon is no more aligned on screen,

how to prevent this ?

Quellcode

1
2
3
4
5
6
7
8
9
10
11
<plugin name="gyro" 
devices="html5"
 url="plugins/gyro.js" 
enabled="false" 
keep="true" 
camroll="true" 
friction="0" 
velastic="0" 
vrelative="false" 
onavailable="" 
onloaded=""/>


i was thinking a fix like :

Quellcode

1
2
3
4
if(plugin[gyro].enabled, 
do something here,
or do that
);


to avoid the double rotation occured by orientation device and interface rotation.

(If you rotate the ipad , the interface rotation add 90°more to pano gyro rotation, so the pano will be back to normal horizon after 4 rotation 90/180/270/360)

any ideas ?
thanks

z

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »zadda« (6. Dezember 2013, 14:08)


Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

3

Donnerstag, 5. Dezember 2013, 20:00

i've made simplified code of my project to isolate the bug,
as i've not FTP right now i uploaded zip in my dropbox here so you may take a look :

https://www.dropbox.com/s/38kgturnhtwwijz/gyro.test.zip

*smile*

z

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

4

Freitag, 6. Dezember 2013, 15:18

maybe it's because of the extra html part you have in the html..
?

i have the same behaviour in good reader.. online it works perfect but when watching local in good reader i get thus as well.
*confused*

i see this also a lot happening in websites where they put a tour in a extra div.. or iframe..
What could be a good fix accept setting cam roll to false?

Tuur *thumbsup*

Beiträge: 1 857

Beruf: Virtual Tours - Photography - Krpano developer

  • Nachricht senden

5

Freitag, 6. Dezember 2013, 15:27

I sent many bug reports to good reader.. But they all go to a black hole. I suggest sending them more!

In good reader it works if you start in one position. Landscape i think.
For my code, after turning on gyro i check camroll 5 or 6 times over a second and if it looks stupid that many times, i shut off the gyro automatically which is better than having the pano turned 90 degrees.
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

6

Freitag, 6. Dezember 2013, 17:48

Hi,

Zitat

i have the same behaviour in good reader.. online it works perfect but when watching local in good reader i get thus as well.


It works fine on iPad stock browser ? I didn't know that as i test mostly time in Goodreader app,
, i just have to be careful to lock down ipad orientation before doing a demo for potential customer,
Otherwise he will certainly think this feature is buggy and useless

Just checked and yes it works as intented in safari iPad browser, then that's definetly a goodReader bug,
will be fine to have a fix yet but it become lower priority on my Bugs List to Fix...

Thanks guys anyway :-)

Z

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »zadda« (6. Dezember 2013, 17:59)


Beiträge: 1 857

Beruf: Virtual Tours - Photography - Krpano developer

  • Nachricht senden

7

Samstag, 7. Dezember 2013, 03:34

Also works fine on htmlbooks. I believe it used to be buggy on facebook app but I think they fixed it or something. Sadly, I think this is a goodreader only problem now.
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

8

Donnerstag, 12. Dezember 2013, 11:52

Hi guys,

Just found an alternative to GoodReader app and want let you know,
This is Textastic code editor for iPad,
as this is a code editor you can edit your krpano xml directly on your iPad, and the previewing works fine for the entire project,
Even the gyro rotation bug mentioned above :-)

The only caveat i've found , that when you previewing in local mode on your iPad, sound files like mp3 not load (even if they are in local folder) then console open and tell you "no mp3 found" but that´s it, close console and everything else works fine,
(We have to ask Dev to fix that to get a perfect krpano editor on the go)

There also few others code editors like diet Coda and .. But this one is more appropriate to my workflow (as i use mainly BBedit on desktop to edit krpano file)

Z

Beiträge: 1 857

Beruf: Virtual Tours - Photography - Krpano developer

  • Nachricht senden

9

Freitag, 13. Dezember 2013, 18:30

I don't edit too much xml on ipads... but it's sometimes useful. You can do it in goodreader. The editor kinda sucks though.. No find/replace.
Also htmlbooks also has the gyro bug. But for clients its MUCH easier to use. Since it has a header to use to escape back to the menu.

Sound is kinda a deal breaker for me. I'd rather have the gyro bug. I just don't know why they gyro bug can't be fixed to have a perfect solution.
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

Ähnliche Themen