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