krpano-自动旋转和自动场景跳转的实现

来源:互联网 发布:中国远程网络教育网 编辑:程序博客网 时间:2024/05/21 11:24
<autorotate enabled="true" waittime="0.5" accel="1.0" speed="5.0" horizon="0.0" tofov="90" />      通过events执行停止delayedcall和开始delayedcall的动作  <events      onnewpano="delayedcall(autoscene,15,nextscene);"      onremovepano="stopdelayedcall(autoscene);" />          定义跳到下一场景的动作            <action name="nextscene">          add(newsceneindex, scene[get(xml.scene)].index, 1);          if(newsceneindex LT scene.count, loadscene(get(scene[get(newsceneindex)].name),     null, MERGE, BLEND(0.5)););          update_button_states();      </action>

阅读全文
0 0
原创粉丝点击