[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 ^
- <!-- 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
- <view stereographic="true" 0 H* d% y' C8 v
- fisheye="1.0" 5 w x4 ^' z( q! `
- fov="155" ^ ^/ L3 a3 @! O' a0 C
- fovtype="VFOV"
- V7 @' K: m1 k3 x - fovmax="150"
& L& L- Y/ ^% ~# n - hlookat="-60" 9 g e F F5 E( y$ A, G2 d
- vlookat="77" /> & i! G* M. ]! r# `- l, F
- 插入到tour.xml中
1 x0 ^2 t7 G2 g - <!-- 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
- <display flash10="off" details="24" /> 0 y9 @1 j3 \7 C7 {2 ?
- <!-- 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
- <events onloadcomplete="delayedcall(2.0, normalview());" />
+ c+ J L% Y" f" z% l - <action name="normalview"> ! c& [5 D# p: ^0 P# V+ ^3 t/ W& W7 j
- tween(view.hlookat, -40, 2.5, easeInOutQuad); / y ~" l4 C0 }- i* k
- tween(view.vlookat, -35, 2.5, easeInOutQuad);
! N$ n* }0 h: J c* p1 ?% B - tween(view.fov, 85, 2.5, easeInOutQuad);
" M; R, l" C) t- f. p( l - tween(view.fisheye, 0.0, 2.5, easeInOutQuad); , X$ Q; N" v3 p8 B
- wait(2.7);
! [1 Q9 e) y/ d R r - set(display.flash10, on);
" |" B; y/ B' J2 I! r0 Y7 t - </action>
复制代码
# L/ _$ \" q" j0 H( u, s
5 ~/ L# J' B( G& B. v7 c$ ^ |