请教老师 krpano 小行星效果

[复制链接]
查看15591 | 回复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>0 q* s. w( [6 Q# W
  1. <!-- startup view settings for 'little planet view' (stereographic=true + fisheye=1.0 + fov>120 + vlookat>70) -->$ n! p! C1 L. ?0 X7 u
  2. <view stereographic="true" 4 {: W3 D( B4 b" ^8 ?
  3. fisheye="1.0"
    " Q9 @; S, b! S7 ~
  4. fov="155"
    - T" j  V* k0 I2 p4 P9 s
  5. fovtype="VFOV"
    ) @( u& q* V& C3 d4 j" l: K5 m7 f
  6. fovmax="150" / R, W, ^8 N5 j4 K9 J
  7. hlookat="-60"  - P& ~% E+ [1 f! S# U4 x  H$ j
  8. vlookat="77"  />    % J: s, w% {7 j4 x! [
  9. 插入到tour.xml中   . y9 Y: B! w2 G& n& H
  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 -->
    6 o: W+ v9 d9 `& S
  11. <display flash10="off" details="24" />  
    0 ?  a9 |1 B! ?$ K8 O/ J
  12. <!-- when the loading is done, wait 2 seconds and then start with the animation to an normal view -->
    7 J& [9 x8 r8 c$ K6 [
  13. <events onloadcomplete="delayedcall(2.0, normalview());" />    8 K6 J" S/ H6 ~+ @# ^* L
  14. <action name="normalview"> ; M1 ]  i1 s/ I# S8 ?
  15. tween(view.hlookat, -40, 2.5, easeInOutQuad); . D! k* ~9 u( Y4 ^
  16. tween(view.vlookat, -35, 2.5, easeInOutQuad);  
    , n) D9 v1 A- Y6 ]! H) v
  17. tween(view.fov, 85, 2.5, easeInOutQuad);  
    : D& P% u0 ^+ n. x0 `* e
  18. tween(view.fisheye, 0.0, 2.5, easeInOutQuad); # T% M0 y9 h  a0 b3 d
  19. wait(2.7);  / ~' L# R! Z8 k# r, `+ h4 U1 G) ]- |
  20. set(display.flash10, on);   : r" ^3 e# Y. c8 \: K" C
  21. </action>
复制代码

/ c( \1 \" d+ w+ y$ J9 D, Z0 q# F6 H0 b2 m7 l

点评

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

0 O, a5 b8 R  M" I3 e! ?" T, f, J& ?$ d* @
我觉得您可能没有注意到编辑器有个插入代码的工具呢?2 u+ P* E7 O8 }# s
试一试,很好用!
% p# d: l; b4 a6 Z# u/ L 16210609032034.jpg 1 W0 h' @! _3 W4 M& F+ k1 K3 W

$ L; J; Q. j+ p
  1. var test;6 c3 C2 J  M2 M' _" ]
  2. //this is a code?
复制代码

* ~* B0 n1 T$ ]  J, `2 I% n6 J- U- c) r9 D0 R+ q) h3 i+ f/ E+ Q, d' \

  x- y) W6 q1 S4 `& K. I" O; W$ S( g0 v, o  A
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则