请教老师 krpano 小行星效果

[复制链接]
查看15398 | 回复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>, l- r: b2 R1 L3 i' A
  1. <!-- startup view settings for 'little planet view' (stereographic=true + fisheye=1.0 + fov>120 + vlookat>70) -->3 |* N: R/ y- U- P; J
  2. <view stereographic="true" ' k: Y8 x7 `& E' f. S
  3. fisheye="1.0" + i( G" o  E# j1 _
  4. fov="155" " R% w. J( j( r8 W( e* J
  5. fovtype="VFOV"   Q9 T, Q3 R7 M" W" `( }
  6. fovmax="150" 4 l: R& t) g* E# V
  7. hlookat="-60"  
    / e$ [2 U, _8 N9 X/ _$ k9 m
  8. vlookat="77"  />   
    . d4 i* e% Z' r9 ]4 m' b$ B; B5 h
  9. 插入到tour.xml中   
    & s2 q3 ~& I4 i! @) F+ @& e
  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 -->
      Q9 Y7 s. ^- z( q+ ^( @
  11. <display flash10="off" details="24" />  ) g" d+ Y; _5 H
  12. <!-- when the loading is done, wait 2 seconds and then start with the animation to an normal view --> 7 F% k$ D, y+ K! K/ Z; d) ^
  13. <events onloadcomplete="delayedcall(2.0, normalview());" />   
    * h: h. i# A0 O6 ]3 U$ _
  14. <action name="normalview">
    , R% ]' g) Y# D+ m6 ~6 i
  15. tween(view.hlookat, -40, 2.5, easeInOutQuad);
    ( A" f, x, M9 t8 v: b/ @' h
  16. tween(view.vlookat, -35, 2.5, easeInOutQuad);  5 E6 `8 o8 k' @
  17. tween(view.fov, 85, 2.5, easeInOutQuad);  
    ; u* V( a7 o% J8 o
  18. tween(view.fisheye, 0.0, 2.5, easeInOutQuad); + q5 _! E. ?) e. _! f7 I
  19. wait(2.7);  " R. v9 w5 D$ _7 y3 J. [; X
  20. set(display.flash10, on);   3 F) h+ o$ V5 g' ?* D
  21. </action>
复制代码

" A6 h% M( D$ g: D* I( y/ Y/ r$ C5 U: ]5 \: z- g2 ]* S$ ^  c3 H/ X

点评

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

# b: {. \$ y9 h2 _$ @& q; N! _
( `* N6 k6 |, Z4 r6 h2 U  t我觉得您可能没有注意到编辑器有个插入代码的工具呢?
; \% K; n  E2 Z试一试,很好用!& F# m: z; z- B
16210609032034.jpg
8 O6 T3 V. [/ b' h$ F6 w' _0 a1 }; A
' [7 J3 `( @* r- e: N
  1. var test;
    / x1 D0 O( W) N# Y1 f0 Z6 ^
  2. //this is a code?
复制代码
$ A/ n+ C2 I4 m0 b
& [. N: i; T- O0 {: Q4 \
  f3 }2 u0 {- V* i& ~0 B7 k! w
) l& y4 d. W  }; p: d6 r
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则