krpano 教程 - 自动旋转和自动场景跳转的实现
krpano吧
全部回复
仅看楼主
level 11
chengxianggm 楼主
[html] view plaincopyprint?
<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>
2015年05月14日 18点05分 1
level 2
鼓掌
2015年08月25日 12点08分 2
level 1
11111111111111赞
2016年03月25日 05点03分 3
level 1
大神,请收下我的膝盖!
2017年03月22日 06点03分 4
level 1
666
2025年06月16日 12点06分 5
1