请教老师 krpano 小行星效果

[复制链接]
查看12823 | 回复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 e+ m. {( R& {- Z4 ~
  1. <!-- startup view settings for 'little planet view' (stereographic=true + fisheye=1.0 + fov>120 + vlookat>70) -->7 m4 c( G( ?, z" W. h$ d( z; ]
  2. <view stereographic="true" ( a$ l2 c& ]/ x8 d$ |+ |& v: k9 x
  3. fisheye="1.0"
    7 b# v- P6 A- D) N+ D% F
  4. fov="155" 5 l0 b4 w) e  Z' l5 M. N& q6 s9 e
  5. fovtype="VFOV" , {# N( R; L) N3 H, k7 c/ X$ ]' D
  6. fovmax="150"
    2 d+ ^7 T$ K8 E$ k9 Y
  7. hlookat="-60"  
    # h$ X, @0 X4 S2 K" s
  8. vlookat="77"  />    : c, J! F0 w, p+ h
  9. 插入到tour.xml中     i- l( }  C0 k
  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 -->4 W/ P7 |* g* d% H; F7 ^; T
  11. <display flash10="off" details="24" />  
    2 r0 b+ l7 c2 X" q: u
  12. <!-- when the loading is done, wait 2 seconds and then start with the animation to an normal view -->
    6 M$ S/ \6 o' X6 w0 j* @$ F
  13. <events onloadcomplete="delayedcall(2.0, normalview());" />    4 U3 {* _  I3 i* p; K
  14. <action name="normalview">
    + D6 f. ]# Y) }' l  p- M1 T
  15. tween(view.hlookat, -40, 2.5, easeInOutQuad); 2 O* H/ c' _& g: D
  16. tween(view.vlookat, -35, 2.5, easeInOutQuad);  
    ' f% P0 l+ ^! B) _' X
  17. tween(view.fov, 85, 2.5, easeInOutQuad);  
    0 \5 ^" @: [7 s7 A; U  T
  18. tween(view.fisheye, 0.0, 2.5, easeInOutQuad);
    , h% w& T& y3 x& N2 T( d( `0 c
  19. wait(2.7);  - r7 O. v2 x& `1 U% F
  20. set(display.flash10, on);   & |( c* d4 K1 u% J4 C' [: p' d
  21. </action>
复制代码
+ ?- `- w2 R! k! S' B1 ^

, T  \$ _0 d& L

点评

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

* i  a( d6 H6 ]* p# l8 [0 {+ {0 e: \2 @# k
我觉得您可能没有注意到编辑器有个插入代码的工具呢?
1 e( f; p6 c, H2 }2 }5 [4 o7 t试一试,很好用!3 v, H$ |3 u& b* j/ x9 B* h
16210609032034.jpg 5 G6 G5 R! G  o: o8 @+ b

/ |) s, ?3 t4 T# H/ X- ], T
  1. var test;
    / t) E' |/ y6 L) x: K' o& s; o
  2. //this is a code?
复制代码
% z/ K# a9 m, x& Q$ M& v! o1 q
) V# {0 R9 O0 K# p
' N3 j8 ?8 b' z8 T
3 _8 k2 B2 z9 N' X
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则