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

<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>

猜你喜欢

转载自blog.csdn.net/u012054869/article/details/78276258