四方环视社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 4698|回复: 2
收起左侧

请教老师 krpano 小行星效果

[复制链接]
延边好房子 发表于 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>2 b: r( i1 D7 ~0 T6 B$ H
  1. <!-- startup view settings for 'little planet view' (stereographic=true + fisheye=1.0 + fov>120 + vlookat>70) -->
    # X4 @2 S3 T2 e% W! `) I$ {
  2. <view stereographic="true"
    / U: Y( N- b. x! l' E: J
  3. fisheye="1.0"
    ) ~+ H# l+ [4 L) V( s
  4. fov="155" , v1 m1 L$ g* d& j. ?+ f+ x% e
  5. fovtype="VFOV" 8 w; \# J" X9 `; t) b  |
  6. fovmax="150"
    3 `; t. o; D  V3 o
  7. hlookat="-60"  , }0 R' G2 T+ K. f
  8. vlookat="77"  />    2 g$ s9 T6 a- G  a
  9. 插入到tour.xml中   
    5 o: G, Y4 @- I: T6 n' y! b
  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 -->8 Y; ~5 h  v  h/ C; G0 J& R
  11. <display flash10="off" details="24" />  
    % J4 Z7 P5 p7 o* t$ N: _
  12. <!-- when the loading is done, wait 2 seconds and then start with the animation to an normal view -->
    " S5 [* h2 }* }! D
  13. <events onloadcomplete="delayedcall(2.0, normalview());" />    8 U2 k' B: h8 P: V2 h
  14. <action name="normalview"> 6 l* A4 T1 d- O* H$ Y9 |2 i/ ?, c
  15. tween(view.hlookat, -40, 2.5, easeInOutQuad); & ]4 U( r2 W0 B! X( x
  16. tween(view.vlookat, -35, 2.5, easeInOutQuad);  
    7 T: K9 W; K% c. o- l8 y8 v
  17. tween(view.fov, 85, 2.5, easeInOutQuad);  
    - E+ |" a9 N% d4 k2 M
  18. tween(view.fisheye, 0.0, 2.5, easeInOutQuad);
    # @5 c  {. p/ v/ S6 f
  19. wait(2.7);  
    3 x& X7 X' E( x6 V1 X, l+ e  M$ k  V
  20. set(display.flash10, on);     c1 y/ Q7 P6 {" ^. s
  21. </action>
复制代码

' J6 E! k4 `  d* W6 D( s8 l1 s7 L" h. D

点评

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

7 u  m# ]: C: ]1 ?# g
( u% d9 z. A& C. |0 Z. v$ ?我觉得您可能没有注意到编辑器有个插入代码的工具呢?
0 @1 W( j4 X! B试一试,很好用!
, D! O- I. o4 {! D+ B  n 16210609032034.jpg ' y. B3 C( \% x$ Y  m
6 H, _( k' `2 C- y) X% {
  1. var test;
    : O" N0 ^2 d2 X  \7 B8 Q! n6 q
  2. //this is a code?
复制代码

: i/ o; L/ L8 s5 |% e4 s: m# H" G* J" }( C2 ?
1 b" F  G0 T& L" L
3 K* S# T  {) I( @. J3 ]
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|网站帮助|关于我们|联系我们|四方环视社区 ( 京ICP备16029184号-5

GMT+8, 2020-2-18 09:23 AM , Processed in 0.090833 second(s), 24 queries , Gzip On.

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表