请教老师 krpano 小行星效果

[复制链接]
查看12720 | 回复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>& k. i' G& \: f0 r
  1. <!-- startup view settings for 'little planet view' (stereographic=true + fisheye=1.0 + fov>120 + vlookat>70) -->
    6 H, L3 A" n4 {5 }: U
  2. <view stereographic="true" * X/ V/ N. z1 a- ?3 Z* a& B0 b" v
  3. fisheye="1.0"
    & g( M/ h7 @2 O& w
  4. fov="155" 5 `; n) a" [/ n7 }
  5. fovtype="VFOV"
    - M! `" X. H4 `7 N
  6. fovmax="150"
    ( r' u; P9 }3 Z
  7. hlookat="-60"  
    8 ^- |* t6 q4 w: Z4 L, s1 `! y
  8. vlookat="77"  />    4 J) G0 c) y" K  L9 A: x4 o
  9. 插入到tour.xml中   
    4 U3 X$ r$ R" }
  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 -->. n+ Y$ w# |- }& x9 r" W* g/ h
  11. <display flash10="off" details="24" />  
    9 F( C# Q$ k$ E; J9 R  s, V2 H! Z
  12. <!-- when the loading is done, wait 2 seconds and then start with the animation to an normal view -->
    7 T# W3 O/ C3 W( u, m$ T
  13. <events onloadcomplete="delayedcall(2.0, normalview());" />   
    0 m- x; C* L, F/ O
  14. <action name="normalview"> : X" l- b7 ]7 @% ^# s# q3 Z5 A
  15. tween(view.hlookat, -40, 2.5, easeInOutQuad);
    + g4 [4 \' G- F# S& A. X
  16. tween(view.vlookat, -35, 2.5, easeInOutQuad);  
    * ]3 l4 x7 h' b% B( j/ g- ^
  17. tween(view.fov, 85, 2.5, easeInOutQuad);  
    * c; R  G" Q) ~; t5 t: M$ n
  18. tween(view.fisheye, 0.0, 2.5, easeInOutQuad); ; ]! T2 N) e: ?8 \2 S7 |- X2 o8 p
  19. wait(2.7);  ) t+ y. S  @8 T' a: S8 V2 z, a2 G
  20. set(display.flash10, on);   
    9 F; H" E1 `: ]! |
  21. </action>
复制代码
5 n& P0 y% v2 l6 J; c( B; D

' A# F0 v4 l0 h; t( i

点评

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

# l# ~3 o; }$ u" A1 K! }. |我觉得您可能没有注意到编辑器有个插入代码的工具呢?
! T0 A( O* d# d9 m5 ~试一试,很好用!
9 I1 _, V* ^4 n5 m# N4 {- Q 16210609032034.jpg
) e( ~% j2 W& l9 X- T. ^" u* H
+ z. H# I: c/ {0 E
  1. var test;
    # P+ E+ d- w, i6 ]0 B9 ?5 c$ t% L; n+ W
  2. //this is a code?
复制代码
* k( _& E( D' X- F* E

0 a; ]8 j7 V# H' N- Q5 X
0 u% h4 \; u& u: r2 _
6 g, K1 V1 M+ X  S) k+ K
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则