XML limitview different for iPad / iPhone?

  • I just acquired the iPad/iPhone viewer license and created my first Pano to display there. I'm have a little issue with the limitview command in the .xml.

    I use limitview to keep the user from panning into the nadir holes that I didn't fill in ... both on top and bottom. I use the following attributes:
    <view limitview="range" hlookat="0" vlookat="0" vlookatmin="-75" vlookatmax="45" maxpixelzoom="1.0" />

    This works great in the flash version, but for some reason you can't pan up or down at all on the iPad or iPhone.

    Since I'm using angles (-75 to +45), I didn't think this would be related.

    Am I missing something?

    BTW - You can see this at:

    http://www.HowellPhotographicArts.com/Howell_Photographic_Arts/ChurchPanorama.html

    Thank.

    JR

  • Try using


    fovtype="MFOV"

    in the view tags. I believe Klaus stated that the iphone viewer used that and if you match that view in your desktop panos, I would assume it work as you wish. Otherwise, can you show the xml for your project so we have something to go on.


    Jarred

  • fovtype="MFOV"

    I tried adding that in to my view statement, but it didn't seem to have any effect.

    Here's my complete xml ... Thanks for any help.

    JR


    <krpano version="1.0.8">

    <include url="skin/defaultskin.xml" />

    <view fovtype="MFOV" limitview="range" hlookat="0" vlookat="0" vlookatmin="-75" vlookatmax="45" maxpixelzoom="1.0" />
    <display details="22" />

    <preview url="ChurchPanorama.tiles/preview.jpg" />

    <image type="CUBE" multires="true" tilesize="784" progressive="false">
    <level tiledimagewidth="16844" tiledimageheight="16844">
    <left url="ChurchPanorama.tiles/l5_l_%0v_%0h.jpg" />
    <front url="ChurchPanorama.tiles/l5_f_%0v_%0h.jpg" />
    <right url="ChurchPanorama.tiles/l5_r_%0v_%0h.jpg" />
    <back url="ChurchPanorama.tiles/l5_b_%0v_%0h.jpg" />
    <up url="ChurchPanorama.tiles/l5_u_%0v_%0h.jpg" />
    <down url="ChurchPanorama.tiles/l5_d_%0v_%0h.jpg" />
    </level>
    <level tiledimagewidth="8422" tiledimageheight="8422">
    <left url="ChurchPanorama.tiles/l4_l_%0v_%0h.jpg" />
    <front url="ChurchPanorama.tiles/l4_f_%0v_%0h.jpg" />
    <right url="ChurchPanorama.tiles/l4_r_%0v_%0h.jpg" />
    <back url="ChurchPanorama.tiles/l4_b_%0v_%0h.jpg" />
    <up url="ChurchPanorama.tiles/l4_u_%0v_%0h.jpg" />
    <down url="ChurchPanorama.tiles/l4_d_%0v_%0h.jpg" />
    </level>
    <level tiledimagewidth="4211" tiledimageheight="4211">
    <left url="ChurchPanorama.tiles/l3_l_%0v_%0h.jpg" />
    <front url="ChurchPanorama.tiles/l3_f_%0v_%0h.jpg" />
    <right url="ChurchPanorama.tiles/l3_r_%0v_%0h.jpg" />
    <back url="ChurchPanorama.tiles/l3_b_%0v_%0h.jpg" />
    <up url="ChurchPanorama.tiles/l3_u_%0v_%0h.jpg" />
    <down url="ChurchPanorama.tiles/l3_d_%0v_%0h.jpg" />
    </level>
    <level tiledimagewidth="2106" tiledimageheight="2106">
    <left url="ChurchPanorama.tiles/l2_l_%0v_%0h.jpg" />
    <front url="ChurchPanorama.tiles/l2_f_%0v_%0h.jpg" />
    <right url="ChurchPanorama.tiles/l2_r_%0v_%0h.jpg" />
    <back url="ChurchPanorama.tiles/l2_b_%0v_%0h.jpg" />
    <up url="ChurchPanorama.tiles/l2_u_%0v_%0h.jpg" />
    <down url="ChurchPanorama.tiles/l2_d_%0v_%0h.jpg" />
    </level>
    <level tiledimagewidth="1053" tiledimageheight="1053">
    <left url="ChurchPanorama.tiles/l1_l_%0v_%0h.jpg" />
    <front url="ChurchPanorama.tiles/l1_f_%0v_%0h.jpg" />
    <right url="ChurchPanorama.tiles/l1_r_%0v_%0h.jpg" />
    <back url="ChurchPanorama.tiles/l1_b_%0v_%0h.jpg" />
    <up url="ChurchPanorama.tiles/l1_u_%0v_%0h.jpg" />
    <down url="ChurchPanorama.tiles/l1_d_%0v_%0h.jpg" />
    </level>
    <mobile>
    <left url="ChurchPanorama.tiles/mobile_l.jpg" />
    <front url="ChurchPanorama.tiles/mobile_f.jpg" />
    <right url="ChurchPanorama.tiles/mobile_r.jpg" />
    <back url="ChurchPanorama.tiles/mobile_b.jpg" />
    <up url="ChurchPanorama.tiles/mobile_u.jpg" />
    <down url="ChurchPanorama.tiles/mobile_d.jpg" />
    </mobile>
    <tablet>
    <left url="ChurchPanorama.tiles/tablet_l.jpg" />
    <front url="ChurchPanorama.tiles/tablet_f.jpg" />
    <right url="ChurchPanorama.tiles/tablet_r.jpg" />
    <back url="ChurchPanorama.tiles/tablet_b.jpg" />
    <up url="ChurchPanorama.tiles/tablet_u.jpg" />
    <down url="ChurchPanorama.tiles/tablet_d.jpg" />
    </tablet>
    </image>

    </krpano>


  • it was a bug but I have fixed it now,
    I will release soon a package with fixed files here - https://krpano.com/download/beta/

    Alas ... I've been looking for an update, but haven't seen one show up yet.

    Any forecast of when there'll be a fix available?

    Or ... Am I looking in the right place. The version out there is still 1.0.14 from 12/8.

    Not a huge deal for me, just want to set my expectations accordingly,

    Thanks

    JR

  • Yes please Klaus.
    '
    I just updated my Royal Birthday pano which needs it to work okay.
    http://www.panoramas.dk/2010/queen-margrethe-birthday.html

    Acually it looks like there is a limit vertically but it does not work correct.
    Maybe it has to do with the fovmax
    <view limitview="range" vlookatmin="-66" vlookatmax="46" hlookatmax="95" hlookatmin="-95" hlookat="0" vlookat="0" fovtype="MFOV" fov="110" maxpixelzoom="1.2" fovmin="40" fovmax="150" />

    Hans

  • I tried another one which really needs the limits.
    http://www.panoramas.dk/fullscreen2/full22.html

    Everest is the most viewed pano at panoramas.dk and probably one of the most viewed panoramas in the world.
    30% of my iphone/iPad viewers arrives on it.
    So I need the limits as it is only 44 degrees FOV.

    With the limits correct for flash it gets zoomed in to 3-4 times the resolution on the iPad. I have managed to get it temporary working by adding ann if html5 action at start .
    It looks like the limits on HTML 5 changes depending on proportions.

    If you turn the iPad to vertical you get a much larger vertical view which includes the black areas.

    Hans

  • Sorry but I get Lisence errors on this.

    I generate a testpano with the new files.
    It works ok.

    I copy the .js file from it and the new krpano.swf to the pano i want to update and rename the files.

    Pano now works correct with limits but I get a Demo watermark on it in Flash.

    Hans

  • Hi,

    how have you used the new files?
    copied into the tools folder and used a MAKE PANO/VTOUR droplet to build new swf/js files?
    or just copied and renamed? in this case you need an renamed external license file of course,

    just as note - the final 1.0.8.14 version will include an update GUI tool for easy viewer file updating,

    best regards,
    Klaus

  • I done some test but I can not generate the license error I got in my first test.

    But there is as a fact some contradicting options in the default kmakemultires.config

    This does not match.

    # embedlicenses (new)
    # - builds a new .swf file and embeds the krpano.license
    # - builds a new .js file and embeds the krpano.license.js (if available and when copyiphonejs=true)
    # - when set to true, then
    #
    embedlicenses=true

    # renamedswf
    # - copy and rename the krpano.swf to the same name as the xml file
    # - this allowes starting the viewer by just clicking the swf file
    # (with an installed standalone flashplayer)
    # - copyswf must be also set to true
    #
    renamedswf=false

    # renamedlicense
    # - rename also the license file
    # - copylicense and renamedswf must be also set to true
    #
    renamedlicense=true

    Even if the renamedswf is set to false it does do it and everything works correct.

    Hans

  • Hi,

    the new option "embedlicenses" has more priority than the "renamed" settings,
    when it was set the new swf/js generation is used and there the files were always 'renamed',
    but technically it is not a renaming like when the option is disabled - new files with embedded
    license were generated instead simply copied and renamed when disabled,

    best regards,
    Klaus

  • Hi,

    I have the same problem with the limitview on iphone... I have generated a Vtour with the new beta release (1.0.8.14), it works great with flash version, but not with iphone, the panorama is not blocked horizontaly.
    This my line code :

    <view hlookat="0" vlookat="0" fovtype="MFOV" fov="110" maxpixelzoom="2.0" limitview="range" fovmax="130" vlookatmin="-90" vlookatmax="90" hlookatmin="-105" hlookatmax="220" />

    Best Regards.
    Gaétan

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!