请教老师 krpano 小行星效果

[复制链接]
查看15242 | 回复2 | 2014-5-12 17:01:36 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
请教老师 krpano 小行星效果出现后 自动回到 初始正常播放位置 怎么弄
原来是小茄 | 2016-3-19 18:16:01 | 显示全部楼层
[html] view plaincopyprint? 插入到scene标签中   <!-- startup view settings for 'little planet view' (stereographic=true + fisheye=1.0 + fov>120 + vlookat>70) -->  <view stereographic="true"  fisheye="1.0"  fov="155"  fovtype="VFOV"  fovmax="150"  hlookat="-60"  vlookat="77"  />    插入到tour.xml中   <!-- fisheye and little planets projections are needing more cpu rendering performance,  to reduce the cpu need and get better performance and frame rate, switch to Flash9  rendering while in fisheye/littleplanet/stereographic mode -->  <display flash10="off" details="24" />     <!-- when the loading is done, wait 2 seconds and then start with the animation to an normal view -->  <events />    <action name="normalview">  tween(view.hlookat, -40, 2.5, easeInOutQuad);  tween(view.vlookat, -35, 2.5, easeInOutQuad);  tween(view.fov, 85, 2.5, easeInOutQuad);  tween(view.fisheye, 0.0, 2.5, easeInOutQuad);  wait(2.7);  set(display.flash10, on);   </action>
/ g( X& G- \" [- K3 v
  1. <!-- startup view settings for 'little planet view' (stereographic=true + fisheye=1.0 + fov>120 + vlookat>70) -->
    : T- r1 Q& X; `. D
  2. <view stereographic="true" % Z! t' r; i$ A+ {; M9 S( ]7 t  Q
  3. fisheye="1.0"
    1 O6 B1 E; U# F" D; S. }( z7 W
  4. fov="155"
    " h) \: ]4 d3 E  H' w5 r
  5. fovtype="VFOV" ( d5 _3 O! q9 }: b! P( U# b8 j6 u) i
  6. fovmax="150"
    ) L6 ^$ Y+ u6 C+ N4 _/ `8 [
  7. hlookat="-60"  2 l9 P4 o8 h9 Y$ M* t7 }
  8. vlookat="77"  />   
    8 {" `% \! u' v- p- G. d# K$ B
  9. 插入到tour.xml中   ' ^8 D, \/ O# b; L
  10. <!-- fisheye and little planets projections are needing more cpu rendering performance,  to reduce the cpu need and get better performance and frame rate, switch to Flash9  rendering while in fisheye/littleplanet/stereographic mode -->- k3 r$ T3 ?" j" ]' c* E
  11. <display flash10="off" details="24" />  ) t  I' M2 y( A
  12. <!-- when the loading is done, wait 2 seconds and then start with the animation to an normal view -->
    / R" [3 I0 W# N: M
  13. <events onloadcomplete="delayedcall(2.0, normalview());" />    4 W) j1 |0 t% P
  14. <action name="normalview"> ( k0 I6 @- p" n0 n; l/ i
  15. tween(view.hlookat, -40, 2.5, easeInOutQuad); + a2 X7 v* \5 ^
  16. tween(view.vlookat, -35, 2.5, easeInOutQuad);  9 G( h$ b8 Z& V& [% v2 m
  17. tween(view.fov, 85, 2.5, easeInOutQuad);  1 o& ]' ~- r$ ?0 A0 D7 W, O
  18. tween(view.fisheye, 0.0, 2.5, easeInOutQuad);
    # n% Q  X9 E1 P( S
  19. wait(2.7);  : w0 P& \, X4 _& G
  20. set(display.flash10, on);   
    3 a: n6 [% L4 a0 |* o7 }
  21. </action>
复制代码
1 F- X$ n, C' C2 o

( Z# B3 @2 |0 ]' E

点评

我觉得您可能没有注意到编辑器有个插入代码的工具呢? 试一试,很好用!  详情 回复 发表于 2016-3-20 12:33 AM
明海+ | 2016-3-20 00:33:31 | 显示全部楼层
原来是小茄 发表于 2016-3-19 18:16
$ X+ g2 P; C) z; x" p* u" E[html] view plaincopyprint? 插入到scene标签中         插入到tour.xml中                  tween(view.h ...
1 O" @3 T! f8 _" C, y

. d9 v( P. Y2 J8 e我觉得您可能没有注意到编辑器有个插入代码的工具呢?
7 w$ Y; `$ B, b: Q5 E" ^9 v9 J& ?试一试,很好用!. Q/ Z! u% K! y( W3 |; K
16210609032034.jpg " f/ T! o' u7 R' e0 F! J- F2 |' w

2 I/ ?2 F/ B) T
  1. var test;
    6 R3 M! K! h1 ~7 P8 E4 d. F4 i
  2. //this is a code?
复制代码
8 }; r: _  \  ?! [
1 H  r; H8 K1 l0 g% F) G
% V7 i8 C4 j  q' ^4 K

$ W& j" D9 o3 }+ x
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则