You are not logged in.

HansNyb

Professional

  • "HansNyb" started this thread

Posts: 1,063

Location: Denmark

Occupation: Photographer

  • Send private message

1

Wednesday, May 11th 2011, 6:07pm

Why are hotspots scaled down on iPhone

I have seen that the default hotspots has a special iPhone scale=2, something I never really understood as I do not have one.

However after testing a site with the simulator I understand why.

What I do not understand is why are Hotspots scaled down so much more than other elements.

I can see that plugin buttons are not scaled down but hotspots are scaled to half the size.

I can not see the reason for this. I assume that the simulator shows us an iPhone 4.

Hans

Posts: 1,857

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

2

Wednesday, May 11th 2011, 10:02pm

No clue but use the onloaded code to isphone mul scale etc. Check the html5 krpano examples.
I think it should probably be done automatically as well, but backwords compatibily would break to the onloaded fix.
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

HansNyb

Professional

  • "HansNyb" started this thread

Posts: 1,063

Location: Denmark

Occupation: Photographer

  • Send private message

3

Wednesday, May 11th 2011, 11:46pm

I guess it makes sense on an iPhone 3 with half the resolution. Maybe thats why it still works like this.

But isn't this working for both 3 and 4

altonloaded="if(isphone, mul(scale,2)); onloaded();"

Hans

Posts: 1,857

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

4

Thursday, May 12th 2011, 1:48am

Try
altonloaded="if(isphone, mul(altscale,2.5));" altscale="1.5"
I think the altscale is working for ipad well.
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

5

Thursday, May 12th 2011, 9:17pm

Hi,

there is no automatic scale-down for iPhone,

the 'internal' resolution for the theoretical full iPhone screen in krpano is 640x960 or 960x640,
this is so for iPhone 3 and iPhone 4, the proportions will be the same!
you don't need to care about iPhone 3 or iPhone 4, the sizes will be the same,
on the iPhone 4 only sharper,

but when using zoom="true" or distorted="true" then the hotspot will be scaled relatively
with the fov and relatively to the window size - exactly like in the desktop or flash version,
the proportions on the screen when comparing iPhone and Desktop will be the same,

but the iPhone screen is very tiny compared to an real desktop, so the hotspots will be very small,
e.g. image that: "make a screenshot on the desktop and view it on the iPhone"

therefore the onloaded="if(isphone, ...);" code to make the hotspots bigger and better usable on the iPhone,

best regards,
Klaus

HansNyb

Professional

  • "HansNyb" started this thread

Posts: 1,063

Location: Denmark

Occupation: Photographer

  • Send private message

6

Thursday, May 12th 2011, 10:42pm

Sorry but this is not true at least the simulator shows something different.

Here are 2 screenshots.
http://www.panoramas.dk/test/iphone-simulator3.jpg

The one from Safari was set to exactly the iPhone 4 resolution and then scaled down to the actual iPhone screen size.

Zoomlevel is almost the same actually the iPhone is zoomed in a little more so if what you say was true the hotspots should have been larger on the iPhone than the Desktop.

As you can se it is only the hotspots. The Buttons are identical in size.
Zoom is set to false but they are distorted so that has no effect.

Hans
HansNyb has attached the following image:
  • iphone-simulator3.jpg

HansNyb

Professional

  • "HansNyb" started this thread

Posts: 1,063

Location: Denmark

Occupation: Photographer

  • Send private message

7

Saturday, May 14th 2011, 11:55am

And just for the record.

distortion on hotspots is not supported on iDevices.

however distorted="true" still has the effect that zoom is set to true.

so this code
distorted="true" zoom="false"
gives the same as
distorted="false" zoom="true"
or as
distorted="true" zoom="true"

But this has no effect on the scaled down hotspots on iPhone.(simulator)

Hans

8

Monday, May 16th 2011, 8:28pm

Hi,

you are right! (as always )

the hotspot scaling was not right on the iPhone (same for iPhone3 and iPhone4),
sorry for that, I was a bit blind...
thanks for noticing that!

I think I have fixed the scaling now, but I will need to do more testing here,
this is a complex topic and there can be side-effects here,
but when all is okay and when I have the combobox alternative for iPhone/iPad
ready (hopefully during this week) I will release the next/fixed version,

best regards,
Klaus

9

Friday, May 20th 2011, 7:09pm

Hi,

this bug has been fixed - please see:
1.0.8.14 pre-release / release-candidate

best regards,
Klaus