Object movie loading zoom issue

  • I need to control rotation and zoom of object movies from jscript, so i can't use the skin and config provided in the krpanotool examples.

    I have setup a simple config file that produce multires tiles and xml, but when the object movie is loaded in the viewer it shows fully zoomed out (a little dot at the infinite, almost invisible). When I zoom in the object cames out at normal size.

    Here below the generated xml:

    <krpano version="1.16" ispartialpano="true">
    <view fovtype="MFOV"
    limitview="fullrange"
    maxpixelzoom="1.0"/>

    <control zoomtocursor="true"
    zoomoutcursor="true"
    mousetype="drag2D"
    mousespeed="10"/>

    <display flash10="on"
    movequality="HIGH"
    stillquality="HIGHSHARP"
    movequality10="HIGH"
    stillquality10="HIGH"/>

    <image type="CYLINDER"
    hfov="1.00"
    vfov="1.000000"
    voffset="0.00"
    multires="true"
    tilesize="256"
    progressive="true"
    frames="16"
    frame="1">

    <level tiledimagewidth="500" tiledimageheight="500">
    <cylinder url="SpinId7/%f/3_%h_%v.jpg" />
    </level>
    <level tiledimagewidth="256" tiledimageheight="256">
    <cylinder url="SpinId7/%f/2_%h_%v.jpg" />
    </level>
    <level tiledimagewidth="128" tiledimageheight="128" aspreview="true">
    <cylinder url="SpinId7/%f/1_%h_%v.jpg" />
    </level>
    </image>
    </krpano>

    ---------------------------------

    The object movie is loaded in the page with following script:

    var krViewer = createPanoViewer({
    swf: "/Scripts/Swf/krpano.swf",
    xml: "/myObjectMovie.xml",
    id: "myId",
    target: "divObjectViewer",
    bgcolor: "#FFFFFF",
    width: "100%",
    height: "100%",
    wmode: "opaque",
    html5: "auto",
    });

    //Embed
    krViewer.embed();

    ------------------------------

    The target div is 500x500 pixels size.

    Any idea how to have the object loaded in the movie at proper zoom factor to be fully visible in the target div?

    Thanks

    Marco

  • Hi,

    sorry, but without real example it would be only possible to speculate what could be wrong...

    Regarding to the limitview="fullrange" setting the view should be already that zoomed to see the full image, but when you say the image is only one small dot, it sounds more that the limitview setting is not set and big fov is used... so something is strange here...

    Best regards,
    Klaus

Participate now!

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