请教老师 krpano 小行星效果

[复制链接]
查看15073 | 回复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>
- ^2 a1 |- k# E5 w5 R6 v3 p9 n
  1. <!-- startup view settings for 'little planet view' (stereographic=true + fisheye=1.0 + fov>120 + vlookat>70) -->
    & y, d% H0 u. k
  2. <view stereographic="true" 2 x0 p7 |' t- u! B) Q8 ~/ S3 l  w
  3. fisheye="1.0" " K- X; o: @* _" N  I, p
  4. fov="155" 7 |5 P7 z9 F7 o0 f
  5. fovtype="VFOV"
    8 k: i; Q9 Y9 h/ G5 a* A% P
  6. fovmax="150"
    + W% [7 J4 k+ I$ |) I
  7. hlookat="-60"  
    2 R# e- l9 K- d5 C7 M* S9 B% p
  8. vlookat="77"  />   
    & t; G) ~7 V8 A" w" ]' I2 b3 z* S+ p
  9. 插入到tour.xml中   , C& {& Q3 N* s2 c  w" K# Z6 v
  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 -->
    7 M! T! Q* C- X2 ?$ g
  11. <display flash10="off" details="24" />  2 [$ x4 _+ O" {3 J  D
  12. <!-- when the loading is done, wait 2 seconds and then start with the animation to an normal view -->
    $ _( b* z3 D# {3 L" H
  13. <events onloadcomplete="delayedcall(2.0, normalview());" />    ; D) j: y1 _  ]& p' Y5 j
  14. <action name="normalview"> 5 N& P' @5 |* b! i  O" e. d
  15. tween(view.hlookat, -40, 2.5, easeInOutQuad); $ J* p5 W( X$ I7 f- I
  16. tween(view.vlookat, -35, 2.5, easeInOutQuad);  
    1 ^8 ~+ F9 t, V1 E8 J& T
  17. tween(view.fov, 85, 2.5, easeInOutQuad);  
    8 b$ b5 C+ W  {! H/ A: ?
  18. tween(view.fisheye, 0.0, 2.5, easeInOutQuad);
    ! p) n7 N. j: B$ R) D
  19. wait(2.7);  
    $ v$ D+ d$ p$ ]0 G9 p: t4 X
  20. set(display.flash10, on);   
    * E6 M; i6 e* m, Y- I; ~% t
  21. </action>
复制代码

1 Q3 [0 |* ^3 Y% r$ T8 u+ y, h0 B2 k/ P) d

点评

我觉得您可能没有注意到编辑器有个插入代码的工具呢? 试一试,很好用!  详情 回复 发表于 2016-3-20 12:33 AM
明海+ | 2016-3-20 00:33:31 | 显示全部楼层
原来是小茄 发表于 2016-3-19 18:16
! W( Y, Y% A# ^+ R0 p' I[html] view plaincopyprint? 插入到scene标签中         插入到tour.xml中                  tween(view.h ...
4 K# \3 S; M4 L0 p% C

3 j0 _/ c4 n! `  \# f7 R我觉得您可能没有注意到编辑器有个插入代码的工具呢?
, L9 C0 x( r# C试一试,很好用!
6 {! i' t. O4 T! k% m 16210609032034.jpg ' v% L" p3 T& W
" N8 z" K. Y+ D" d, g
  1. var test;
    8 t7 ^) j( d( t
  2. //this is a code?
复制代码

: }+ k, _3 P  i0 Z
2 v: v0 c( N5 ^, e
1 {1 s: u( g8 `: W
: j/ K! W0 Q7 M* o7 [4 h! Y
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则