请教老师 krpano 小行星效果

[复制链接]
查看12987 | 回复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 k2 n- A3 s' z' ?2 j& y2 C
  1. <!-- startup view settings for 'little planet view' (stereographic=true + fisheye=1.0 + fov>120 + vlookat>70) -->
    , O4 \: M! j$ Y- H" `
  2. <view stereographic="true" ; _9 |  _  W- K
  3. fisheye="1.0" 9 A2 V8 t0 M% I: S
  4. fov="155" 2 [. Q6 G9 u* P3 i7 R* L
  5. fovtype="VFOV"
    7 [' Z% E2 W6 p4 O3 A
  6. fovmax="150" " T% w0 @# H; c" N
  7. hlookat="-60"  
    : _9 n+ v1 q* i
  8. vlookat="77"  />    % m8 Q' J. g! F( g5 y5 n0 n
  9. 插入到tour.xml中   
    8 E: i3 J+ ^6 \6 H' J
  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 -->1 S# f) \& R- c  A, _( n
  11. <display flash10="off" details="24" />  8 U& ?: z2 @; J* J) a# C
  12. <!-- when the loading is done, wait 2 seconds and then start with the animation to an normal view -->
    7 Y  a1 d8 W- u. ~1 S
  13. <events onloadcomplete="delayedcall(2.0, normalview());" />    3 T; L6 m) f' d, a1 r0 }* i& _
  14. <action name="normalview">
    9 A- r; B4 K: L5 X3 b: I
  15. tween(view.hlookat, -40, 2.5, easeInOutQuad); - q2 x9 L, n/ q" B0 f8 y, Q
  16. tween(view.vlookat, -35, 2.5, easeInOutQuad);  
    ; {, [1 r( P2 j, E' f% y
  17. tween(view.fov, 85, 2.5, easeInOutQuad);  
    4 x" q1 ^6 I. L, q6 E6 }6 F
  18. tween(view.fisheye, 0.0, 2.5, easeInOutQuad);
    ! Y) Q3 \; V$ O  N
  19. wait(2.7);  
    6 B$ {+ i- V7 P9 o( i7 e3 n" W
  20. set(display.flash10, on);   
    7 J' I) F0 e  g, k5 w" P/ N
  21. </action>
复制代码

. c* U: b3 F" F2 L; C& Y3 m( W. c! w8 |9 j8 u% k

点评

我觉得您可能没有注意到编辑器有个插入代码的工具呢? 试一试,很好用!  详情 回复 发表于 2016-3-20 12:33 AM
明海+ | 2016-3-20 00:33:31 | 显示全部楼层
原来是小茄 发表于 2016-3-19 18:16
! K& |" |2 M- i9 G[html] view plaincopyprint? 插入到scene标签中         插入到tour.xml中                  tween(view.h ...
5 g8 w: J' L4 M' D& k8 N# x

/ E2 m8 ^7 B* V9 A2 E我觉得您可能没有注意到编辑器有个插入代码的工具呢?
( ~+ N8 F& b4 b0 K1 v2 n8 D试一试,很好用!
5 r( p& r8 l4 J, I 16210609032034.jpg
: }) w7 u7 j8 Z; X1 }2 i2 v) Z+ i' F* s5 e# T) u9 ]7 u8 D% \
  1. var test;, e( c+ Y, g6 ]$ X, P! T4 M
  2. //this is a code?
复制代码

/ i" e# V( X" w* ?
7 N2 z) T5 s0 [( H5 ]7 c8 S: {
( d4 Z! E' U+ C0 o
; v. |# P6 o  j  a! p0 z. g/ u# Y
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则