See You Tomorrow

jiojun的个人小博客

Krpano 全景小行星开场效果添加

实现效果

20180912-130800_capture

此处由于不需要全景皮肤,所以不对<skin_settings></skin_settings>进行设置

实现小行星开场在全景xml中添加如下代码

<!--自动旋转场景-->
  <autorotate enabled="true" waittime="0" speed="1.0" horizon="0.0"/>
  <!-- 场景读取完毕开始启动将小行星还原为正常视图-->
  <events onloadcomplete="normalview();" />
  <action name="normalview">
    copy(lp_scene, xml.scene);
    copy(lp_hlookat, view.hlookat);
    copy(lp_vlookat, view.vlookat);
    copy(lp_fov, view.fov);
    copy(lp_fovmax, view.fovmax);
    copy(lp_limitview, view.limitview);
    set(view.limitview, lookto);
    lookat(calc(lp_hlookat - 180), 90, 150, 1, 0, 0);
    set(events[lp_events].onloadcomplete,
    delayedcall(0.5,
    if(lp_scene === xml.scene,
    set(control.usercontrol, off);
    copy(view.limitview, lp_limitview);
    set(view.vlookatmin, null);
    set(view.vlookatmax, null);
    tween(view.hlookat|view.vlookat|view.fov|view.distortion, calc('' + lp_hlookat + '|' + lp_vlookat + '|' + lp_fov + '|' + 0.0),
    3.0, easeOutQuad,
    set(control.usercontrol, all);
    tween(view.fovmax, get(lp_fovmax));
    );
    );
    );
    );
  </action>
上一遍:没有了
来都来了,你不打算说点什么吗?
最新留言
暂无留言信息!