Sie sind nicht angemeldet.

1

Samstag, 15. Oktober 2016, 22:32

mobilescale problem.

Hi Klauss,
I have a question about mobilescale setting.
There are the difference between version 1.18.6 and 1.19-pr8.

With krpano 1.18 versione all elements are correctly scaled, but with 1.19-pr8 the elements aren't scaled by default.
In krpano documentation there is:
•By default all krpano content on mobile devices will be scaled by 0.5.
•To disable that scaling, set the mobilescale setting to 1.0.

Obviously, I can you use the property device.mobile="0.5" for all elements in my xml project, but I would like to know why this difference.
Why this new version (1.19-pr8) don't work as previus version (1.18.6)...?

Example with 1.18.6 version:

http://www.marcostucchi.com/temp/testkrp….18.6/tour.html

Example with 1.19-pr8 version:

http://www.marcostucchi.com/temp/testkrp…9-pr8/tour.html

With 1.19-pr4 I had already reported a problem with the mobilescale setting.

Thanks and best regards, Marco
»mastucc« hat folgende Bilder angehängt:
  • krpano_02.jpg
  • krpano_01.jpg

Beiträge: 770

Wohnort: Russian Federation

Beruf: Interpreting, Building virtual tours

  • Nachricht senden

2

Montag, 17. Oktober 2016, 08:56

Hi)

In newer Krpano versions mobilescale is forced to 1.0 inside html:

Quellcode

1
embedpano({swf:"tour.swf", xml:"tour.xml", target:"pano", html5:"auto", mobilescale:1.0, passQueryParameters:true});



and there's also a line inside 'vtourskin.xml':

Quellcode

1
<!-- ensure stagescale 2x for mobile devices (regardless if mobilescale is 0.5 or 1.0) -->	<krpano stagescale="calc:stagescale * 2" if="stagescale LT 1.0" devices="mobile" />



It seems that this has something to do with skin design and VR. I had to update some of my tours a bit for newer Krpano versions.
Regards,

Alexey

3

Montag, 17. Oktober 2016, 21:38

mobilescale problem - new test

Hi Alexey, thanks for your reply.
I also think the problem is in new skin design and VR.
I have read the code in 'vtourskin.xml', but I understand where is the problem... between 1.18.6 version and 1.19-pr8 version.

Now I created un new test, with hotspot elements; previous example used layer elments.
Please see the difference in the attached images and check the link directly with the mobile devide.
The hotspot elements are scaled if you use the 'distorted=true', but not if 'distorted' is set to false.
Test with 1.18.6

-> http://www.marcostucchi.com/temp/testkrp…18.6/tour2.html

Test with 1.19-pr8

-> http://www.marcostucchi.com/temp/testkrp…-pr8/tour2.html


After these simple tests I noticed that the new version all elements version does not scale properly.
Does anyone have these same problems with scaling elements.

Thanks, Marco
»mastucc« hat folgendes Bild angehängt:
  • krpano_03.jpg

4

Montag, 17. Oktober 2016, 21:51

Hi,

the skin layout in the vtourskin.xml of version 1.19 is designed for stagescale=1.0 - and when the stagescale is below 1.0, then the skin automatically scales it.

That's this line the xml:

Quellcode

1
2
<!-- ensure stagescale 2x for mobile devices (regardless if mobilescale is 0.5 or 1.0) -->
<krpano stagescale="calc:stagescale * 2" if="stagescale LT 1.0" devices="mobile" />


Best regards,
Klaus

5

Mittwoch, 19. Oktober 2016, 10:23

Hi Klauss, thanks for your reply.

Marco