请教老师 krpano 小行星效果

[复制链接]
查看15808 | 回复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>4 U* n& m' \  f
  1. <!-- startup view settings for 'little planet view' (stereographic=true + fisheye=1.0 + fov>120 + vlookat>70) -->% @2 X4 \3 o3 L  X# `: D+ Q
  2. <view stereographic="true" 1 m- D6 t! j0 n, d
  3. fisheye="1.0"
    & K& _( l6 w+ i; _4 \) N
  4. fov="155" / ?; B% a3 P3 O  b; E2 j- S# S: I
  5. fovtype="VFOV" 3 }: J3 J! I1 O7 `
  6. fovmax="150"
    ( I- L+ N( G1 o  q" l
  7. hlookat="-60"  
    7 T0 G4 i2 w" E, I) e7 b& k
  8. vlookat="77"  />    $ H! O8 B7 A% g+ u! Q
  9. 插入到tour.xml中   
    9 y4 `. k2 S0 C$ C1 A
  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 -->+ j" M3 q# E, I/ p9 t! U
  11. <display flash10="off" details="24" />  8 \6 w+ t) z1 ]* ?+ ^, G- \) i" [& n
  12. <!-- when the loading is done, wait 2 seconds and then start with the animation to an normal view -->
    5 j, r; J9 T  r* l
  13. <events onloadcomplete="delayedcall(2.0, normalview());" />      e- @: X! C) ^, P5 f& ~
  14. <action name="normalview"> ! s) `, ~# W6 [) `  j& D
  15. tween(view.hlookat, -40, 2.5, easeInOutQuad);
    6 j: Z9 Q6 E& l: V4 f
  16. tween(view.vlookat, -35, 2.5, easeInOutQuad);  . {( D0 i# G) H/ w9 ~9 d4 r$ y
  17. tween(view.fov, 85, 2.5, easeInOutQuad);  , {+ h* G: v0 j  d( c
  18. tween(view.fisheye, 0.0, 2.5, easeInOutQuad);
    , |; p- h( a" Q3 O! z) m
  19. wait(2.7);  ' [, T6 B3 Z& Q. t! V: u. d0 ^
  20. set(display.flash10, on);   8 s4 C+ y) _0 \+ X% `$ ?/ u* _
  21. </action>
复制代码
" Z+ G& k7 P0 p; z* h5 W

# T( {" b) X+ W; U! f+ w: R8 ?3 V

点评

我觉得您可能没有注意到编辑器有个插入代码的工具呢? 试一试,很好用!  详情 回复 发表于 2016-3-20 12:33 AM
明海+ | 2016-3-20 00:33:31 | 显示全部楼层
原来是小茄 发表于 2016-3-19 18:16
" l8 f) h" k9 |2 u$ P+ l[html] view plaincopyprint? 插入到scene标签中         插入到tour.xml中                  tween(view.h ...
  ~. A! Y7 t1 s7 ~, A7 s
0 y' y! ^/ t* z/ l9 T; v9 H4 I
我觉得您可能没有注意到编辑器有个插入代码的工具呢?
. O% L& E$ Q7 ~/ ^+ {试一试,很好用!. o+ I! ?1 k* x1 t# p4 _: G
16210609032034.jpg
3 L6 J5 V1 p, k! {6 R# d- j8 X/ Q/ Z# I3 f
  1. var test;2 D' m& ^8 N6 m, K
  2. //this is a code?
复制代码
9 S# ]% N. W3 {% z' J+ c% u/ L
- \$ i% G, V: W* r! w
) l3 k+ @+ l6 J6 N" V2 e

$ d) `0 t# j! \' u  G0 X
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则