请教老师 krpano 小行星效果

[复制链接]
查看15665 | 回复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>2 v% j) ~6 ~' H4 ^
  1. <!-- startup view settings for 'little planet view' (stereographic=true + fisheye=1.0 + fov>120 + vlookat>70) -->1 X/ G+ `0 l" P" q+ v  V
  2. <view stereographic="true" 0 H* d% y' C8 v
  3. fisheye="1.0" 5 w  x4 ^' z( q! `
  4. fov="155"   ^  ^/ L3 a3 @! O' a0 C
  5. fovtype="VFOV"
    - V7 @' K: m1 k3 x
  6. fovmax="150"
    & L& L- Y/ ^% ~# n
  7. hlookat="-60"  9 g  e  F  F5 E( y$ A, G2 d
  8. vlookat="77"  />    & i! G* M. ]! r# `- l, F
  9. 插入到tour.xml中   
    1 x0 ^2 t7 G2 g
  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 -->7 _: `1 a, Z3 J& g
  11. <display flash10="off" details="24" />  0 y9 @1 j3 \7 C7 {2 ?
  12. <!-- when the loading is done, wait 2 seconds and then start with the animation to an normal view --> 8 X4 c! w9 a2 N( f7 t6 p9 K4 s
  13. <events onloadcomplete="delayedcall(2.0, normalview());" />   
    + c+ J  L% Y" f" z% l
  14. <action name="normalview"> ! c& [5 D# p: ^0 P# V+ ^3 t/ W& W7 j
  15. tween(view.hlookat, -40, 2.5, easeInOutQuad); / y  ~" l4 C0 }- i* k
  16. tween(view.vlookat, -35, 2.5, easeInOutQuad);  
    ! N$ n* }0 h: J  c* p1 ?% B
  17. tween(view.fov, 85, 2.5, easeInOutQuad);  
    " M; R, l" C) t- f. p( l
  18. tween(view.fisheye, 0.0, 2.5, easeInOutQuad); , X$ Q; N" v3 p8 B
  19. wait(2.7);  
    ! [1 Q9 e) y/ d  R  r
  20. set(display.flash10, on);   
    " |" B; y/ B' J2 I! r0 Y7 t
  21. </action>
复制代码

# L/ _$ \" q" j0 H( u, s
5 ~/ L# J' B( G& B. v7 c$ ^

点评

我觉得您可能没有注意到编辑器有个插入代码的工具呢? 试一试,很好用!  详情 回复 发表于 2016-3-20 12:33 AM
明海+ | 2016-3-20 00:33:31 | 显示全部楼层
原来是小茄 发表于 2016-3-19 18:16+ z9 Y$ k, [1 J
[html] view plaincopyprint? 插入到scene标签中         插入到tour.xml中                  tween(view.h ...
% n: G5 e1 {' T* Z) r/ H

7 b) _( i$ G0 K& T  j/ y/ T我觉得您可能没有注意到编辑器有个插入代码的工具呢?; Q1 W5 [# s( X! A7 ]" y  `
试一试,很好用!
. L) X0 T+ o+ N, x: F. y# j 16210609032034.jpg & B+ b9 I( P  _) G7 }; r

2 `$ q5 G, I; s* C
  1. var test;* |2 R) _0 g/ ^: j/ k# r6 \
  2. //this is a code?
复制代码
( b2 G; ]4 A- k3 e. X

6 I. t' Q5 o. c( K  j9 j  C6 O6 y) y! V8 ?6 Z) v  {- C9 q
. H. e# A% K9 Q6 C5 @+ u# Z
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则