请教老师 krpano 小行星效果

[复制链接]
查看13064 | 回复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>
9 n2 L( E9 f; [* y4 b" ~% ^
  1. <!-- startup view settings for 'little planet view' (stereographic=true + fisheye=1.0 + fov>120 + vlookat>70) -->* a  j3 R( L) {: Q. y) ~7 D
  2. <view stereographic="true" 9 G9 k. Z# L1 Q+ l# H+ Y" G
  3. fisheye="1.0"
    . B5 @4 s. ?& u7 i, Q
  4. fov="155"
    $ j% i' ^- a% g" j  d
  5. fovtype="VFOV" 8 `% U, A. D" J" e
  6. fovmax="150"
    * Y- v4 v2 C; K; i7 j9 V
  7. hlookat="-60"  
    1 R% D; i( J3 k* @* k1 }; {
  8. vlookat="77"  />   
    , [7 t5 w3 I/ t" |2 a  Q
  9. 插入到tour.xml中   " v2 ~3 l! a/ l2 y+ Z# d4 x
  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 -->
    ; `0 N9 B$ C3 p/ C* _' }+ t
  11. <display flash10="off" details="24" />  
    " R  {0 m) h$ A+ @6 Y9 x; v
  12. <!-- when the loading is done, wait 2 seconds and then start with the animation to an normal view -->
    + s) m9 L  M8 n: d
  13. <events onloadcomplete="delayedcall(2.0, normalview());" />    , J* W- l# |" I3 O0 F4 {3 n
  14. <action name="normalview"> 9 @- b# D9 Z/ C5 M6 e9 ~. Y
  15. tween(view.hlookat, -40, 2.5, easeInOutQuad);
    + V7 X6 P1 h: u* [
  16. tween(view.vlookat, -35, 2.5, easeInOutQuad);  * X) p5 g7 c* \' Y- W1 o! Q
  17. tween(view.fov, 85, 2.5, easeInOutQuad);  
    # q# H: a  Y, z( w1 i0 p' K5 j- \; _
  18. tween(view.fisheye, 0.0, 2.5, easeInOutQuad);
    9 q% e4 z9 L2 c/ t2 A* s* E
  19. wait(2.7);  5 f+ N6 p4 r1 i; f" X
  20. set(display.flash10, on);   / ]0 }7 k$ y$ _9 q3 w* L
  21. </action>
复制代码

4 Y4 G9 b+ M1 b# ?5 ]6 O* R% W0 m9 d
3 V9 R% ]' A# W1 m1 l# @/ n

点评

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

% Q1 A8 j6 k) }
9 D' Y/ y8 K6 o* M: `我觉得您可能没有注意到编辑器有个插入代码的工具呢?
8 ~; M9 Q" o  K' r% x* q, ~试一试,很好用!
9 F( V, I+ R. o3 i2 p8 ~1 I7 S+ @8 L 16210609032034.jpg
- i) j4 _- x& u: |7 O' P7 ]( I- h3 O4 t
: K, j5 b3 P7 O9 H; G
  1. var test;, F/ ?! F8 Z* v4 I. ]2 w
  2. //this is a code?
复制代码

7 z' Y1 o" |' P
& `" b- ~9 d* f, \; y4 f$ f' Q" O) `

& \! Q! ~& w, ]4 }4 `& O( I% c" v1 p
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则