krpano360全景-5.右键菜单

<!--右键菜单-->
    <contextmenu fullscreen="true" versioninfo="true">
        <item name="kr" caption="KRPANO" />
        <item name="fs" caption="FULLSCREEN" />
        <item name="cc" caption="更改控制模式" onclick="cm_changecontrolmode();" separator="true" />
        <!--separator分割线-->
        <item name="nv" caption="正常视角" onclick="cm_normal_view();" showif="view.vlookatrange == 180" separator="true" />
        <item name="fv" caption="鱼眼视角" onclick="cm_fisheye_view();" showif="view.vlookatrange == 180" devices="flash|webgl" />
        <item name="sv" caption="立体视角" onclick="cm_stereographic_view();" showif="view.vlookatrange == 180" devices="flash|webgl" />
        <item name="av" caption="建筑视角" onclick="cm_architectural_view();" showif="view.vlookatrange == 180" />
        <item name="pv" caption="帕尼尼视角" onclick="cm_pannini_view();" showif="view.vlookatrange == 180" devices="flash|webgl" />
        <item name="lp" caption="小行星视角" onclick="cm_littleplanet_view();" showif="view.vlookatrange == 180" devices="flash|webgl" />
        <item name="logo" caption="[img src='krpano-roundlogo.png' style='width:90px; height:25px; margin:0px 0px -6px -2px;'  /]" separator="true" onclick="openurl('http://www.yidaichu.com')" devices="html5" />
    </contextmenu>
    <action name="cm_changecontrolmode">
        switch(control.mouse, moveto, drag);
        switch(control.touch, moveto, drag);
    </action>
    <action name="cm_look_straight">
        if(view.vlookat LT -80 OR view.vlookat GT +80,
            tween(view.vlookat, 0.0, 1.0, easeInOutSine);
            tween(view.fov,     100, distance(150,0.8));
         );
    </action>
    <action name="cm_normal_view">
        cm_look_straight();
        tween(view.architectural, 0.0, distance(1.0,0.5));
        tween(view.pannini,       0.0, distance(1.0,0.5));
        tween(view.fisheye,       0.0, distance(1.0,0.5));
    </action>
    <action name="cm_architectural_view">
        cm_look_straight();
        tween(view.architectural, 1.0, distance(1.0,0.5));
        tween(view.pannini,       0.0, distance(1.0,0.5));
        tween(view.fisheye,       0.0, distance(1.0,0.5));
    </action>
    <action name="cm_fisheye_view">
        cm_look_straight();
        tween(view.architectural, 0.0,  distance(1.0,0.5));
        tween(view.pannini,       0.0,  distance(1.0,0.5));
        tween(view.fisheye,       0.35, distance(1.0,0.5));
    </action>
    <action name="cm_stereographic_view">
        cm_look_straight();
        tween(view.architectural, 0.0, distance(1.0,0.5));
        tween(view.pannini,       0.0, distance(1.0,0.5));
        tween(view.fisheye,       1.0, distance(1.0,0.8));
    </action>
    <action name="cm_pannini_view">
        cm_look_straight();
        tween(view.architectural, 0.0, distance(1.0,0.5));
        tween(view.pannini,       1.0, distance(1.0,0.8));
        if(view.fisheye LT 0.1,
            tween(view.fisheye, 1.0, distance(1.0,0.8));
          );
    </action>
    <action name="cm_littleplanet_view">
        tween(view.architectural, 0.0, distance(1.0,0.5));
        tween(view.pannini,       0.0, distance(1.0,0.5));
        tween(view.fisheye,       1.0, distance(1.0,0.8));
        tween(view.fov,           150, distance(150,0.8));
        tween(view.vlookat,        90, distance(100,0.8));
        add(new_hlookat, view.hlookat, 123.0);
        tween(view.hlookat, get(new_hlookat), distance(100,0.8));
    </action>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值