Posts by marquee

    The example page clearly demonstrates that.
    I'm browsing under the hood of some of the panoramas and quickly realised that I can't see the code editor because I have an current krpano player and it keeps telling me wrong Krpano version.
    I guess a little house cleaning is required before we embark upon pushing forward.

    Can we please make the editor reveal in the current version.
    Thank you

    I'm just starting out with google maps and just following the example provided with the tools.
    I have a licenced copy but everytime I take the code into html
    It draws a blank

    <!-- Insert the pano code here -->
    <memory maxmem="350" /> <network downloadqueues="2" decodequeues="1" />
    <div id="aptDIV">
    <noscript>
    ERROR: no Javascript
    </noscript>
    </div>
    <script type="text/javascript" src="./swfobject/swfobject.js">
    </script>
    <script type="text/javascript" src="./swfobject/swfkrpanomousewheel.js">
    </script>
    <script type="text/javascript">
    if (typeof(deconcept) !== 'undefined' &&
    deconcept.SWFObjectUtil.getPlayerVersion().major >= 6)
    {
    var so = new SWFObject("krpano.swf", "krpanoSWFObject",
    "960", "480", "9.0.28","#000000");

    so.addVariable("pano", "googlemaps.xml");

    so.setAttribute("xiRedirectUrl", window.location);
    so.useExpressInstall("./swfobject/expressinstall.swf");
    if ( so.write("aptDIV") )
    { var mousewheelfixes = new SWFkrpanoMouseWheel(so); }
    }
    else

    {
    document.getElementById("aptDIV").innerHTML = 'Flash Player 9 needed';
    }
    </script>
    <!-- pano code ends here -->

    does anyone have any ideas?

    I've created a high res panorama using kmakemultires.
    when I play it in the viewer locally it plays, all right. Now when I upload it to the server it gives me error.
    I can understand that as I'm working of 2 servers.
    I have the .png img on one server linked to the pano page on another.
    so it resides on 1 domain and is recalled by domain 2 to play.

    How do i change the licence so that it can play across both domains?
    Do I use kprotect utility but I always thought thats for embedding into the pano.

    what must I do?

    yes I have an unlimited krpano license.
    Sure, I've made a template in APT.
    Used Java as an html template and used contextmenu as another template.

    However after having rendered you would expect it be part of the code as
    so.addVariable("xml", "context.xml");

    I've not been able to see it added
    to the code.
    After doctoring the java template and sticking it inside permanently, It now has showed up.
    when you embed the data Its stops working again and I've had to add it in manually.
    Whew!!! Its buggy.Man!

    I have 4 questions, if you could please oblige me with some clarity.

    How do I add more functionalty to my tour?
    do I have to keep adding

    so.addVariable("xml", "context.xml");

    so.addVariable("xml", "autorotation.xml"); I know I could roll that into the same context file and keep auto rotation checked off in APT. But as an example.

    What has to be declared in the "xml" file and does it have to sit in the java template folder before I render and upload the tour?
    So far APT is not adding the xml file at all, I have to manually add all this. Therefore stopping me from embeding the xml files and all data.

    What is the added benefit of embeding all data and all xml files in APT?
    Why and where would you use this option. Is it because I have just one embedded tour to upload?

    and lastly how would you add a simple event or function to my context menu
    ?

    <item name="item1"
    caption="About the Panorama..."
    onclick="action(show_pano_info);"
    />
    <item name="item2"
    caption="The Photographer..."
    onclick="openurl(http://www.yahoo.com);"
    />
    <item name="item3"
    caption="About this Hotspot..."
    enabled="false"
    />

    I've added this to the context menu.xml but I keep seeing loading errors?
    What the action That I have to add to "about the panorama"
    and
    The photographer web link??

    Thanks you sincerely. I know its all long windeded but I need to get a feel before I start diving in.
    cheers

    my xml.xml file contains


    <contextmenu fullscreen="false">
    <item name="item1"
    caption="About the Panorama..."
    onclick="action(show_pano_info);"
    />
    <item name="item2"
    caption="The Photographer"
    onclick="openurl(http://www.nameform.org);"
    />
    <item name="item3"
    caption="About this Hotspot..."
    enabled="false"
    />
    <item name="item4"
    separator="true"
    caption="Normal Projection"
    onclick="set(view.fisheye,0);
    set(view.architectural,0);
    set(update,view);"
    />
    <item name="item5"
    caption="Fisheye Projection"
    onclick="set(view.fisheye,0.35);
    set(view.architectural,0);
    set(update,view);"
    />
    <item name="item6"
    caption="Architectural Projection"
    onclick="set(view.fisheye,0.0);
    set(view.architectural,1.0);
    set(update,view);"
    />
    <item name="item7"
    separator="true"
    caption="KRPANO"
    />
    </contextmenu>

    and my context.xml contains

    <krpano>
    -
    <!--
    global settings for all krpano.com example panoramas
    -->
    <display movequality="LOW" stillquality="HIGHSHARP"/>
    <!-- mouse cursor -->
    <control movetocursor="arrow"/>
    <!-- set DEFAULT showtext style -->
    <textstyle name="DEFAULT" font="Arial" fontsize="12" yoffset="-10" textalign="center" border="false" background="false" textcolor="0xFFFFFF" effect="glow(0x000000,0.7,4,2);dropshadow(2,45,0x000000,3,1);"/>


    <!--
    right-click context menu to change the viewing settings
    -->
    -
    <contextmenu>
    <item caption="KRPANO"/>
    <item caption="FULLSCREEN"/>
    <item caption="normal view" onclick="action(rectview);" separator="true"/>
    <item caption="fisheye view" onclick="action(fisheyeview);"/>
    <item caption="architectural view" onclick="action(architectural);"/>
    <item caption="stereographic view" onclick="action(stereofisheyeview);"/>
    <item caption="little planet view" onclick="action(littleplanet);"/>
    </contextmenu>
    <!-- actions for view changing -->
    -
    <action name="rectview">

    tween(view.fovmax, 155.0, distance(179, 0.25), easeoutquad);
    tween(view.architectural, 0.0, distance(1.0, 0.25), easeoutquad);
    tween(view.fisheye, 0.0, distance(1.0, 0.25), easeoutquad, set(view.stereographic,false); );

    </action>
    -
    <action name="fisheyeview">

    tween(view.architectural, 0.0, distance(1.0, 0.25), easeoutquad);
    tween(view.fisheye, 0.0 ,distance(1.0, 0.20), easeoutquad,
    set(view.stereographic,false);
    set(view.fovmax,179);
    tween(view.fisheye, 0.35, distance(1.0, 1.25));
    );

    </action>
    -
    <action name="stereofisheyeview">

    tween(view.architectural, 0.0, distance(1.0, 0.25), easeoutquad);
    tween(view.fisheye, 0.0 ,distance(1.0, 0.10), easeoutquad,
    set(view.stereographic,true);
    tween(view.fisheye, 1.0, distance(1.0, 1.25));
    tween(view.fovmax, 150, distance(179, 1.25));
    );

    </action>
    -
    <action name="littleplanet">

    tween(view.architectural, 0.0, distance(1.0, 0.25), easeoutquad);
    tween(view.fisheye, 0.0 ,distance(1.0, 0.10), easeoutquad,
    set(view.stereographic,true);
    tween(view.fisheye, 1.0, distance(1.0, 0.75));
    tween(view.fov, 130, distance(179, 0.75), easeoutquad, set(view.fovmax,150););
    tween(view.vlookat, 90, distance(179, 0.75), easeoutquad);
    );

    </action>
    -
    <action name="architectural">

    tween(view.fovmax, 155.0, distance(179, 0.25), easeoutquad);
    tween(view.architectural, 1.0, distance(1.0, 0.25), easeoutquad);
    tween(view.fisheye, 0.0, distance(1.0, 0.25), easeoutquad, set(view.stereographic,false); );

    </action>
    </krpano>

    Is this right?
    I still don't see my contextmenu

    I've created my mini tour in autopano Tour and I'm trying to add general functionalities like context menu to start with.
    heres the code.
    Is there something I'm not seeing here.

    Another thing, if I have to upload and embed the tour into wordpress. Is there a particular way I should be organise my assets.
    {
    house_tour_v01.html
    house_tour_v01.swf
    context.xml
    swfobject [FOLDER]
    house_tour_v01data [FOLDER]

    }


    autopano spit out with my added variable

    <html>
    <body>
    <div id="aptDIV">
    <noscript>ERROR: no Javascript</noscript>
    </div>

    <script type="text/javascript" src="./swfobject/swfobject.js">
    </script>
    <script type="text/javascript" src="./swfobject/swfkrpanomousewheel.js">
    </script>


    <script type="text/javascript">
    if (typeof(deconcept) !== 'undefined' &&
    deconcept.SWFObjectUtil.getPlayerVersion().major >= 6)
    {
    var so = new SWFObject("house_tour_v01.swf", "aptSWFObject",
    "640", "480", "9.0.28","#000000");
    so.addParam("allowFullScreen","true");
    so.addVariable("xml", "context.xml");


    so.useExpressInstall("./swfobject/expressinstall.swf");
    if ( so.write("aptDIV") )
    { var mousewheelfixes = new SWFkrpanoMouseWheel(so); }
    }
    else
    {
    document.getElementById("aptDIV").innerHTML = 'Flash Player 9 needed';
    }
    </script>
    </body>
    </html>

    No am working in a text editor, stand corrected just realised i was pasting all my code and including it in the main xml page but have done so by adding a similar include path to the connecting pano and viola both panos are now sharing the same info.

    I'm wondering what should be the prefered method for handing over to a client.
    Do I have to give him plugins and the xml files along with html?
    How does licencing security come into play?

    thanks klaus!
    I have started looking at things under the hood and am actually enjoying the process.
    Although I'm just hacking the code that's already out there, but have to start somewhere.
    Thanks for the support.

    Am having a little issue of linking all the tutorial examples.
    For instance they all appear on the first pano and when I enter a hotspot to another pano and come back to the first pano, all the examples I've added disappear.
    can you tell me what I'm doing wrong? *huh*

    Have copied the exact code from flyout-zordered.xml , just using my pano to replace the grid. I do not get the flying functionality, althought I can see the 2 png's on the floor.

    what could be possibly wrong?


    <krpano version="1.0.8">


    <hotspot name="spot"
    url="imgs/image.jpg"
    distorted="true"
    ath="45"
    atv="54"
    scale="0.5"
    rx="-22.5" ry="-26.25" rz="-50.1"
    backup_rx="0"
    backup_ry="0"
    backup_rz="0"
    backup_scale="0"
    backup_zorder="0"
    flying="0.0"
    onclick="if(flying == 0.0, flyout(), flyback() );"
    />

    <hotspot name="spot2"
    url="imgs/image2.jpg"
    distorted="true"
    ath="60"
    atv="54"
    scale="0.5"
    rx="-22.5" ry="-26.25" rz="-50.1"
    backup_rx="0"
    backup_ry="0"
    backup_rz="0"
    backup_scale="0"
    backup_zorder="0"
    flying="0.0"
    onclick="if(flying == 0.0, flyout(), flyback() );"
    />


    <!--
    flyout/flyback actions
    (for more stylish in/out moves play with different tweentypes and times)
    -->

    <action name="flyout">
    <!--
    save/backup the current rotation values!
    NOTE - it is important that the backup_* variables are predefined!
    this allows to save the variables at <hotspot> scope,
    if the variables where not predefined, they were saved globally
    and this would be a problem when more hotspots are using them!
    -->

    copy(backup_zorder,zorder);
    copy(backup_rx,rx);
    copy(backup_ry,ry);
    copy(backup_rz,rz);
    copy(backup_scale,scale);

    <!-- increase a internal "max" value for the zorder to be sure
    that the current hotspot is the top most one
    -->
    ifnot(havezordermax, set(havezordermax,true); set(zordermax,99); );
    inc(zordermax,get(hotspot.count));
    copy(zorder,zordermax);

    <!-- tween the rotations values to 0 for a flat screen view -->
    tween(rx, 0);
    tween(ry, 0);
    tween(rz, 0);
    tween(scale, 1.5);

    <!--
    tween 'flying' to 1.0,
    this makes the hotspot independent from the panorama rotation and scaling
    -->
    tween(flying, 1.0);
    </action>

    <action name="flyback">


    <!-- tween back to the stored backup values -->
    tween(rx, get(backup_rx));
    tween(ry, get(backup_ry));
    tween(rz, get(backup_rz));
    tween(scale, get(backup_scale));

    <!-- tween 'flying' also back to 0.0 -->
    tween(flying, 0.0, 0.5, default, copy(zorder,backup_zorder); );
    </action>


    </krpano>

    I've been slaving trying to get a simple understanding of this language but it seems like trying to read a word and then understand an alphabet.
    I've been trying to understand how the html links to the xml but am failing to see a certain format.

    Could some one just decode the radar example so that I can have a simple understandng on the subject.

    much appreciated

    I'm new to working with Krpano and am having trouble trying to make the most of the product license.
    I'm just begining to grasp the whole xml experience.

    I've just rendered an example tour though AutoPano. It comes with limited functionality for the tour. So for the test I've unticked all the navigation, embed data and xml.
    I'm trying to use buttons from the example files, starting by creating basic buttons and adding a radar hotspot.
    I'm doing something wrong as it consistently doesn't show any results.

    Can someone provide me a basic start or code that I can follow along.

    I understand that the html pulls up the xml. which links up to other xml.
    Is it poss to have everything in one xml?

    Also first you would have to declare the plugin and then its attribute. Is that right. so how come I don't see that in the button example?
    *confused*

    I see all these fancy example and am confused as to how one achieves this.