请教老师 krpano 小行星效果

[复制链接]
查看15316 | 回复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>  D1 M+ A) k7 p& i5 i
  1. <!-- startup view settings for 'little planet view' (stereographic=true + fisheye=1.0 + fov>120 + vlookat>70) --># R+ v: ]0 N4 }; q% C/ D) ]( |
  2. <view stereographic="true"
    9 t1 o$ L$ K0 I' k$ x' H; g
  3. fisheye="1.0"
    , t' `/ K: u: N+ Y3 V3 j
  4. fov="155" $ d6 W4 l# [9 }0 T$ v3 i+ c
  5. fovtype="VFOV" 0 M3 k1 j/ [' k. q3 y+ j
  6. fovmax="150" 7 W" \! D% t& B( X# n  K
  7. hlookat="-60"  
      Y# T2 k" v- s) ~) c( P* h1 f
  8. vlookat="77"  />    7 q" d& N  ~# O6 v
  9. 插入到tour.xml中   4 s; x! N9 M2 Y% p
  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 -->* N9 X! s; I2 f) S
  11. <display flash10="off" details="24" />  9 a2 s3 }. ?8 W: c
  12. <!-- when the loading is done, wait 2 seconds and then start with the animation to an normal view -->
    / W: }+ N: j6 m' v
  13. <events onloadcomplete="delayedcall(2.0, normalview());" />   
    7 j7 G8 {, w+ h* c
  14. <action name="normalview">
    8 w/ @. P+ v$ K5 D' m$ D
  15. tween(view.hlookat, -40, 2.5, easeInOutQuad);
    ) O: [, @' F1 Z
  16. tween(view.vlookat, -35, 2.5, easeInOutQuad);  % w5 P% v2 e" y9 y' E0 u
  17. tween(view.fov, 85, 2.5, easeInOutQuad);  
    5 ?  A; f, a* \/ t! l7 E
  18. tween(view.fisheye, 0.0, 2.5, easeInOutQuad);
    6 {+ B; Y8 y" g% v
  19. wait(2.7);  7 E; F$ w. N0 K
  20. set(display.flash10, on);   
    ! @4 n( k3 V! A, p. e/ \' @3 a
  21. </action>
复制代码

& D. ]3 D4 b' X/ \* K. `& T: l1 ?% \, J

点评

我觉得您可能没有注意到编辑器有个插入代码的工具呢? 试一试,很好用!  详情 回复 发表于 2016-3-20 12:33 AM
明海+ | 2016-3-20 00:33:31 | 显示全部楼层
原来是小茄 发表于 2016-3-19 18:16
( `! f6 A0 q9 q, D[html] view plaincopyprint? 插入到scene标签中         插入到tour.xml中                  tween(view.h ...

+ m- k# `4 t1 U1 X# t- c
* ]% L0 j6 v' n* m1 b" `/ W4 A2 R我觉得您可能没有注意到编辑器有个插入代码的工具呢?( u6 n: q) |1 O- y, a2 b. u& [
试一试,很好用!) e. x0 _7 o. s* K: z4 `5 @
16210609032034.jpg
4 j- C3 i) ^& P  Q  {2 f  n# {( n4 V+ V; W. x% _; L1 @! R. b
  1. var test;" V- C" t; Q* f! O2 _
  2. //this is a code?
复制代码

& ^2 d: ?! Q6 q+ ^+ U( a, N' a3 `$ N" B; K$ x3 t
* @- w) h5 f4 w( _5 S( P% B

+ ~$ O# n1 i; N7 Y2 }6 T
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则