Hi,
I read that you can set graphics outside the AREA of the pano, but I can't get it to work. Below are examples of what I am after, what I got, and the code.
My intention is to have a windowed scene, with graphics and menu buttons around the scene window.
Here is an image example of what I am after:
For the next image, I tried setting all of the graphics to parent="stage", then setting the area to 60% x 60% for what I hoped would be the window for the panorama.... i got this:
Here's the code for that:
Code
<krpano version="1.0.8.15" title="Virtual Tour" onstart="mainmenu();">
<include url="skin/vtourskin.xml" />
<area mode="align"
align="center"
x="0"
y="0"
width="60%"
height="60%"
/>
<action name="mainmenu">
menu_plugin(background, images/background.jpg, stage, topleft, topleft, null, 0, 0, null, 100%, 100%, -2, true, 1.0, false, true);
menu_plugin(decor, images/decor.png, stage, bottomleft, bottomleft, null, 0, 0, null, 100%, prop, -1, true, 1.0, false, false);
menu_plugin(logo, images/logo_iqph.png, background, topleft, topleft, null, 5%, 2%, null, 15%, prop, 1, true, 1.0, false, false);
menu_plugin(corner_tl, images/corner_tl.png, background, topleft, topleft, null, 0, 0, null, 8%, prop, 1000, true, 1.0, false, true);
menu_plugin(corner_tr, images/corner_tr.png, background, topright, topright, null, 0, 0, null, 8%, prop, 1000, true, 1.0, false, true);
<!-- startup(); -->
</action>
<!-- Create the menu and background graphics by passing these variables ... name, url, parent, align, edge, rotate, x, y, scale, width, height, zorder, visible, alpha, enabled, scalechildren -->
<action name="menu_plugin">
addplugin(%1);
set(plugin[%1].url, %2);
set(plugin[%1].parent, %3);
set(plugin[%1].align, %4);
set(plugin[%1].edge, %5);
set(plugin[%1].rotate, %6);
set(plugin[%1].x, %7);
set(plugin[%1].y, %8);
set(plugin[%1].scale, %9);
set(plugin[%1].width, %10);
set(plugin[%1].height, %11);
set(plugin[%1].zorder, %12);
set(plugin[%1].visible, %13);
set(plugin[%1].alpha, %14);
set(plugin[%1].enabled, %15);
set(plugin[%1].parent, %16);
set(plugin[%1].scalechildren, %17);
</action>
<!--
<action name="startup">
if(startscene === null, copy(startscene,scene[0].name));
loadscene(get(startscene), null, MERGE);
</action>
-->
<scene name="scene_Kacho Japanese Restaurant" title="Kacho Japanese Restaurant" onstart="" thumburl="panos/Kacho_Japanese_Restaurant.tiles/thumb.jpg" lat="" lng="" heading="">
<view hlookat="0" vlookat="0" fovtype="MFOV" fov="120" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" />
<preview url="panos/Kacho_Japanese_Restaurant.tiles/preview.jpg" />
<image>
<cube url="panos/Kacho_Japanese_Restaurant.tiles/pano_%s.jpg" />
<mobile>
<cube url="panos/Kacho_Japanese_Restaurant.tiles/mobile_%s.jpg" />
</mobile>
</image>
</scene>
</krpano>
Alles anzeigen
Thanks,
Tony