Posts by grollaz

    Hi, i use by default the dragable hand for my pano, with the offline version of my pano, i can see the mouse-hand, but when i put my file online or test it with the testing server, i can't see the hand, i see only the standard arrow, and not receive any error, what i can do?

    Thanks.

    Hi, there is a plugin for to navigate my tour and mantain the orientation of it?

    For example: if i click to my hotspot to enter in one room, when i enter in it, the default angle of orientation is always the same and if i return to the main room too.
    I need a solution for to mantain the orientation, from one room to other (like google street view).

    I have find a solution with some line of code, but i have to set manually the angle for every pano in my xlm hotspot.
    that i'm finding is a automatic solution to keep the orintation from current scene and apply it to the next scene.

    Any idea?
    Thanks.

    Hi, i have see here https://krpano.com/examples/117/e…nk/getlink.html the demo of html link, i have try, but in my pano isn't working, i don't know what i can do.

    I have 7 scene and use this code to embed the pano in my html page:

    ###################################
    <!DOCTYPE html>
    <html>
    <head>
    <title>FUORISALONE 2014 DEUTDESign - Zona Sant'Ambrogio, Via S.Vittore, 49 - Milano</title>
    <meta name="viewport" content="target-densitydpi=device-dpi, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, minimal-ui" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <meta http-equiv="x-ua-compatible" content="IE=edge" />
    <style>
    @-ms-viewport { width:device-width; }
    @media only screen and (min-device-width:800px) { html { overflow:hidden; } }
    html { height:100%; }
    body { height:100%; overflow:hidden; margin:0; padding:0; font-family:Arial, Helvetica, sans-serif; font-size:16px; color:#FFFFFF; background-color:#000000; }
    </style>

    </head>
    <body>

    <script src="tour.js"></script>

    <div id="pano" style="width:100%;height:100%;">
    <noscript><table style="width:100%;height:100%;"><tr style="valign:middle;"><td><div style="text-align:center;">ERROR:<br/><br/>Javascript not activated<br/><br/></div></td></tr></table></noscript>
    <script>
    embedpano({swf:"tour.swf", xml:"tour.xml", target:"pano", html5:"prefer", passQueryParameters:true});
    </script>
    </div>

    <script src="embedpano.js"></script>

    <script>
    // <![CDATA[

    var viewer = createPanoViewer({swf:"tour.swf", id:"krpanoObject", target:"pano"});

    // set the default xml file
    viewer.addVariable("xml", "getlink.xml");

    // pass all parameters from the html file to the viewer
    viewer.passQueryParameters();

    // pass the url of the html file to the viewer
    var curhtmlpath = String(document.location);
    curhtmlpath = curhtmlpath.substring(0,curhtmlpath.indexOf(".html")+5);
    viewer.addVariable("js_htmlpath", curhtmlpath);

    // embed and start the viewer
    viewer.embed();

    </body>
    </html>
    #####################################

    this is the html link, open the pano, but not where i want:
    http://10.39.202.126:8090/index-xml.html…&view.fov=80.00

    What's wrong?
    Thanks.

    ..now comes the tricky part, i have this code for my image popup, how i can add a function for my button?
    I need that on every image, in the bottom left there is one button with a variable onclick url from button to button.

    How i can do that?

    <textstyle name="style1" font="Arial" fontsize="18" background="false" border="false" textcolor="0xffffff" effect="glow(0x000000);" textalign="center" />
    <layer name="bg" type="container" keep="true" visible="false" bgcolor="0x000000" bgalpha="0.8" align="lefttop" width="100%" height="100%"/>

    <action name="popup">
    txtadd(imagetopopup,'popupimage',%2);
    if(%1 == true,
    set(layer[bg].visible,true);
    set(layer[get(imagetopopup)].visible,true);
    tween(layer[get(imagetopopup)].alpha,1.0,0.5);
    ,
    tween(layer[get(imagetopopup)].alpha,0,0.5,default,set(visible,false));
    set(layer[bg].visible,false); );
    </action>

    ......
    ..........
    .............

    <!-- place your popup here -->
    <layer name="popupimage1" url="schede/infoespositori.png" align="center" width="70%" height="prop" visible="false" alpha="0" onclick="popup(false,1);" />
    <hotspot name="q1" url="JP/JP_info-icon.png" ath="-60.778" atv="29.869" scale="1" onhover="showtext(DOUTDESign 2014 - Info Espositori, style1);" onclick="popup(true,1);" />

    Hi thanks, i have try to open my page with the testing server of krpano, but the fancybox is not working.

    In html page i have added this code:
    ########################################################
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
    <script type="text/javascript" src="/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
    <script type="text/javascript">
    function popup()
    {
    $.fancybox(
    'http://www.mywebsite.it',
    {
    'width' : '100%',
    'height' : '100%',
    'autoScale' : false,
    'transitionIn' : 'none',
    'transitionOut' : 'none',
    'type' : 'iframe'
    }
    );
    };
    </script>
    </head>
    <body>
    ########################################################

    in xml file this code:

    <hotspot name="q2" url="JP/JP_info-icon.png" ath="-42.032" atv="31.684" scale="1" onhover="showtext(Info sul Virtual Tour, style1);" onclick="js( popup() );" />

    #######################################################

    Where is the problem?
    Thanks.

    Thanks. now is perfect!!
    For everyone that have to open more image from hotspot, i have used this method.

    The code is this:

    <layer name="bg" type="container" keep="true" visible="false" bgcolor="0x000000" bgalpha="0.8" align="lefttop" width="100%" height="100%"/>

    <action name="popup">
    txtadd(imagetopopup,'popupimage',%2);
    if(%1 == true,
    set(layer[bg].visible,true);
    set(layer[get(imagetopopup)].visible,true);
    tween(layer[get(imagetopopup)].alpha,1.0,0.5);
    ,
    tween(layer[get(imagetopopup)].alpha,0,0.5,default,set(visible,false));
    set(layer[bg].visible,false);
    );
    </action>

    <layer name="popupimage1" url="images/myimage1.jpg" align="center" width="70%" height="prop" visible="false" alpha="0" onclick="popup(false,1);" />
    <layer name="popupimage2" url="images/myimage2.jpg" align="center" width="70%" height="prop" visible="false" alpha="0" onclick="popup(false,2);" />

    hotspot name="q1" url="skin/info-icon.png" ath="-95.582" atv="2.619" scale="0.7" onhover="showtext(Info opera, style1);" onclick="popup(true,1);" />
    hotspot name="q2" url="skin/info-icon.png" ath="-95.582" atv="2.619" scale="0.7" onhover="showtext(Info opera, style1);" onclick="popup(true,2);" />

    Ok now i have understand, bur have another problem..

    with this is working:

    <action name="popup">
    if(%1 == true,
    set(layer[bg].visible,true);
    set(layer[popupimage1].visible,true);
    tween(layer[popupimage1].alpha,1.0,0.5);
    ,
    tween(layer[popupimage1].alpha,0,0.5,default,set(visible,false));
    set(layer[bg].visible,false);
    );
    </action>

    but if i try to add 2% to the "popupimage" string for to pass the variable with the name of layer, it is not working

    <action name="popup">
    if(%1 == true,
    set(layer[bg].visible,true);
    set(layer[popupimage2%].visible,true);
    tween(layer[popupimage2%].alpha,1.0,0.5);
    ,
    tween(layer[popupimage2%].alpha,0,0.5,default,set(visible,false));
    set(layer[bg].visible,false);
    );
    </action>

    How i can add some numbers to the string "popupimage" and have popupimage1, popupimage2, popupimage7.....
    Thanks.

    Hi, thanks, i have changed the code, is right?
    Thanks.

    <action name="popup">
    if(%1 == true,
    set(layer[bg].visible,true);
    ,
    set(layer[popupimage2%].visible,true);
    ,
    tween(layer[popupimage2%].alpha,1.0,0.5);
    );
    if(1% == false,
    tween(layer[popupimage2%].alpha,0,0.5,default,set(visible,false));
    ,
    set(layer[bg].visible,false);

    </action>

    popup(true,7);

    I, i have to do a function with some variable, and i have to pass this variable with the call of function, how i have to do?

    Example:

    function abc{
    if (x=true){
    open image z
    } else {
    trace y
    }

    abc(true,image.jpg,hello);

    what is the correct function for to do this?
    Thanks.

    Hi, how i can rotare the orientation of the pano when i navigate in it?

    Example:
    I have 4 pano: garden, door, hall, room

    I have oriented it from garden to room, but when i go from room to garden, i see all the pano oriented not in the direction that i'm walking, but in the default orientation, what i have to do for to have a solution like google street view, or boogle busines photos?

    Thanks.