请教老师 krpano 小行星效果

[复制链接]
查看15297 | 回复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>& c( ~6 V$ V0 D+ z" ]2 V
  1. <!-- startup view settings for 'little planet view' (stereographic=true + fisheye=1.0 + fov>120 + vlookat>70) -->
    0 M+ x( W4 `  O5 l" \# I3 u5 b4 W
  2. <view stereographic="true" ( M, R0 N/ z# h$ S* M
  3. fisheye="1.0"
    1 ?* a8 l5 i: y% D( l  s0 M
  4. fov="155" 1 d: t/ {3 A7 A* s* L9 [. X
  5. fovtype="VFOV" 2 y6 @6 T7 T/ B; Y; \/ g
  6. fovmax="150"
    - m, r0 ~3 S" O: O( {
  7. hlookat="-60"  1 d$ h* t& J/ `9 e! x+ H* b2 Y
  8. vlookat="77"  />    ( T0 u8 w1 g1 k; y# w+ X0 t
  9. 插入到tour.xml中   
    1 X# Z* \4 L: k$ J4 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 -->. M6 d+ r+ \, }3 o
  11. <display flash10="off" details="24" />  # l) h3 ?0 Q9 L0 x+ A- w  {- p
  12. <!-- when the loading is done, wait 2 seconds and then start with the animation to an normal view -->
    2 k# E! R1 F4 M0 n  J+ w: e
  13. <events onloadcomplete="delayedcall(2.0, normalview());" />    # A' N) p. g: L  S+ i7 C
  14. <action name="normalview">
    $ Z0 G4 F+ c+ H, T( d
  15. tween(view.hlookat, -40, 2.5, easeInOutQuad);
    6 g# _$ N& R. f; p- I
  16. tween(view.vlookat, -35, 2.5, easeInOutQuad);  7 k- u' S6 z# J# s1 q7 n6 a
  17. tween(view.fov, 85, 2.5, easeInOutQuad);  6 y. f) \' N4 q# E" Z7 u. ~
  18. tween(view.fisheye, 0.0, 2.5, easeInOutQuad);
    7 n* T+ ^2 |' M
  19. wait(2.7);  6 }, K- O6 c) S4 o# L
  20. set(display.flash10, on);   
    1 Z0 W2 f6 r4 W2 d5 B
  21. </action>
复制代码
8 j& r$ G8 O0 F6 I+ ~+ i. i1 G  w

) {4 i1 x9 C- _: o2 }3 F7 X

点评

我觉得您可能没有注意到编辑器有个插入代码的工具呢? 试一试,很好用!  详情 回复 发表于 2016-3-20 12:33 AM
明海+ | 2016-3-20 00:33:31 | 显示全部楼层
原来是小茄 发表于 2016-3-19 18:16
1 ?0 M% x9 j1 f. K% n" f$ [' G[html] view plaincopyprint? 插入到scene标签中         插入到tour.xml中                  tween(view.h ...
* U2 T; A8 F7 o5 \- s, i; T
3 i6 j0 i3 ^7 w/ B/ C3 l
我觉得您可能没有注意到编辑器有个插入代码的工具呢?
! X; ^7 O6 k( I/ e试一试,很好用!
( H9 Q& U6 S) o0 ]* b; N' a 16210609032034.jpg
% Q% E( y" `+ J. I: Y+ ~9 r& q9 F( {8 ?1 a4 O# ~; u
  1. var test;
    , z/ X6 P" C) `  R
  2. //this is a code?
复制代码
2 ?% P$ \8 H( A

/ P& W9 S% `: P  }- O) \
) H* H+ X6 D% O, d
) E# P4 d" D  Q* }1 N8 \$ s
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则