请教老师 krpano 小行星效果

[复制链接]
查看15756 | 回复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>
$ |$ {4 d3 f2 S% c9 R+ x0 g# z/ h
  1. <!-- startup view settings for 'little planet view' (stereographic=true + fisheye=1.0 + fov>120 + vlookat>70) -->
    ; [2 p5 v/ ]& N' U- V
  2. <view stereographic="true" 9 c( n3 F- G5 l- r  I
  3. fisheye="1.0" 0 ]: A8 r; M8 y. z
  4. fov="155" + W5 {( u1 H5 c7 n
  5. fovtype="VFOV" % Z0 E/ C; E$ ?9 y* Y! s
  6. fovmax="150"
    8 K' o, x; @! O9 Q7 X6 @) r
  7. hlookat="-60"  
    7 A  e1 z/ g: x- b( i
  8. vlookat="77"  />    ( |3 t+ C$ ?/ U2 r0 y0 O
  9. 插入到tour.xml中   
    4 s- G2 x& r8 d# h" Q+ k$ V% h
  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 t0 c5 N! Z' V
  11. <display flash10="off" details="24" />  
    , L, k: Q: o' s1 A8 ]
  12. <!-- when the loading is done, wait 2 seconds and then start with the animation to an normal view --> $ x. N0 D! E' `$ ?
  13. <events onloadcomplete="delayedcall(2.0, normalview());" />   
    6 G' C. Y! G0 e. s
  14. <action name="normalview"> , M) \* ?/ j( R8 M1 z7 E
  15. tween(view.hlookat, -40, 2.5, easeInOutQuad);   y/ j0 ~, ]0 O: N/ i6 ^; m
  16. tween(view.vlookat, -35, 2.5, easeInOutQuad);  1 @9 X% |/ X7 K! T' U
  17. tween(view.fov, 85, 2.5, easeInOutQuad);  4 C* R1 H  N* v8 J. M( s3 @
  18. tween(view.fisheye, 0.0, 2.5, easeInOutQuad); - y; c" j+ @. r1 N/ i
  19. wait(2.7);  
    3 D5 |, k' u* [1 I- ~
  20. set(display.flash10, on);   " v" Z6 w/ S) |5 I$ T; }" X1 U* e
  21. </action>
复制代码

/ f( O8 x) C5 I" f6 `- C& W
1 [9 O) X  [3 f; X" ^- J/ C9 S

点评

我觉得您可能没有注意到编辑器有个插入代码的工具呢? 试一试,很好用!  详情 回复 发表于 2016-3-20 12:33 AM
明海+ | 2016-3-20 00:33:31 | 显示全部楼层
原来是小茄 发表于 2016-3-19 18:166 K5 u% Z/ Y! O& W6 }6 O2 [! f
[html] view plaincopyprint? 插入到scene标签中         插入到tour.xml中                  tween(view.h ...
* o+ L! T+ _+ x; K
) A, U/ g2 T( R6 T
我觉得您可能没有注意到编辑器有个插入代码的工具呢?
& F- ]& [2 c! P0 b, u, |试一试,很好用!/ s6 A8 E% E1 L& \) V5 c& s
16210609032034.jpg 6 I& |' G+ K8 b# I5 k2 x9 O# ^. @
6 F/ ~. C, Y! N
  1. var test;. E; s( k2 d( _" ~" {4 q0 A
  2. //this is a code?
复制代码
; x. r) ^# W+ R& q3 ^

+ V" f9 `9 J8 w3 [4 P
. H- Y0 b/ y4 G/ M0 Z6 j- @8 m- C1 j: n! g' B2 ?$ ]! w
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则