[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>
/ g( X& G- \" [- K3 v- <!-- startup view settings for 'little planet view' (stereographic=true + fisheye=1.0 + fov>120 + vlookat>70) -->
: T- r1 Q& X; `. D - <view stereographic="true" % Z! t' r; i$ A+ {; M9 S( ]7 t Q
- fisheye="1.0"
1 O6 B1 E; U# F" D; S. }( z7 W - fov="155"
" h) \: ]4 d3 E H' w5 r - fovtype="VFOV" ( d5 _3 O! q9 }: b! P( U# b8 j6 u) i
- fovmax="150"
) L6 ^$ Y+ u6 C+ N4 _/ `8 [ - hlookat="-60" 2 l9 P4 o8 h9 Y$ M* t7 }
- vlookat="77" />
8 {" `% \! u' v- p- G. d# K$ B - 插入到tour.xml中 ' ^8 D, \/ O# b; L
- <!-- 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 -->- k3 r$ T3 ?" j" ]' c* E
- <display flash10="off" details="24" /> ) t I' M2 y( A
- <!-- when the loading is done, wait 2 seconds and then start with the animation to an normal view -->
/ R" [3 I0 W# N: M - <events onloadcomplete="delayedcall(2.0, normalview());" /> 4 W) j1 |0 t% P
- <action name="normalview"> ( k0 I6 @- p" n0 n; l/ i
- tween(view.hlookat, -40, 2.5, easeInOutQuad); + a2 X7 v* \5 ^
- tween(view.vlookat, -35, 2.5, easeInOutQuad); 9 G( h$ b8 Z& V& [% v2 m
- tween(view.fov, 85, 2.5, easeInOutQuad); 1 o& ]' ~- r$ ?0 A0 D7 W, O
- tween(view.fisheye, 0.0, 2.5, easeInOutQuad);
# n% Q X9 E1 P( S - wait(2.7); : w0 P& \, X4 _& G
- set(display.flash10, on);
3 a: n6 [% L4 a0 |* o7 } - </action>
复制代码 1 F- X$ n, C' C2 o
( Z# B3 @2 |0 ]' E |