[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>; H1 z- e7 O! \9 m6 z0 N
- <!-- startup view settings for 'little planet view' (stereographic=true + fisheye=1.0 + fov>120 + vlookat>70) -->. r' V/ D" |! y- S
- <view stereographic="true"
8 I9 \! w: ?( @6 [ - fisheye="1.0" * j; m9 A0 \4 a" p/ Q2 }
- fov="155"
! l5 ? ?; v& g# l3 a1 S - fovtype="VFOV"
4 H. A7 C& h: k' c4 q - fovmax="150"
) i: x- ~% b" {) f. w - hlookat="-60"
2 B" m* G4 u) Z, | - vlookat="77" /> ) I! H2 u6 d. s" e' J: K
- 插入到tour.xml中
! S) D7 D7 b9 S0 i# |) r% e4 Z$ \ - <!-- 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 -->' z% l$ q8 }/ P9 D' Q+ J0 A1 u( |
- <display flash10="off" details="24" /> * N( s8 L+ V5 k; f7 d/ } v) r
- <!-- when the loading is done, wait 2 seconds and then start with the animation to an normal view -->
& d( F8 u/ e: N4 J' B - <events onloadcomplete="delayedcall(2.0, normalview());" />
( h6 [! H* a4 T# X# R* a3 H$ } - <action name="normalview"> 7 w, i0 w# X# Y
- tween(view.hlookat, -40, 2.5, easeInOutQuad);
. K& R& t. g/ K& } D9 S5 S {7 y, Q" L - tween(view.vlookat, -35, 2.5, easeInOutQuad); * o$ [, Q, Y/ R& Y& i& Q. j
- tween(view.fov, 85, 2.5, easeInOutQuad); 2 ?( \7 l3 t) n+ |; q
- tween(view.fisheye, 0.0, 2.5, easeInOutQuad); 7 E& N& R9 s6 f& A, [0 m" y W- B3 e
- wait(2.7); 2 {* J1 w2 J9 O+ H& s# {5 A: a$ l; d
- set(display.flash10, on);
# |6 m3 x Q- Z. ^: U- K - </action>
复制代码
2 q& S% U3 f8 C5 O$ d) u$ p7 V
. ^6 v1 k& B7 W: M% | |