请教老师 krpano 小行星效果

[复制链接]
查看15807 | 回复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>* ^3 I7 b& Z/ c: h
  1. <!-- startup view settings for 'little planet view' (stereographic=true + fisheye=1.0 + fov>120 + vlookat>70) -->9 e5 B, f7 j0 |: o% z  w
  2. <view stereographic="true"
    ; K2 z: b3 x. x9 i$ w4 ]) s8 t
  3. fisheye="1.0" 1 b% ?. _0 N( S5 {
  4. fov="155" 6 P+ R8 A. e- t% B
  5. fovtype="VFOV" 7 k8 Y4 P; w! c* ^% a$ L2 V$ u
  6. fovmax="150"
    * R5 S! i! v7 ?7 s' q( O6 b- r
  7. hlookat="-60"  
    0 g% G- B# g1 b- {4 X! I8 L
  8. vlookat="77"  />    2 k/ a1 ~6 W: U, X
  9. 插入到tour.xml中   
    ) E' |, ~( _, ]" R. m
  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 -->
    6 i0 R) u- i9 [9 P1 H; G8 W. }" j$ G
  11. <display flash10="off" details="24" />  ' ~  |( {  i! T" g
  12. <!-- when the loading is done, wait 2 seconds and then start with the animation to an normal view --> / F$ d) x$ q- P! w1 W7 m
  13. <events onloadcomplete="delayedcall(2.0, normalview());" />   
    ! P7 X! r8 m( v5 v0 W3 o. W' A
  14. <action name="normalview"> $ A! p7 n& d5 L
  15. tween(view.hlookat, -40, 2.5, easeInOutQuad);
    7 e1 U7 a6 p$ z: b+ \3 |3 g
  16. tween(view.vlookat, -35, 2.5, easeInOutQuad);  1 t9 {' g! o  |, [. D$ k/ D* P
  17. tween(view.fov, 85, 2.5, easeInOutQuad);  ! Y5 L. v, Q& p+ v5 q) z: ?" H8 m
  18. tween(view.fisheye, 0.0, 2.5, easeInOutQuad);
    0 d- o) ?3 G8 ]' J* J9 M
  19. wait(2.7);  
    " r4 a0 l+ B& v  X  y
  20. set(display.flash10, on);   7 n7 |! n* b8 p% |) s" c
  21. </action>
复制代码
: Z& |: a6 H& E6 [4 U

9 u; @1 L: Z# l' p

点评

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

: |1 f1 G" v. V0 y2 ?( ]
; `2 {" t) ^# W6 G我觉得您可能没有注意到编辑器有个插入代码的工具呢?7 q4 [" {$ Z8 O: X7 ?8 Y  r
试一试,很好用!
" N. `; z4 f, L, O 16210609032034.jpg . V7 H) Z0 L2 g  x; \5 l" G

+ I/ V5 ]9 m! O% i% ~( }
  1. var test;
    " C6 O3 g( s) s
  2. //this is a code?
复制代码
# C0 y& Z, N2 L9 \- x
8 n$ S; h  u* k/ i' ^* U
8 |! ]4 g" A' h5 E# v* J
- z, g* T* {  I( J4 g
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则