QQ登录

只需要一步,快速开始

 注册地址  找回密码
查看: 3427|回复: 2
打印 上一主题 下一主题

虚拟现实技术的展望

[复制链接]
字体大小: 正常 放大
zzwszj        

37

主题

2

听众

557

积分

先知

升级  85.67%

该用户从未签到

新人进步奖 发帖功臣

跳转到指定楼层
1#
发表于 2004-11-12 01:08 |只看该作者 |倒序浏览
|招呼Ta 关注Ta
<  align=center><FONT face="Times New Roman">VRML</FONT>技术在公路设计中的研究与展望<FONT face="Times New Roman"> <p></p></FONT></P>
6 c$ p8 M' N6 l( R# l4 s2 a0 N< >摘要:本文概括性地介绍了<FONT face="Times New Roman">VRML</FONT>,提出了构建公路<FONT face="Times New Roman">VRML</FONT>模型的原理、方法和优势,通过实例展示了采用<FONT face="Times New Roman">VRML</FONT>漫游公路、互通模型的效果,最后提出<FONT face="Times New Roman">VRML</FONT>技术的在公路设计中的深远意义,并且对<FONT face="Times New Roman">VRML</FONT>的应用前景作出了展望。<FONT face="Times New Roman"> <p></p></FONT></P>% ]8 \3 h: Y8 D5 O% `, n- w
< >关键词:信息工程;计算机;<FONT face="Times New Roman">VRML</FONT>;三维模型;网络<FONT face="Times New Roman"> <p></p></FONT></P>; Z& ]& a/ Q* m- H
< ><FONT face=宋体> <p></p></FONT></P>, U6 w- P% m' x8 O" J
< ><FONT face="Times New Roman">0 </FONT>前言<FONT face="Times New Roman"> <p></p></FONT></P>( x( t& n. |; ?' L# C
< ><FONT size=3><FONT face="Times New Roman"> VRML</FONT>,全英文名为<FONT face="Times New Roman">Virtual Reality Modeling Language, </FONT>虚拟实境模拟语言,一种在<FONT face="Times New Roman">Inetnet</FONT>上非常流行的语言<FONT face="Times New Roman">,</FONT>网页产生虚拟现实<FONT face="Times New Roman">(Virtual Reality)</FONT>的立体动画效果。<FONT face="Times New Roman">VRML</FONT>可以通过网络在电脑上逼真的还原现实生活中存在的或将要存在的环境及物体,支持光线、材质、语音和声效,具有很强的真实感和交互性。<FONT face="Times New Roman"> <p></p></FONT></FONT></P>
" ~; `& Z. [' }2 B7 m/ r% N0 ]0 y< ><FONT size=3><FONT face="Times New Roman"> VRML</FONT>在网络传输和三维模型上有很大的优势,可以使人们把<FONT face="Times New Roman">Web</FONT>当成一个连续的三维空间来创建并浏览,但是在公路设计领域中<FONT face="Times New Roman">VRML</FONT>的应用还非常少,使用<FONT face="Times New Roman">VRML</FONT>可以让观察者在公路、桥梁全景中任意选择视点动态游览,对于我们的更新设计理念和改进设计手段上将会发挥出巨大的作用。<FONT face="Times New Roman"> <p></p></FONT></FONT></P>
9 D: v- }4 q2 Q$ _; C: B< ><FONT face="Times New Roman">1 </FONT>问题的提出<FONT face="Times New Roman"> <p></p></FONT></P>
0 _: R# m, W5 P  A9 t& Y. b< ><FONT size=3><FONT face="Times New Roman"> </FONT>在公路设计应用中,最大的难度就是完成<FONT face="Times New Roman">VRML</FONT>建模。首先,我们比较以前建立公路三维模型的方法,主要有三种:<FONT face="Times New Roman"> <p></p></FONT></FONT></P>
9 r5 `2 R( X5 k& z& g- O< ><FONT face="Times New Roman">1.1</FONT>人工建模<FONT face="Times New Roman"> <p></p></FONT></P>+ z- Q- y( q; P+ [) s$ S# o
< ><FONT size=3><FONT face="Times New Roman"> </FONT>通过<FONT face="Times New Roman">Autodesk</FONT>公司的<FONT face="Times New Roman">3DSMax</FONT>软件完成,通过这种方法完成的三维模型都是手工在各个视图中绘制出来的,费时费力,而且不够真实准确,公路模型往往不同于建筑模型,一般里程较长、跨地域性大,对沿线的地面模型、边坡等构造物需要采用大量数据来描述,这些物体非常不规则,很难用手工精确制出。<FONT face="Times New Roman"> <p></p></FONT></FONT></P>
- C  B' z( ~/ b< ><FONT face="Times New Roman">1.2</FONT>通过专业软件完成<FONT face="Times New Roman"> <p></p></FONT></P># {1 W) }% Q! q; F+ d# e
< ><FONT size=3><FONT face="Times New Roman"> </FONT>目前国内推出的各种公路路线、桥梁设计软件一般都带有三维建模功能,这些软件能将设计出的成果直接转换为三维模型,能直观地反映出设计成果,是以往人工建模很难做到的。由于这些公路设计软件一般是基于<FONT face="Times New Roman">Autocad</FONT>完成绘图,因此,其三维模型往往也在<FONT face="Times New Roman">Autocad</FONT>中绘制出,然后再到<FONT face="Times New Roman">3DSMax</FONT>中调出、修改,直到完成三维作品。这种方式相对于手工绘制应当是十分先进的,但还存在下面两个问题:<FONT face="Times New Roman"> a)</FONT>需要通过<FONT face="Times New Roman">Autocad</FONT>辅助完成。<FONT face="Times New Roman"> b)</FONT>在<FONT face="Times New Roman">3DSMax</FONT>中要做较大修改工作,对使用者要求较大。<FONT face="Times New Roman"> </FONT></FONT><FONT face="Times New Roman">1.3</FONT>利用<FONT face="Times New Roman">OpenGL</FONT>技术<FONT face="Times New Roman"> <FONT size=3>OpenGL</FONT></FONT><FONT size=3>是开放式的三维图形标准,能通过编程在计算机屏幕上直接绘制三维图形。采用这种技术开发难度较大,开发者必须对<FONT face="Times New Roman">OpenGL</FONT>有比较深入的了解,因为所涉及到的建模不只是几何模型,还有对物体的环境、光源、材质、动画等方面进行描述,涉及面非常广泛,在这方面德国的<FONT face="Times New Roman">CARD/1</FONT>软件做得还是比较成功的。但是,通过这种方式建立的场景无法获取其三维模型,也就不能在<FONT face="Times New Roman">3DSmax</FONT>中再次运用了。<FONT face="Times New Roman"> </FONT>现在,我们提出一种全新的三维建模方式:<FONT face="Times New Roman">VRML</FONT>建模。采用<FONT face="Times New Roman">VRML</FONT>建立公路模型,在技术难度上较之<FONT face="Times New Roman">OpenGL</FONT>要为方便,和基于<FONT face="Times New Roman">Autocad</FONT>的建模相比,在建模方式、模型效果等方面有很大的优越性。<FONT face="Times New Roman">VRML</FONT>语言已经发展到<FONT face="Times New Roman">2.0</FONT>版本,其建模方式已经十分完善,<FONT face="Times New Roman">VRML</FONT>能够把三维、文本、多媒体集成为统一的整体,这些媒体类型能够和因特网的功能紧密结合,将产生一种全新的交互应用。<FONT face="Times New Roman"> </FONT></FONT><FONT face="Times New Roman">2 VRML</FONT>的建模方法<FONT face="Times New Roman"> <FONT size=3>VRML</FONT></FONT><FONT size=3>的建模方式有很多种,通过<FONT face="Times New Roman">3DSMax</FONT>可以完成其模型,但形式过于手工化,不值得推荐。另外就是通过外部工具软件完成<FONT face="Times New Roman">VRML</FONT>的建立和修改,<FONT face="Times New Roman">VrmlPad</FONT>是一个强有力而且灵活的<FONT face="Times New Roman">VRML</FONT>创作工具,它能够让作者设计和开发专<FONT face="Times New Roman"> <p></p></FONT></FONT></P>
- n$ N2 M( d0 E  s5 n; B9 v- w< ><FONT face=宋体> <p></p></FONT></P>  b" g* K7 _9 Z: v, n1 J  f% n$ q
< ><FONT size=3><FONT face="Times New Roman"> </FONT>业的<FONT face="Times New Roman">VRML</FONT>工具,并可以建立一个<FONT face="Times New Roman">VRML</FONT>世界并把它发布到网上,提供的插件功能也能够方便的完成<FONT face="Times New Roman">VRML</FONT>模型创建。右图是利用<FONT face="Times New Roman">VRMLpad</FONT>观看的公路模型。<FONT face="Times New Roman"> <p></p></FONT></FONT></P>& K" t$ Q0 Z' z; ~( L4 Q
< ><FONT size=3><FONT face="Times New Roman"> </FONT>由于公路模型的复杂特殊性,我们专门编写了软件完成<FONT face="Times New Roman">VRML</FONT>模型的建立。首先,我们必须研究<FONT face="Times New Roman">VRML</FONT>语言的特性,下面以一个公路三维模型的<FONT face="Times New Roman">VRML</FONT>描述为例:<FONT face="Times New Roman"> <p></p></FONT></FONT></P>* U0 W& X! s& C' b5 H1 w8 ]
< ><FONT face=宋体>2.1 对环境变量的定义: <p></p></FONT></P>
- W; U% a8 `& k( |: Z< ><FONT size=3><FONT face="Times New Roman"> VRML</FONT>对环境变量的定义不是背景图形的简单套用,<FONT face="Times New Roman">VRML</FONT>语言能从六个方向定义背景:顶部、底部、前方、后侧、左侧、右侧,<FONT face="Times New Roman">6</FONT>张图片采用实地景物拍摄资料,这样就能真正实现实景的虚拟漫游。<FONT face="Times New Roman">VRML</FONT>使用<FONT face="Times New Roman">DEF</FONT>来定义其物体变量,对于环境背景物体,<FONT face="Times New Roman">Background</FONT>是物体属性,<FONT face="Times New Roman">Background01</FONT>是物体名称,其定义格式如下:<FONT face="Times New Roman"> <p></p></FONT></FONT></P>/ d9 g# k9 P4 k' g- v( E3 }! {
< ><FONT size=3><FONT face="Times New Roman"> DEF Background01 Background { <p></p></FONT></FONT></P>: D6 m2 z: g# U% j7 |# i
< ><FONT size=3><FONT face="Times New Roman"> frontUrl "../maps/bjtx8.jpg" <p></p></FONT></FONT></P>
- H4 q7 Y* |- F! D! l  ~< ><FONT size=3><FONT face="Times New Roman"> backUrl "../maps/bjtx1.jpg" <p></p></FONT></FONT></P>( ^) o0 S) m( I! _
< ><FONT size=3><FONT face="Times New Roman"> leftUrl "../maps/bjtx2.jpg" <p></p></FONT></FONT></P>6 A+ |, |6 G% D) y- o
< ><FONT size=3><FONT face="Times New Roman"> rightUrl "../maps/bjtx3.jpg" <p></p></FONT></FONT></P>1 U1 B' t( q5 r9 \2 q' t$ B) n
< ><FONT size=3><FONT face="Times New Roman"> bottomUrl "../maps/bjtx5.jpg" <p></p></FONT></FONT></P>3 C% ?* h- B5 c
< ><FONT size=3><FONT face="Times New Roman"> topUrl "../maps/bjtx6.jpg"} <p></p></FONT></FONT></P>
1 s$ N' ?, D7 n. S4 H% h  W/ ^% |' L< ><FONT face=宋体>2.2 光线的定义 <p></p></FONT></P>
3 p$ s( o8 K# Y, x. _< ><FONT size=3><FONT face="Times New Roman"> </FONT>光线的定义类似于<FONT face="Times New Roman">3DSMax</FONT>中的灯光参数设定,包括了光源类型、光照强度、色彩、光源位置、作用范围。在<FONT face="Times New Roman">VRML</FONT>中表述如下:<FONT face="Times New Roman"> <p></p></FONT></FONT></P>7 O) C: ^+ \8 K
< ><FONT size=3><FONT face="Times New Roman"> DEF Light_0 PointLight { <p></p></FONT></FONT></P>
. O$ i3 {2 ]0 k7 P< ><FONT size=3><FONT face="Times New Roman"> intensity 2 <p></p></FONT></FONT></P>0 j& o- U( E7 o) {4 c6 K
< ><FONT size=3><FONT face="Times New Roman"> color 0.7059 0.7059 0.7059 <p></p></FONT></FONT></P>
. A: L, J4 ^" b9 P( f. S: p- C# Q<P ><FONT size=3><FONT face="Times New Roman"> location 519.4 2012 736.5 <p></p></FONT></FONT></P>: i6 |! z0 v& O- A
<P ><FONT size=3><FONT face="Times New Roman"> on TRUE <p></p></FONT></FONT></P>- o& I7 E  A) F9 V
<P ><FONT size=3><FONT face="Times New Roman"> radius 12891} <p></p></FONT></FONT></P>
. [  |; {6 u" {6 ^4 j3 ]<P ><FONT face=宋体>2.3 摄影机的定义 <p></p></FONT></P>; Z: g  B/ p, L1 H3 l
<P ><FONT size=3><FONT face="Times New Roman"> </FONT>摄影机是我们实现实地漫游的重要工具,通过摄影机的运动,可以完成在公路路线上的模拟行车,也可以通过鼠标按自己设定路线随心所欲地漫游公路全景。摄影机的设置是非常简单的,<FONT face="Times New Roman">Viewpoint</FONT>的定义如下:<FONT face="Times New Roman"> <p></p></FONT></FONT></P>
: ]) Q/ h3 J; v8 K+ t4 q+ K, }) x! H<P ><FONT face="Times New Roman"><FONT size=3> DEF _dCm Viewpoint { <p></p></FONT></FONT></P>
; i; z+ c$ U; {* ^- T" ^7 n<P ><FONT face="Times New Roman"><FONT size=3> position -416.9 107.2 -47.51 <p></p></FONT></FONT></P>  ]0 E0 N& G; v) ?2 d$ G
<P ><FONT face="Times New Roman"><FONT size=3> orientation 0.0006254 -1 -0.0006501 -1.609 <p></p></FONT></FONT></P>4 @# D9 l2 ?; K8 B# P9 j* x
<P ><FONT face="Times New Roman"><FONT size=3> fieldOfView 0.6446 <p></p></FONT></FONT></P>
1 R$ W4 R; a' j/ a<P ><FONT face="Times New Roman"><FONT size=3> description "_dCm"} <p></p></FONT></FONT></P>
' x; g/ }$ w) t* n& R4 U<P ><FONT size=3><FONT face="Times New Roman"> </FONT>摄影机的运动描述比较复杂,我们需要计算出摄影机运动的轨迹,运动的帧间隔时间。<FONT face="Times New Roman"> <p></p></FONT></FONT></P>
0 U; _# T" |. Y, [5 M<P ><FONT size=3><FONT face="Times New Roman"> </FONT>描述摄影机的运动包括坐标运动轨迹插值<FONT face="Times New Roman">(PositionInterpolator)</FONT>和方位运动轨迹插值<FONT face="Times New Roman">(OrientationInterpolator)</FONT>,在公路路线中其数值需要根据路线逐桩坐标计算出,一个运动的摄影机轨迹用<FONT face="Times New Roman">VRML</FONT>语言描写如下:<FONT face="Times New Roman"> <p></p></FONT></FONT></P>8 w9 u+ ^+ l" Z7 F& U: o
<P ><FONT size=3><FONT face="Times New Roman"> DEF _dCm-TIMER TimeSensor { loop TRUE cycleInterval 26.67 }, <p></p></FONT></FONT></P>
9 q5 ]& P5 f% s/ \5 j<P ><FONT size=3><FONT face="Times New Roman"> DEF _dCm-POS-INTERP PositionInterpolator { <p></p></FONT></FONT></P>6 A* m/ C- b  w; Q& W
<P ><FONT size=3><FONT face="Times New Roman"> Key [0, 0.00375, 0.0075, 0.01125, 0.015, 0.01875, 0.0225, 0.02625, <p></p></FONT></FONT></P>8 a' O& l4 O+ ]( b2 [8 m
<P ><FONT size=3><FONT face="Times New Roman"> 0.03, 0.03375, 0.0375, 0.04125, 0.045, 0.04875, 0.0525, 0.05625, <p></p></FONT></FONT></P>, F9 U+ A6 ?! i3 H0 v! ~
<P ><FONT size=3><FONT face="Times New Roman"> ...... ] <p></p></FONT></FONT></P>
6 c* E  x4 y6 x<P ><FONT size=3><FONT face="Times New Roman"> KeyValue [-416.9 107.2 -47.51, -420.6 107.2 -47.37, -424.4 107.2 -47.22, <p></p></FONT></FONT></P>- o, W* J' e+ r9 j( C
<P ><FONT size=3><FONT face="Times New Roman"> -428.1 107.2 -47.07, -431.9 107.2 -46.9, -435.6 107.2 -46.73, <p></p></FONT></FONT></P>
3 r" ]9 ^! b$ [; L<P ><FONT size=3><FONT face="Times New Roman"> ......] }, <p></p></FONT></FONT></P>
5 [) i, Q3 }+ K! b+ y) X2 v<P ><FONT size=3><FONT face="Times New Roman"> DEF_dCm-ROT-INTERP OrientationInterpolator {Key [0, 0.00375, 0.0075, 0.01125, 0.015, 0.01875, 0.0225, <p></p></FONT></FONT></P>
. c9 [* k0 K; z. u5 j<P ><FONT size=3><FONT face="Times New Roman"> 0.02625, <p></p></FONT></FONT></P>
) i! {9 }* O; t0 U<P ><FONT size=3><FONT face="Times New Roman"> ......0.9825, 0.9863, 0.99, 0.9938, 0.9975, 1, ] <p></p></FONT></FONT></P>
! s! j. N7 W( Q" ~, f<P ><FONT size=3><FONT face="Times New Roman"> <p></p></FONT></FONT></P>
" n# Q1 c9 b( ^$ i% g1 s5 X<P ><FONT size=3><FONT face="Times New Roman"> <p></p></FONT></FONT></P>
, S" F- ^/ I9 V+ F: X<P ><FONT size=3><FONT face="Times New Roman"> <p></p></FONT></FONT></P>  `7 d; Y" |6 Z) g5 Y; N
<P >图<FONT face="Times New Roman">1 </FONT>使用<FONT face="Times New Roman">VRMLPAD</FONT>观看的公路<FONT face="Times New Roman">VRML</FONT>模型<FONT face="Times New Roman"> <p></p></FONT></P>
# S. E0 e. y3 e$ o& B) z<P ><FONT face=宋体> <p></p></FONT></P>
0 {: D% h" K9 R  x<P ><FONT size=3><FONT face="Times New Roman"> KeyValue [0.0006254 -1 -0.0006501 -1.609, 0.0005364 -1 -0.0005589 -1.612, <p></p></FONT></FONT></P>  g" R( W7 P. Z# S6 x4 _' C
<P ><FONT size=3><FONT face="Times New Roman"> 0.0004487 -1 -0.0004688 -1.615, 0.0003593 -1 -0.0003764 -1.617, ......] }, <p></p></FONT></FONT></P>
) y! M# c* j, i6 q2 O! l& R  i<P ><FONT face=宋体>2.4三维模型的描述 <p></p></FONT></P>6 s1 m( S- Y, m5 q8 N
<P ><FONT size=3><FONT face="Times New Roman"> </FONT>三维模型是建立<FONT face="Times New Roman">VRML</FONT>模型的最关键之处。公路上的三维物体包括路面、栏杆、标线、绿化带、地面模型、树木、边沟、护坡、标志牌等,将这些物体进行有机组合,加上环境、灯光、动画,便是一个真实的<FONT face="Times New Roman">VRML</FONT>场景。对于三维物体的建模在有关<FONT face="Times New Roman">3DSMax</FONT>和<FONT face="Times New Roman">Autocad</FONT>的文章中都有非常详细的介绍,我们现在所研究的重点,就是通过<FONT face="Times New Roman">VRML</FONT>语言建立物体的三维模型。在<FONT face="Times New Roman">VRML</FONT>语言中,通过<FONT face="Times New Roman">translation</FONT>定义出物体的中心位置坐标,其它各点的坐标通过与该坐标求和而算得;光线参数包括了以下几种:扩散光(<FONT face="Times New Roman">diffuseColor</FONT>)、环境光(<FONT face="Times New Roman">ambientIntensity</FONT>)、镜面反射(<FONT face="Times New Roman"> specularColor</FONT>)、自然光(<FONT face="Times New Roman">shininess </FONT>)、透明光(<FONT face="Times New Roman">transparency</FONT>)放射光(<FONT face="Times New Roman"> emissiveColor</FONT>);以<FONT face="Times New Roman">Texture</FONT>和<FONT face="Times New Roman">TextureTransform </FONT>定义物体的材质属性。然后将物体分割为若干个三角面,计算出各个顶点的坐标值和每个面的顶点构成序列(<FONT face="Times New Roman">coord Index</FONT>)。对于需要赋予材质的物体,还需要计算出物体的贴图文件路径、材质坐标(<FONT face="Times New Roman">TextureCoordinate</FONT>)和材质序列(<FONT face="Times New Roman">TextureCoordinate Index</FONT>),其计算相对物体三维坐标计算要复杂一点,限于篇幅,不作详细介绍。下面是使用<FONT face="Times New Roman">VRMLPad</FONT>打开的<FONT face="Times New Roman">VRML</FONT>模型描述的是一个挖方边坡的例子<FONT face="Times New Roman">(</FONT>图<FONT face="Times New Roman">1)</FONT>,从中可以看到使用<FONT face="Times New Roman">VRML</FONT>描述公路模型是行之有效的,无论在材质坐标、数据精度、表现手法等方面都是优于一般建模工具的。<p></p></FONT></P>
# g+ t; j3 S0 w4 B8 `. @+ w<P ><FONT size=3><FONT face="Times New Roman"> </FONT>从上面可以看出,<FONT face="Times New Roman">VRML</FONT>语言描述三维场景结构清晰、效率高,利于计算机程序化生成。<FONT face="Times New Roman"> <p></p></FONT></FONT></P># A. [/ h7 x( e1 G
<P ><FONT face="Times New Roman">3 VRML</FONT>的运用<FONT face="Times New Roman"> <p></p></FONT></P>
, s; F# f$ D+ n& r: m<P ><FONT face=宋体>3.1 在Internet上的运用 <p></p></FONT></P>8 u  R4 I* ~- V7 ~1 b: E) U7 D
<P ><FONT size=3><FONT face="Times New Roman"> </FONT>早在<FONT face="Times New Roman">1997</FONT>年为火星探路者登上火星时,美国人已经采用<FONT face="Times New Roman">VRML</FONT>技术将实景展现在全世界<FONT face="Times New Roman">Internet</FONT>用户的眼前,人们在<FONT face="Times New Roman">HTM</FONT>页面上所看到的就不仅是单纯的文本和图片了,而是具有交互性质的三维空间,并且不需要大量的网络带宽来传送。在娱乐领域中,<FONT face="Times New Roman">VRML</FONT>更能大显身手,三维立体化、网络化是今后游戏发展的方向,而<FONT face="Times New Roman">VRML</FONT>就是一个功能非常强大的在<FONT face="Times New Roman">Internet</FONT>上交换场景的语言,能提供更好的多人之间的交互和更加逼真的虚拟环境。<FONT face="Times New Roman"> </FONT></FONT><FONT face="Times New Roman">3.2 </FONT>运用于公路实景漫游<FONT face="Times New Roman"> </FONT><FONT size=3>在公路设计领域上,<FONT face="Times New Roman">VRML</FONT>能带动设计的三维化、网络化。我们认为今后<FONT face="Times New Roman">VRML</FONT>能在公路模型三维化、实地检测路线设计指标等方面发挥重要作用。比如我们能将设计项目采用<FONT face="Times New Roman">VRML</FONT>模型放置于<FONT face="Times New Roman">Internet</FONT>中,不需要进行复杂的三维建模、不需要大量的影响数据,设计者可就以在任意时间和设计的任意阶段“开车”进入自己的公路模型中,从任意的角度观察和检测自己设计,身临其境地感受空间、尺度、环境光线甚至是声音的变化,从而使设计创作更臻完美。<FONT face="Times New Roman"> </FONT></FONT>图<FONT face="Times New Roman">3</FONT>“公路<FONT face="Times New Roman">VRML</FONT>漫游系统”创建的大型<FONT face="Times New Roman"> </FONT>互通<FONT face="Times New Roman">VRML</FONT>模型<FONT face="Times New Roman"> </FONT>图<FONT face="Times New Roman">2 </FONT>“公路<FONT face="Times New Roman">VRML</FONT>漫游系统”创建的公路<FONT face="Times New Roman">VRML <p></p></FONT></P>6 Y8 E' K0 Y' }- W
<P ><FONT face=宋体> <p></p></FONT></P>
# U* c! l) ?9 J! B1 g<P ><FONT size=3><FONT face="Times New Roman"> </FONT>笔者积累了大量公路三维建模上的经验,<FONT face="Times New Roman"> <p></p></FONT></FONT></P>
: [7 C/ \0 a. \7 R+ C8 N2 P: r<P ><FONT size=3><FONT face="Times New Roman"> </FONT>开发出了一套“公路<FONT face="Times New Roman">VRML</FONT>漫游系统”,该系统采用<FONT face="Times New Roman">VRML 2.0</FONT>语言编写脚本,并能够支持在<FONT face="Times New Roman">Internet Explorer </FONT>或<FONT face="Times New Roman">Netscape</FONT>浏览器中完成在公路实景的虚拟漫游。由于<FONT face="Times New Roman">VRML</FONT>是一种国际化的标准,支持在<FONT face="Times New Roman">IE</FONT>中播放<FONT face="Times New Roman">VRML</FONT>模型的工具非常多,我们在这里推荐<FONT face="Times New Roman">PLATINUM </FONT>公司开发的<FONT face="Times New Roman">Cosmo Player</FONT>和<FONT face="Times New Roman">Microsoft vrml 2.0 viewer</FONT>。通过本系统用户能迅速从公路路线、桥梁、隧道等数据中生成<FONT face="Times New Roman">VRML</FONT>模型,并能够交互性地在场景中漫游,如沿线开车、逆行、近看、远看等等。在浏览器界面中我们可以看到<FONT face="Times New Roman">Walk</FONT>、<FONT face="Times New Roman">Pan</FONT>、<FONT face="Times New Roman">Turn</FONT>、<FONT face="Times New Roman">Roll</FONT>等按钮分别完成在场景中的步行、平移、拐弯、旋转等动作,在场景中我们想漫游某个地方,只需要拖动鼠标到指定位置,十分灵活,操作者可以走近去观看栏杆、边沟、桥墩等构造物的设置情况。系统让操作者仿佛置身于一个真实的场景,如同在操作游戏,并且场景是真实的,因为这个游戏中的模型数据都是根据勘测数据精确计算出来的。<p></p></FONT></P>9 W% D" M7 r& v8 `* o! Q8 B4 \1 x
<P ><FONT size=3><FONT face="Times New Roman"> </FONT>图<FONT face="Times New Roman">2</FONT>是采用“公路<FONT face="Times New Roman">VRML</FONT>漫游系统”创建的公路<FONT face="Times New Roman">VRML</FONT>模型,只要单击鼠标向前拖动,我们就能够沿着路线漫游场景,向后拖动鼠标,场景后退,选取“<FONT face="Times New Roman">ROLL</FONT>”再拖动鼠标就能够到对面车道检查逆向路线行驶的线形。使用该系统生成的模型,不做任何修改,就可以直接在<FONT face="Times New Roman">Inetnet</FONT>上浏览和发布,其画面细腻、交互性强,是一般公路建模软件无法做到的。<FONT face="Times New Roman"> <p></p></FONT></FONT></P>& b3 V0 f9 l% M) g; |1 a4 n
<P ><FONT size=3><FONT face="Times New Roman"> </FONT>图<FONT face="Times New Roman">3</FONT>是采用“公路<FONT face="Times New Roman">VRML</FONT>漫游系统”创建的大型互通立交<FONT face="Times New Roman">VRML</FONT>模型,在场景中操作者能够通过“<FONT face="Times New Roman">Walk</FONT>”功能任意穿越场景,动态观察每个匝道的设计情况,在不同角度观看互通立交建成后的实景。<FONT face="Times New Roman"> <p></p></FONT></FONT></P>
: `* y/ E/ o' h% a' u<P >3.3 运用于3DSMax制作渲染动画 <p></p></P>4 u. B' \% V$ P
<P ><FONT size=3><FONT face="Times New Roman"> </FONT>在建立<FONT face="Times New Roman">VRML</FONT>脚本过程中采用<FONT face="Times New Roman">VRML2.0</FONT>格式编写,这样就能直接在<FONT face="Times New Roman">3DSMax</FONT>中调用<FONT face="Times New Roman">VRML</FONT>场景,有利于我们制作精度较高的渲染图,而且调入的模型光线、动画、材质帖图等都已经制作好,极大避免了重复建模的工作,这些都是在<FONT face="Times New Roman">Autocad</FONT>三维建模中无法做到的。图<FONT face="Times New Roman">4</FONT>是<FONT face="Times New Roman">3DSMax</FONT>调用上个互通立交的<FONT face="Times New Roman">VRML</FONT>脚本,我们可以看到<FONT face="Times New Roman">VRML</FONT>模型具备很高的重复利用价值。<FONT face="Times New Roman"> <p></p></FONT></FONT></P>
5 E/ O6 C. ^6 c( g; `<P >4 结语 <p></p></P>- }5 _& N1 r  ^
<P ><FONT size=3><FONT face="Times New Roman"> </FONT>对于公路行业,<FONT face="Times New Roman">VRML</FONT>还是一个全新的领域,期待我们去开发,去应用。尽管目前<FONT face="Times New Roman">VRML</FONT>技术在公路设计中运用较少,但是随着计算机网络技术持续飞速发展,<FONT face="Times New Roman">VRML</FONT>在公路设计中的运用也必将逐渐普及。到时,公路和桥梁设计将突破“平面、立面、剖面<FONT face="Times New Roman">”</FONT>的传统模式,<FONT face="Times New Roman">VRML</FONT>将把公路、桥梁设计带到一个更加直观、更加真实、交互性更强的虚拟世界中,加上因特网在带宽、速度以及传输技术上的更新与发展,<FONT face="Times New Roman">VRML</FONT>的应用前景将是非常广阔的。<FONT face="Times New Roman"> </FONT></FONT>参考文献: <FONT face="Times New Roman">[1]</FONT>《计算机图形学》<FONT face="Times New Roman">Donald Hearn ,M.Pauline Baker </FONT>著<FONT face="Times New Roman"> </FONT></P>4 A  B: @4 T, i. y$ b
<P ><FONT face="Times New Roman">[2] </FONT>“三维动画在模拟公路行车中的实现与应用”<FONT face="Times New Roman"> </FONT>《公路》<FONT face="Times New Roman">2000.6 </FONT>张伯根陈国陈园<FONT face="Times New Roman"> </FONT></P>
% T6 L8 X+ c; u0 J" n2 _<P ><FONT face="Times New Roman">[3] <a href="http://www.evision.com.cn/cn/vr" target="_blank" >http://www.evision.com.cn/cn/vr</A></FONT></P>; b2 ~  z3 S( x3 j) ^
<P ><FONT face="Times New Roman"> [4] <a href="http://www.fenglei.net/vr/index.htm" target="_blank" >http://www.fenglei.net/vr/index.htm</A> </FONT></P>% c; K2 ^6 n! W: U
<P >图<FONT face="Times New Roman">4 3DSMAX</FONT>中调入的<FONT face="Times New Roman">VRML</FONT>模<p></p></P>
, L  Y0 o2 A+ [0 q. S! E<P ><FONT face=宋体> <p></p></FONT></P>
* j3 Z  Z2 d0 A' Q) l3 {<P ><FONT size=3><FONT face="Times New Roman"> <p></p></FONT></FONT></P>
zan
转播转播0 分享淘帖0 分享分享0 收藏收藏0 支持支持0 反对反对0 微信微信

这是一个关于数学、物理、英语的网站。有很多免费资源!

http://zuozw.blogcn.com

zzwszj        

37

主题

2

听众

557

积分

先知

升级  85.67%

该用户从未签到

新人进步奖 发帖功臣

回复

使用道具 举报

libin77        

0

主题

0

听众

48

积分

升级  45.26%

该用户从未签到

新人进步奖

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册地址

qq
收缩
  • 电话咨询

  • 04714969085
fastpost

关于我们| 联系我们| 诚征英才| 对外合作| 产品服务| QQ

手机版|Archiver| |繁體中文 手机客户端  

蒙公网安备 15010502000194号

Powered by Discuz! X2.5   © 2001-2013 数学建模网-数学中国 ( 蒙ICP备14002410号-3 蒙BBS备-0002号 )     论坛法律顾问:王兆丰

GMT+8, 2026-4-20 08:23 , Processed in 0.469768 second(s), 69 queries .

回顶部