You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

HansNyb

Professional

  • "HansNyb" started this thread

Posts: 936

Location: Denmark

Occupation: Photographer

  • Send private message

1

Wednesday, May 11th 2011, 4:35pm

iPhone iPad Simulator problem

I just tested the iPhone/iPad simulator but iI can not get it working for iPad.

I have changed the path to my tour.js and as I have the license embedded I just deleted the other 2 paths.

The links to the iPhone iPad xml look like this

if (device == "iphone")
viewer.addVariable("xml", "data/tour.xml");
else if (device == "ipad")
viewer.addVariable("xml", "data/tour.xml");

viewer.embed("krpanoDIV");
}

Both iPhone portrait and landscape works perfect which is fine for me as I do not have one but the iPads are just black.
If I select iPad and reload it loads with iPhone portrait.

Hans

HansNyb

Professional

  • "HansNyb" started this thread

Posts: 936

Location: Denmark

Occupation: Photographer

  • Send private message

2

Wednesday, May 11th 2011, 4:55pm

Discovered also that according to the simulator a button placed at the bottom right corner does not work until 40 pixels from the corner in any direction.

I do not know it this is a real problem on an iPhone or if it is a simulator problem.

Hans

Tuur

Sage

Posts: 3,170

Location: Netherlands

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

  • Send private message

3

Wednesday, May 11th 2011, 5:09pm

There are more problems i've run into..

like the sound loop (works in simulator but not on iphone)
textfield things that work on simulator but not on i phone

Hans, i always make seperate xml for iphone and one for ipad and that works fine on the simulator..

i'll try to copy your problem..

tuur *thumbsup*
http://www.virtualtuur.com
Skype:studiotuur

Posts: 1,850

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

4

Wednesday, May 11th 2011, 10:04pm

Discovered also that according to the simulator a button placed at the bottom right corner does not work until 40 pixels from the corner in any direction.

I do not know it this is a real problem on an iPhone or if it is a simulator problem.

Hans


That's the secret error log/console button. Disable it to remove that feature.
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

VN2011

Professional

Posts: 1,336

Location: Duluth MN

  • Send private message

5

Wednesday, May 11th 2011, 11:20pm

Hans I think you have it right this is what i was using to test an Iphone tour.

<!-- path to the xml file -->
if (device == "iphone")
viewer.addVariable("xml", "tour.xml");
else if (device == "ipad")
viewer.addVariable("xml", "tour.xml");

viewer.embed("krpanoDIV");

HansNyb

Professional

  • "HansNyb" started this thread

Posts: 936

Location: Denmark

Occupation: Photographer

  • Send private message

6

Wednesday, May 11th 2011, 11:42pm

Discovered also that according to the simulator a button placed at the bottom right corner does not work until 40 pixels from the corner in any direction.

I do not know it this is a real problem on an iPhone or if it is a simulator problem.

Hans


That's the secret error log/console button. Disable it to remove that feature.



Thats not a problem on iPad so why does it not work on iPhone.
Anyhow it is in a simulator. I doubt the error console works there.

Hans

Posts: 1,850

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

7

Thursday, May 12th 2011, 1:53am

It's all html5, so the error console should be working fine well somewhat. I dont think it swipes.. so yes, it's quite useless.
I use a nadir hot spot instead. I found that sometimes fullscreen tours, sometimes swipe the window instead of krpano.. making it impossible to use the built in secret console button swipe method.
Anyway, try logkey="false" on your html5.
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

HansNyb

Professional

  • "HansNyb" started this thread

Posts: 936

Location: Denmark

Occupation: Photographer

  • Send private message

8

Thursday, May 12th 2011, 11:22am

It looks that you are right . Hiding the error console solves it. But I do not understand why the iPhone should be sensible to this and not the iPad.

Anyhow something is very wrong with this simulator.

This is a screen shot from panoramas.dk.
http://www.panoramas.dk/test/iphone-simulator.jpg

This png is 600x328 pixels, much smaller than the iPhone 4 resolution

And if you look at the codes they say this.
switch(id)
{
case 0: // iPhone Portrait
devicebg.src = bg_iphone4_portrait;
devicebg.style.left = "-160px";
devicebg.style.width = "320px";
devicebg.style.height = "480px";
krpanoDIV.style.left = "-160px";
krpanoDIV.style.top = "20px";
krpanoDIV.style.width = "320px";
krpanoDIV.style.height = "416px";
infos.style.top = "600px";
reloadkrpano("iphone");
break;

case 1: // iPhone Landscape
devicebg.src = bg_iphone4_landscape;
devicebg.style.left = "-240px";
devicebg.style.width = "480px";
devicebg.style.height = "320px";
krpanoDIV.style.left = "-240px";
krpanoDIV.style.top = "20px";
krpanoDIV.style.width = "480px";
krpanoDIV.style.height = "268px";
infos.style.top = "440px";
reloadkrpano("iphone");
break;

case 2: // iPad Portrait
devicebg.src = bg_ipad_portrait;
devicebg.style.left = "-384px";
devicebg.style.width = "768px";
devicebg.style.height = "1024px";
krpanoDIV.style.left = "-384px";
krpanoDIV.style.top = "108px";
krpanoDIV.style.width = "768px";
krpanoDIV.style.height = "916px";
infos.style.top = "1144px";
reloadkrpano("ipad");
break;

case 3: // iPad Landscape
devicebg.src = bg_ipad_landscape;
devicebg.style.left = "-512px";
devicebg.style.width = "1024px";
devicebg.style.height = "768px";
krpanoDIV.style.left = "-512px";
krpanoDIV.style.top = "108px";
krpanoDIV.style.width = "1024px";
krpanoDIV.style.height = "660px";
infos.style.top = "888px";
reloadkrpano("ipad");
break;
}


Even if it claims that it is iPhone 4 the resolution is set to iPhone 3 480x320

Hans



Hans

HansNyb

Professional

  • "HansNyb" started this thread

Posts: 936

Location: Denmark

Occupation: Photographer

  • Send private message

9

Thursday, May 12th 2011, 12:43pm

Even more weird.
Here is a screenshot for another tour I am just working on.
http://www.panoramas.dk/test/iphone-simulator.jpg

This popup is 500x360 and it displays exactly as it should for iPhone 4 even if I have not changed any codes in the simulator html or for the popup.
There is no scaling on it anywhere.

Hans

Tuur

Sage

Posts: 3,170

Location: Netherlands

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

  • Send private message

10

Thursday, May 12th 2011, 1:08pm

Hi hans,

I had sort of the same behaviour.. Are u 100% sure u use the right tour.js file?
Try getting a new swf and new js file from exactly the same version. Also update the plugins.

Well as i think, it should be alright by hans , but it looks very much as the behaviour i had yesterday with release candidate1.

Tuur *thumbsup*
http://www.virtualtuur.com
Skype:studiotuur

HansNyb

Professional

  • "HansNyb" started this thread

Posts: 936

Location: Denmark

Occupation: Photographer

  • Send private message

11

Thursday, May 12th 2011, 1:21pm

Yes you are right. I had not updated panoramas.dk.

But that does not explain why the code in the simulator actually has the iPhone 3 resolution even if it shows iPhone 4 correctly.

Must say I am beginning to be very irritated about this constant need for updating to get old plugins to work.

Hans

Tuur

Sage

Posts: 3,170

Location: Netherlands

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

  • Send private message

12

Thursday, May 12th 2011, 1:28pm

Yeah, it makes it very trouble-ish.
I'm considering to put swf,js,and plugins just once onthe server for all new tours.
But i prefer not to..

Did somebody checked out the update tool?
Maybe there is a clue?
Tuur *thumbsup*
http://www.virtualtuur.com
Skype:studiotuur

13

Thursday, May 12th 2011, 9:25pm

Hi,
Must say I am beginning to be very irritated about this constant need for updating to get old plugins to work.
which plugins?
if you mean the viewer itself - it's because the new krpanoiphone.js version contains new features that make it possible to use that iPhone/iPad simulator, old versions doesn't have that features and so they can't work,

Quoted

But that does not explain why the code in the simulator actually has the iPhone 3 resolution even if it shows iPhone 4 correctly.
the sizes and proportions will be the same for iPhone 3 and iPhone 4 in krpano!
the only thing is that the iPhone 4 is sharper because of the higher native resolution,

best regards,
Klaus