- 在线时间
- 0 小时
- 最后登录
- 2006-11-23
- 注册时间
- 2004-9-19
- 听众数
- 2
- 收听数
- 0
- 能力
- 0 分
- 体力
- 1185 点
- 威望
- 0 点
- 阅读权限
- 40
- 积分
- 557
- 相册
- 0
- 日志
- 0
- 记录
- 0
- 帖子
- 300
- 主题
- 37
- 精华
- 5
- 分享
- 0
- 好友
- 0

先知
升级   85.67% 该用户从未签到
 |
< align=center><FONT face="Times New Roman">VRML</FONT>技术在公路设计中的研究与展望<FONT face="Times New Roman"> <p></p></FONT></P>
5 @1 v8 d" w$ z$ e% d) I8 M: c< >摘要:本文概括性地介绍了<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>
0 W# x l9 T1 d) b4 b: G- z- J< >关键词:信息工程;计算机;<FONT face="Times New Roman">VRML</FONT>;三维模型;网络<FONT face="Times New Roman"> <p></p></FONT></P>% s; d9 ^: w& n
< ><FONT face=宋体> <p></p></FONT></P>
. A1 N- U& n1 R! \2 B0 b< ><FONT face="Times New Roman">0 </FONT>前言<FONT face="Times New Roman"> <p></p></FONT></P>' i0 v' e9 {% z+ P7 M( ]
< ><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>
9 H- c4 Q* S4 p; w. x8 R$ e0 F2 s< ><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>" ]5 Q% r i% d$ V) x. Y9 k2 R) L* ~
< ><FONT face="Times New Roman">1 </FONT>问题的提出<FONT face="Times New Roman"> <p></p></FONT></P>& b2 t5 A* u+ H# q
< ><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>
, g, n. Z, z5 ?, c0 o< ><FONT face="Times New Roman">1.1</FONT>人工建模<FONT face="Times New Roman"> <p></p></FONT></P>
+ F" L: R, B) M, q0 X* `< ><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>
2 k* f: A, ~& L n+ o; O7 [1 e+ Q< ><FONT face="Times New Roman">1.2</FONT>通过专业软件完成<FONT face="Times New Roman"> <p></p></FONT></P>! }8 B* b1 t; [+ f2 l+ ?( ]( G8 C4 s Y
< ><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>& C, c, e- C7 R0 Y$ V
< ><FONT face=宋体> <p></p></FONT></P>+ [: R* a- U9 n0 G( M9 h6 J8 }
< ><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>
) {" _) G9 L; J/ r< ><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>7 J1 ?1 p1 \7 B$ U) e$ r' x
< ><FONT face=宋体>2.1 对环境变量的定义: <p></p></FONT></P>, R6 [9 w$ O7 k# u) M
< ><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>: A6 }" i9 C5 M
< ><FONT size=3><FONT face="Times New Roman"> DEF Background01 Background { <p></p></FONT></FONT></P>' a4 [: }# J" C
< ><FONT size=3><FONT face="Times New Roman"> frontUrl "../maps/bjtx8.jpg" <p></p></FONT></FONT></P>8 b4 {0 ^4 N; d& J
< ><FONT size=3><FONT face="Times New Roman"> backUrl "../maps/bjtx1.jpg" <p></p></FONT></FONT></P>+ J5 b; I# c% b; N6 z
< ><FONT size=3><FONT face="Times New Roman"> leftUrl "../maps/bjtx2.jpg" <p></p></FONT></FONT></P>
: \0 [) Z$ n# z( R. w< ><FONT size=3><FONT face="Times New Roman"> rightUrl "../maps/bjtx3.jpg" <p></p></FONT></FONT></P>
, L" R+ N. K! S< ><FONT size=3><FONT face="Times New Roman"> bottomUrl "../maps/bjtx5.jpg" <p></p></FONT></FONT></P>
' |: O! Q4 V" c2 O< ><FONT size=3><FONT face="Times New Roman"> topUrl "../maps/bjtx6.jpg"} <p></p></FONT></FONT></P>
! q. z6 i7 k0 h! G" b0 O7 g! C8 X< ><FONT face=宋体>2.2 光线的定义 <p></p></FONT></P>
9 n$ w! ?. M3 ^+ y. n: C< ><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>( a4 l- A$ E# `6 ?! F" `
< ><FONT size=3><FONT face="Times New Roman"> DEF Light_0 PointLight { <p></p></FONT></FONT></P>
/ H3 X0 p* R) z% @& `; f" F< ><FONT size=3><FONT face="Times New Roman"> intensity 2 <p></p></FONT></FONT></P>
' K0 b$ \0 u& S9 F0 S6 }1 Q< ><FONT size=3><FONT face="Times New Roman"> color 0.7059 0.7059 0.7059 <p></p></FONT></FONT></P>5 K# L. M% ]. t* }0 |1 a
<P ><FONT size=3><FONT face="Times New Roman"> location 519.4 2012 736.5 <p></p></FONT></FONT></P>* z% [" K' M4 H9 l+ X6 y
<P ><FONT size=3><FONT face="Times New Roman"> on TRUE <p></p></FONT></FONT></P>' d( [3 W n! h
<P ><FONT size=3><FONT face="Times New Roman"> radius 12891} <p></p></FONT></FONT></P>) C: p7 ^& h6 Y/ \5 M0 ]6 S
<P ><FONT face=宋体>2.3 摄影机的定义 <p></p></FONT></P>9 A6 m) S( |) E$ {7 T8 F. h
<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>+ _0 h) l* G! }+ b
<P ><FONT face="Times New Roman"><FONT size=3> DEF _dCm Viewpoint { <p></p></FONT></FONT></P>
1 f5 Y/ F+ t2 W. b. Y4 q<P ><FONT face="Times New Roman"><FONT size=3> position -416.9 107.2 -47.51 <p></p></FONT></FONT></P>
% ~, P" B0 p! Q/ e: i3 c<P ><FONT face="Times New Roman"><FONT size=3> orientation 0.0006254 -1 -0.0006501 -1.609 <p></p></FONT></FONT></P>
v, e$ ^. N- p- D* n<P ><FONT face="Times New Roman"><FONT size=3> fieldOfView 0.6446 <p></p></FONT></FONT></P>. p2 y7 v A) E+ \2 ^% [
<P ><FONT face="Times New Roman"><FONT size=3> description "_dCm"} <p></p></FONT></FONT></P>
; U2 l7 L4 K# e1 g+ a# P<P ><FONT size=3><FONT face="Times New Roman"> </FONT>摄影机的运动描述比较复杂,我们需要计算出摄影机运动的轨迹,运动的帧间隔时间。<FONT face="Times New Roman"> <p></p></FONT></FONT></P>
' Q( g0 C8 I0 n3 c+ l/ o<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>9 f2 }5 i6 D" h4 r& v* ~3 P, v
<P ><FONT size=3><FONT face="Times New Roman"> DEF _dCm-TIMER TimeSensor { loop TRUE cycleInterval 26.67 }, <p></p></FONT></FONT></P>$ @/ J8 ?( A* _- s2 F( |
<P ><FONT size=3><FONT face="Times New Roman"> DEF _dCm-POS-INTERP PositionInterpolator { <p></p></FONT></FONT></P>
" ^/ F" s$ a7 |1 Y4 F% z& c& a. J<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>$ E# y/ q- T+ ^6 j1 L8 D
<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>$ Y+ U, D, ~( T# [
<P ><FONT size=3><FONT face="Times New Roman"> ...... ] <p></p></FONT></FONT></P>( B& ?. P0 ?& _' U* @- J
<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>( Z% d6 f, m. F: K
<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>
( S" C7 I8 q5 ^6 Y, S- I1 p; U<P ><FONT size=3><FONT face="Times New Roman"> ......] }, <p></p></FONT></FONT></P>
o- `7 [! S+ Z+ g<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>, U% R- `" v7 Q: r2 @- B# w
<P ><FONT size=3><FONT face="Times New Roman"> 0.02625, <p></p></FONT></FONT></P>' T/ {6 r/ P- S/ W2 ]0 N! D
<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>* T& r2 q- N P+ k) U8 e0 K3 e
<P ><FONT size=3><FONT face="Times New Roman"> <p></p></FONT></FONT></P> O7 N: Q; |- y6 s! u2 y2 X
<P ><FONT size=3><FONT face="Times New Roman"> <p></p></FONT></FONT></P>) i1 |7 A8 l! a/ T6 J
<P ><FONT size=3><FONT face="Times New Roman"> <p></p></FONT></FONT></P>5 E2 x4 p |/ a1 F7 d6 e
<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>" a2 F: s6 P7 O5 h2 C
<P ><FONT face=宋体> <p></p></FONT></P>
2 \! h, e& s0 g& I# t- z- ?<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>+ U; I- g0 D& r
<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>
( P$ {' T e0 E" p1 j) m0 G) r<P ><FONT face=宋体>2.4三维模型的描述 <p></p></FONT></P>% y, r- t! i$ o7 T0 ]% S" h& w
<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>
1 W) f2 i w# A# G# M<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>
% ^) f: }$ j" s4 o<P ><FONT face="Times New Roman">3 VRML</FONT>的运用<FONT face="Times New Roman"> <p></p></FONT></P>
: z( |7 t- ]. {1 l' t% k<P ><FONT face=宋体>3.1 在Internet上的运用 <p></p></FONT></P>2 O: k4 ~0 O% x& s* u5 e
<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>9 O6 T% ?; U7 U
<P ><FONT face=宋体> <p></p></FONT></P>+ g! Q7 S- z% ?( F' A
<P ><FONT size=3><FONT face="Times New Roman"> </FONT>笔者积累了大量公路三维建模上的经验,<FONT face="Times New Roman"> <p></p></FONT></FONT></P>
0 }0 @& ]) W& _* l p3 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>3 I6 F8 {- ~0 q
<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>& v5 y7 s- K2 h% U; k0 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>
! }3 |! P$ N5 B& l& f<P >3.3 运用于3DSMax制作渲染动画 <p></p></P>; e6 \: R2 \+ y$ j0 s) k3 y2 {
<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>
6 C" Q& M$ @+ z<P >4 结语 <p></p></P>
0 `# m" |8 \( Z<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>6 n% g7 `! Q0 X9 X0 G& ~: n& H" O8 c' m
<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>
' W9 y3 X ]! s: h<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>$ V3 U3 J, }- G b9 G! P' y5 ?7 E. F
<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>/ N' C* x* \% Q$ n) G6 P
<P >图<FONT face="Times New Roman">4 3DSMAX</FONT>中调入的<FONT face="Times New Roman">VRML</FONT>模<p></p></P>1 f, S3 d- P5 }, j* L5 K
<P ><FONT face=宋体> <p></p></FONT></P>5 w$ w; P) j" j4 M9 z9 N
<P ><FONT size=3><FONT face="Times New Roman"> <p></p></FONT></FONT></P> |
zan
|