请教老师 krpano 小行星效果

[复制链接]
查看13162 | 回复2 | 2014-5-12 17:01:36 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
请教老师 krpano 小行星效果出现后 自动回到 初始正常播放位置 怎么弄
原来是小茄 | 2016-3-19 18:16:01 | 显示全部楼层
[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>; Z' H4 `0 O8 \2 z/ o
  1. <!-- startup view settings for 'little planet view' (stereographic=true + fisheye=1.0 + fov>120 + vlookat>70) -->4 c: X7 v# J" i( f
  2. <view stereographic="true"
    . j: D+ c& T$ U9 R# D# n
  3. fisheye="1.0"
    ; U7 [! I7 e, K8 Z7 `
  4. fov="155" 3 R' s- R3 v* R# e& {
  5. fovtype="VFOV"
    * W. _; H0 h- ?$ B5 S5 ^, X! B
  6. fovmax="150" , W; ?' ?' U. g5 c& Z8 w
  7. hlookat="-60"  
    # d: N! O, A0 L
  8. vlookat="77"  />    . d. x. W9 z- t* z, [7 C2 t
  9. 插入到tour.xml中   
    ( s( Z! H/ e" \
  10. <!-- 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 -->% n: [0 \* L- J4 G- [9 W% V
  11. <display flash10="off" details="24" />  3 C! ?) N1 `8 ~" F
  12. <!-- when the loading is done, wait 2 seconds and then start with the animation to an normal view --> 2 I: U3 `4 S$ G4 U
  13. <events onloadcomplete="delayedcall(2.0, normalview());" />   
    0 l* W" T1 j4 J6 S# A" p  S
  14. <action name="normalview">
    . f2 D8 ?3 w  M- R
  15. tween(view.hlookat, -40, 2.5, easeInOutQuad);
    . k8 _& U" d5 e& M* Y0 g+ S- k
  16. tween(view.vlookat, -35, 2.5, easeInOutQuad);  ' E4 v1 ~0 Q$ c' J& g: M
  17. tween(view.fov, 85, 2.5, easeInOutQuad);  ; O7 d* O" P3 q4 y1 @3 S* S, X1 A
  18. tween(view.fisheye, 0.0, 2.5, easeInOutQuad);
    / i- i$ f  t+ j1 a# d( }0 B
  19. wait(2.7);  
    + S4 c' w, p" X5 A! Y- Q5 W$ b0 A. H
  20. set(display.flash10, on);   
    , z& c6 r: L6 s3 q3 }) N
  21. </action>
复制代码
( E' P2 f+ V: a5 g" Q

/ t" F1 l% {6 q

点评

我觉得您可能没有注意到编辑器有个插入代码的工具呢? 试一试,很好用!  详情 回复 发表于 2016-3-20 12:33 AM
明海+ | 2016-3-20 00:33:31 | 显示全部楼层
原来是小茄 发表于 2016-3-19 18:16
* [& M- A: u: O$ z. K$ C[html] view plaincopyprint? 插入到scene标签中         插入到tour.xml中                  tween(view.h ...

$ W' s# Z$ \# p/ G- Y" L- T
+ k* R. l/ @5 e/ A* r) g我觉得您可能没有注意到编辑器有个插入代码的工具呢?4 o5 z2 @4 _! P6 `
试一试,很好用!
0 c) Z* }0 o4 O: Y 16210609032034.jpg
  u6 h' ?8 e  u- I7 X9 n6 a5 s6 N. C7 _* E; c$ R6 }1 Y
  1. var test;- R# [# T% y4 ^$ t: b6 q
  2. //this is a code?
复制代码

% k, }( F& c$ n, ]0 [* u, W  m( U/ ~& O8 o  f
5 R- t# Z1 y. P' P
" m) X( o% H: ]/ H( O% n% k! W( B; B
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则