请教老师 krpano 小行星效果

[复制链接]
查看15241 | 回复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>! H$ V! d! S/ i5 T
  1. <!-- startup view settings for 'little planet view' (stereographic=true + fisheye=1.0 + fov>120 + vlookat>70) -->" ~2 |4 Z; n5 O! A9 z, @
  2. <view stereographic="true" 1 [9 ]* Q% k6 @- Q- G# O, U
  3. fisheye="1.0" 1 C' z+ |" Y1 u6 L
  4. fov="155"
    1 f- I* H# L: r3 _- r
  5. fovtype="VFOV" 1 z* o) n% d  m1 u1 U7 W* B
  6. fovmax="150"
    0 b, s0 j0 j3 F' n
  7. hlookat="-60"  
    ! X! l4 V" j* k, j8 ^# Z) h
  8. vlookat="77"  />   
    / Z7 O2 R, K$ R3 ]
  9. 插入到tour.xml中   
    & V& q% L1 Q) c- w
  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 -->
    3 n8 m+ z5 V0 d8 P# B
  11. <display flash10="off" details="24" />  
    2 a# y7 `& H6 _; ?  D
  12. <!-- when the loading is done, wait 2 seconds and then start with the animation to an normal view -->
    ) e( U8 z  y+ A+ ^" I
  13. <events onloadcomplete="delayedcall(2.0, normalview());" />   
    % K0 A7 K) h( U! a7 B9 d7 f
  14. <action name="normalview"> 2 o; j+ z& ^7 e1 t7 j1 T$ X# X
  15. tween(view.hlookat, -40, 2.5, easeInOutQuad); ; ]5 W( d$ M. e6 q; ]1 w
  16. tween(view.vlookat, -35, 2.5, easeInOutQuad);  
    7 p2 h; V  K" K1 Q; t" E9 I2 N# b
  17. tween(view.fov, 85, 2.5, easeInOutQuad);  4 H& y9 e! S5 G0 ~- T8 w
  18. tween(view.fisheye, 0.0, 2.5, easeInOutQuad); " w# N* ]& R0 n# f) M
  19. wait(2.7);  
    ! o1 L# u) T7 y
  20. set(display.flash10, on);   # z& S! b. h( G* t( {
  21. </action>
复制代码

  s4 i  F! x, f' K6 b, t
% V0 E7 h0 B! N$ r: ]0 e

点评

我觉得您可能没有注意到编辑器有个插入代码的工具呢? 试一试,很好用!  详情 回复 发表于 2016-3-20 12:33 AM
明海+ | 2016-3-20 00:33:31 | 显示全部楼层
原来是小茄 发表于 2016-3-19 18:16
7 O' p% U( i/ m[html] view plaincopyprint? 插入到scene标签中         插入到tour.xml中                  tween(view.h ...
' g. x) V- x+ g! _& @. `) ~
% u; l$ q5 N! K$ x& [
我觉得您可能没有注意到编辑器有个插入代码的工具呢?
( P0 @6 A/ o: R  z3 d  `* A! y( y试一试,很好用!  T2 x& t+ [6 a
16210609032034.jpg " ^" O4 C( Y" A- K/ P
$ _0 ]8 J2 J) C- s) L2 a8 i
  1. var test;
    * P) o3 V2 E8 c" i* X) K! {
  2. //this is a code?
复制代码
- W* w! Y' b6 I9 X5 }6 y

: p9 [% J, J' k
; o1 V- L& |; f0 f! J5 a; j
/ O# s9 l5 u+ B4 e, N
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则