Disabling 3D projections on drop down menu

  • Hi everyone!
    I'm just arrived to the krpano development platform, and have been trying to find a way to disable the 3D projections (fisheye, stereographic) on the viewer's drop down menu. I only need the "normal" view.
    Is there a way to do this?
    Thanks for the help!

    Cecilia

  • In your xml, find the context menu code and remove the sections you don't want.
    Here is an example.


    <contextmenu fullscreen="false">

    <item name="item1"
    caption="Visit my website"
    onclick="openurl(http://www.yoursitehere.com);"
    />

    <item name="item2"
    separator="true"
    caption="KRPANO"
    />
    </contextmenu>

  • Thanks!
    I tried the code, but I'm still getting the full contextual menu
    I'm testing on a Mac, by the way

    Here's a sample of my code:

    <krpano version="1.0.8"[PARTIALPANO]>

    <include url="skin/defaultskin_lightbuttons.xml" />

    <view
    hlookat ="310"
    vlookat ="0"
    camroll ="0.000000"
    fovtype ="VFOV"
    fov ="120"
    fovmin ="53"
    fovmax ="90"
    maxpixelzoom ="NaN"
    limitfov ="true"
    fisheye ="0.00"
    fisheyefovlink="0.50"
    stereographic ="false"
    pannini ="false"
    architectural ="0.0"
    architecturalonlymiddle="false"
    limitview ="range"
    hlookatmin ="-180"
    hlookatmax ="180"
    vlookatmin ="-78"
    vlookatmax ="79"
    />

    <display details="22"
    movequality="LOW"
    stillquality="HIGHSHARP"
    />


    <contextmenu fullscreen="false">
    <item name="item1"
    caption="About the Photographer..."
    onclick="openurl(http://www.panomakers.com);"
    />

    <item name="item2"
    separator="true"
    caption="KRPANO"
    />
    </contextmenu>


    [PREVIEW]

    [IMAGE]

    </krpano>

  • You are including a file that may contain the context menu.
    <include url="skin/defaultskin_lightbuttons.xml" />

    check to see if the context menu is included there.

    Just a thought, How did you get the xml generated? did you use autopano? Perhaps the context menu is already included in the krpano.swf you are using.

    check that included file first, Be sure you clean your cache to be sure it is not stored locally and then perhaps load a new swf from the download package.

  • Great pointers all!
    I'm working with Stitcher, not Autopano, so the xml is generated directly by krpano

    I'll check the code to see if the context menu is included somewhere else

    THanks for the help!

Participate now!

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