请教老师 krpano 小行星效果

[复制链接]
查看15299 | 回复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>
/ j- ]! I5 @5 B) E
  1. <!-- startup view settings for 'little planet view' (stereographic=true + fisheye=1.0 + fov>120 + vlookat>70) -->
    7 E4 B! M4 d0 z+ c; c" t
  2. <view stereographic="true"
    " u; B  G3 N7 O, D& r7 Y  B- B% z& Z
  3. fisheye="1.0"
    # g. ~! e6 V, _' k6 P1 f8 A3 t0 ^
  4. fov="155" ; |, b+ E/ Z  P+ ^0 I8 v; z5 m
  5. fovtype="VFOV"
    & H! r0 e& J6 a% s0 k' T0 F
  6. fovmax="150"
    / Z1 I( x2 ?# b8 B
  7. hlookat="-60"  
    % d& G- Q* {/ U5 p4 {) e
  8. vlookat="77"  />    6 A2 g  Q) }  l$ h
  9. 插入到tour.xml中   1 u6 t& \  n5 t0 E3 \# M6 g1 G# u
  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 -->9 ]$ p0 [4 W" o% _0 F- K0 f5 O
  11. <display flash10="off" details="24" />    M" Y  ?8 |1 y! f$ E% B4 P4 G
  12. <!-- when the loading is done, wait 2 seconds and then start with the animation to an normal view --> % G3 d# C# B% y
  13. <events onloadcomplete="delayedcall(2.0, normalview());" />   
    , i: E# `% S: N: I2 B: ~
  14. <action name="normalview">
    9 D0 E9 E) I) B
  15. tween(view.hlookat, -40, 2.5, easeInOutQuad); + Q1 n* R+ o! q* e3 }' u
  16. tween(view.vlookat, -35, 2.5, easeInOutQuad);  
    / P6 ]  f1 k7 v% _0 k. m
  17. tween(view.fov, 85, 2.5, easeInOutQuad);  $ `1 z8 r* i" h
  18. tween(view.fisheye, 0.0, 2.5, easeInOutQuad);
    7 t1 a; G8 B' R- k7 ?" `. z6 n" V
  19. wait(2.7);  # c9 S; Z1 S) e5 \0 r. z' `
  20. set(display.flash10, on);   
    9 `: N' z: O& ^# L( u) P
  21. </action>
复制代码

: p4 X- h% w. w9 s+ p# j" p* u) u6 w0 N6 V) D/ O0 g7 ^- m9 e

点评

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

3 N! a4 a+ y% n
& t6 s/ u9 ^" F" M& E我觉得您可能没有注意到编辑器有个插入代码的工具呢?
+ \4 g/ T2 u) _: i1 a试一试,很好用!
6 S& E. W; Z6 m- M6 P5 [9 w 16210609032034.jpg 7 a2 s5 E  V% r* [7 i7 I; z6 A

+ f9 O7 y1 N% d/ s/ L. C- j8 [
  1. var test;
    ! h0 k' ?) ~- X  p
  2. //this is a code?
复制代码
8 x! ]( _6 U0 \, g. ~6 y6 n

7 i" _6 v9 y( g2 U
; Q3 f1 {" u3 G" l
" t. _  H' G: L9 i; X: k
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则