请教老师 krpano 小行星效果

[复制链接]
查看12717 | 回复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& n" {" i9 g
  1. <!-- startup view settings for 'little planet view' (stereographic=true + fisheye=1.0 + fov>120 + vlookat>70) -->
    # d) N) m' J1 Y' X
  2. <view stereographic="true" 1 Y: U9 P6 g0 f
  3. fisheye="1.0" 5 a5 ~) t4 A( u
  4. fov="155"
    7 m4 e( B4 G, ^8 |% t
  5. fovtype="VFOV" : `8 z6 @5 [% r, |) k) Y0 p
  6. fovmax="150"
    " ^3 h7 K/ b: g  D2 x
  7. hlookat="-60"  
    $ s- Q2 t2 X" h0 y
  8. vlookat="77"  />    4 U2 V$ {: U& p0 P$ ?- X
  9. 插入到tour.xml中   2 V, E( P3 ]' [* ^$ \) ]$ i4 B
  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 -->5 X" u, v) x3 y+ L, l0 v( T
  11. <display flash10="off" details="24" />  
    8 K7 u. H8 x: o/ I* e
  12. <!-- when the loading is done, wait 2 seconds and then start with the animation to an normal view -->
    1 f+ `# i4 n+ d
  13. <events onloadcomplete="delayedcall(2.0, normalview());" />    - R6 x% O) ^* i' C0 ~1 `9 X1 m: _
  14. <action name="normalview">
    ; R% R$ l* {8 k5 K2 b
  15. tween(view.hlookat, -40, 2.5, easeInOutQuad);
    * N; I9 [2 D# y4 M! x( ^: j' h
  16. tween(view.vlookat, -35, 2.5, easeInOutQuad);  1 V8 A# r8 q. V  M1 |
  17. tween(view.fov, 85, 2.5, easeInOutQuad);    h0 j( i  b  R6 }# A
  18. tween(view.fisheye, 0.0, 2.5, easeInOutQuad); 5 c& a/ X) z. c7 ^8 z2 k9 L
  19. wait(2.7);  
    , Y' _5 ]; s0 m5 s2 B- K* |3 d
  20. set(display.flash10, on);   . ~  h# e, g* O0 V' ~
  21. </action>
复制代码
) d2 Y3 k) [, M) S
( L. N, `' E5 O( j9 H, B

点评

我觉得您可能没有注意到编辑器有个插入代码的工具呢? 试一试,很好用!  详情 回复 发表于 2016-3-20 12:33 AM
明海+ | 2016-3-20 00:33:31 | 显示全部楼层
原来是小茄 发表于 2016-3-19 18:16/ g- |& c' Z6 A& r0 h
[html] view plaincopyprint? 插入到scene标签中         插入到tour.xml中                  tween(view.h ...
! W; v7 e' f8 e/ Z
" b! ~$ d/ a1 U
我觉得您可能没有注意到编辑器有个插入代码的工具呢?5 f+ f6 z0 F7 \0 p% I2 S! E
试一试,很好用!
1 G+ f4 |4 Z$ H1 X 16210609032034.jpg ' T+ Y, m/ o. ~
$ M) }# D8 v' [$ p
  1. var test;
    0 A: e  v  I3 S0 u0 p
  2. //this is a code?
复制代码

8 H7 f' }% o  S# Y3 m% E( v
' T- S2 ]0 ^7 V' T: Y! s- r; L2 a8 B4 s5 B0 g/ x
6 i/ d+ |; e. \" t) W) W2 U
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则