[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>
/ j- ]! I5 @5 B) E- <!-- startup view settings for 'little planet view' (stereographic=true + fisheye=1.0 + fov>120 + vlookat>70) -->
7 E4 B! M4 d0 z+ c; c" t - <view stereographic="true"
" u; B G3 N7 O, D& r7 Y B- B% z& Z - fisheye="1.0"
# g. ~! e6 V, _' k6 P1 f8 A3 t0 ^ - fov="155" ; |, b+ E/ Z P+ ^0 I8 v; z5 m
- fovtype="VFOV"
& H! r0 e& J6 a% s0 k' T0 F - fovmax="150"
/ Z1 I( x2 ?# b8 B - hlookat="-60"
% d& G- Q* {/ U5 p4 {) e - vlookat="77" /> 6 A2 g Q) } l$ h
- 插入到tour.xml中 1 u6 t& \ n5 t0 E3 \# M6 g1 G# u
- <!-- 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 -->9 ]$ p0 [4 W" o% _0 F- K0 f5 O
- <display flash10="off" details="24" /> M" Y ?8 |1 y! f$ E% B4 P4 G
- <!-- when the loading is done, wait 2 seconds and then start with the animation to an normal view --> % G3 d# C# B% y
- <events onloadcomplete="delayedcall(2.0, normalview());" />
, i: E# `% S: N: I2 B: ~ - <action name="normalview">
9 D0 E9 E) I) B - tween(view.hlookat, -40, 2.5, easeInOutQuad); + Q1 n* R+ o! q* e3 }' u
- tween(view.vlookat, -35, 2.5, easeInOutQuad);
/ P6 ] f1 k7 v% _0 k. m - tween(view.fov, 85, 2.5, easeInOutQuad); $ `1 z8 r* i" h
- tween(view.fisheye, 0.0, 2.5, easeInOutQuad);
7 t1 a; G8 B' R- k7 ?" `. z6 n" V - wait(2.7); # c9 S; Z1 S) e5 \0 r. z' `
- set(display.flash10, on);
9 `: N' z: O& ^# L( u) P - </action>
复制代码
: p4 X- h% w. w9 s+ p# j" p* u) u6 w0 N6 V) D/ O0 g7 ^- m9 e
|