[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>
9 n2 L( E9 f; [* y4 b" ~% ^- <!-- startup view settings for 'little planet view' (stereographic=true + fisheye=1.0 + fov>120 + vlookat>70) -->* a j3 R( L) {: Q. y) ~7 D
- <view stereographic="true" 9 G9 k. Z# L1 Q+ l# H+ Y" G
- fisheye="1.0"
. B5 @4 s. ?& u7 i, Q - fov="155"
$ j% i' ^- a% g" j d - fovtype="VFOV" 8 `% U, A. D" J" e
- fovmax="150"
* Y- v4 v2 C; K; i7 j9 V - hlookat="-60"
1 R% D; i( J3 k* @* k1 }; { - vlookat="77" />
, [7 t5 w3 I/ t" |2 a Q - 插入到tour.xml中 " v2 ~3 l! a/ l2 y+ Z# d4 x
- <!-- 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 -->
; `0 N9 B$ C3 p/ C* _' }+ t - <display flash10="off" details="24" />
" R {0 m) h$ A+ @6 Y9 x; v - <!-- when the loading is done, wait 2 seconds and then start with the animation to an normal view -->
+ s) m9 L M8 n: d - <events onloadcomplete="delayedcall(2.0, normalview());" /> , J* W- l# |" I3 O0 F4 {3 n
- <action name="normalview"> 9 @- b# D9 Z/ C5 M6 e9 ~. Y
- tween(view.hlookat, -40, 2.5, easeInOutQuad);
+ V7 X6 P1 h: u* [ - tween(view.vlookat, -35, 2.5, easeInOutQuad); * X) p5 g7 c* \' Y- W1 o! Q
- tween(view.fov, 85, 2.5, easeInOutQuad);
# q# H: a Y, z( w1 i0 p' K5 j- \; _ - tween(view.fisheye, 0.0, 2.5, easeInOutQuad);
9 q% e4 z9 L2 c/ t2 A* s* E - wait(2.7); 5 f+ N6 p4 r1 i; f" X
- set(display.flash10, on); / ]0 }7 k$ y$ _9 q3 w* L
- </action>
复制代码
4 Y4 G9 b+ M1 b# ?5 ]6 O* R% W0 m9 d
3 V9 R% ]' A# W1 m1 l# @/ n |