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/testkrpan….18.6/tour.html

    Example with 1.19-pr8 version:

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

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

    Thanks and best regards, Marco

  • Hi)

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

    Code
    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':

    Code
    <!-- 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.

  • 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/testkrpan…18.6/tour2.html

    Test with 1.19-pr8

    -> http://www.marcostucchi.com/temp/testkrpan…-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

  • 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:

    Code
    <!-- 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

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!