请教老师 krpano 小行星效果

[复制链接]
查看12721 | 回复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>; H1 z- e7 O! \9 m6 z0 N
  1. <!-- startup view settings for 'little planet view' (stereographic=true + fisheye=1.0 + fov>120 + vlookat>70) -->. r' V/ D" |! y- S
  2. <view stereographic="true"
    8 I9 \! w: ?( @6 [
  3. fisheye="1.0" * j; m9 A0 \4 a" p/ Q2 }
  4. fov="155"
    ! l5 ?  ?; v& g# l3 a1 S
  5. fovtype="VFOV"
    4 H. A7 C& h: k' c4 q
  6. fovmax="150"
    ) i: x- ~% b" {) f. w
  7. hlookat="-60"  
    2 B" m* G4 u) Z, |
  8. vlookat="77"  />    ) I! H2 u6 d. s" e' J: K
  9. 插入到tour.xml中   
    ! S) D7 D7 b9 S0 i# |) r% e4 Z$ \
  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 -->' z% l$ q8 }/ P9 D' Q+ J0 A1 u( |
  11. <display flash10="off" details="24" />  * N( s8 L+ V5 k; f7 d/ }  v) r
  12. <!-- when the loading is done, wait 2 seconds and then start with the animation to an normal view -->
    & d( F8 u/ e: N4 J' B
  13. <events onloadcomplete="delayedcall(2.0, normalview());" />   
    ( h6 [! H* a4 T# X# R* a3 H$ }
  14. <action name="normalview"> 7 w, i0 w# X# Y
  15. tween(view.hlookat, -40, 2.5, easeInOutQuad);
    . K& R& t. g/ K& }  D9 S5 S  {7 y, Q" L
  16. tween(view.vlookat, -35, 2.5, easeInOutQuad);  * o$ [, Q, Y/ R& Y& i& Q. j
  17. tween(view.fov, 85, 2.5, easeInOutQuad);  2 ?( \7 l3 t) n+ |; q
  18. tween(view.fisheye, 0.0, 2.5, easeInOutQuad); 7 E& N& R9 s6 f& A, [0 m" y  W- B3 e
  19. wait(2.7);  2 {* J1 w2 J9 O+ H& s# {5 A: a$ l; d
  20. set(display.flash10, on);   
    # |6 m3 x  Q- Z. ^: U- K
  21. </action>
复制代码

2 q& S% U3 f8 C5 O$ d) u$ p7 V
. ^6 v1 k& B7 W: M% |

点评

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

, N( _4 i+ y4 Z2 r4 B2 }; Q4 U" b8 f0 w; S/ A
我觉得您可能没有注意到编辑器有个插入代码的工具呢?! c8 l2 i5 W  ~* M, b/ h
试一试,很好用!
. `9 e. ?6 q( U+ z5 j8 `1 V 16210609032034.jpg
' S8 x# E. V4 A& f* K  J+ j7 X. I3 ?' ?( {# H
  1. var test;
    8 k# [! f/ L7 q
  2. //this is a code?
复制代码

; ~7 A8 c- @$ {2 i2 I
- w7 o* E1 V+ T2 c! ]; B7 C  g4 v2 h$ x! P, g

: C$ h! j$ X4 y/ q8 h
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则