align=center><FONT face="Times New Roman">VRML</FONT>技术在公路设计中的研究与展望<FONT face="Times New Roman"> <p></p></FONT></P>- H* S. u" N( Q& [+ l" T' [
>摘要:本文概括性地介绍了<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>) Q* ]8 ? G: }3 y. ^
>关键词:信息工程;计算机;<FONT face="Times New Roman">VRML</FONT>;三维模型;网络<FONT face="Times New Roman"> <p></p></FONT></P>( x4 a: e3 e6 R
><FONT face=宋体> <p></p></FONT></P>" _/ x8 i6 n5 J' k1 s, Z; e
><FONT face="Times New Roman">0 </FONT>前言<FONT face="Times New Roman"> <p></p></FONT></P>8 S6 M @- g2 ^' I
><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>! ]* [7 E# d# d" U& |
><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>3 o) U9 A, e3 O' Z3 i+ o7 M3 }
><FONT face="Times New Roman">1 </FONT>问题的提出<FONT face="Times New Roman"> <p></p></FONT></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>
><FONT face="Times New Roman">1.1</FONT>人工建模<FONT face="Times New Roman"> <p></p></FONT></P>3 s& o! \; d" j( @
><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>
><FONT face="Times New Roman">1.2</FONT>通过专业软件完成<FONT face="Times New Roman"> <p></p></FONT></P>3 r) Q3 J U4 D+ T
><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>: w3 H% f& W9 {
><FONT face=宋体> <p></p></FONT></P>& t, @2 P: H, ?5 J( N
><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>
><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>
><FONT face=宋体>2.1 对环境变量的定义: <p></p></FONT></P>
><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>
><FONT size=3><FONT face="Times New Roman"> DEF Background01 Background { <p></p></FONT></FONT></P>
><FONT size=3><FONT face="Times New Roman"> frontUrl "../maps/bjtx8.jpg" <p></p></FONT></FONT></P>
><FONT size=3><FONT face="Times New Roman"> backUrl "../maps/bjtx1.jpg" <p></p></FONT></FONT></P>& g# c5 E% h/ a. E/ {
><FONT size=3><FONT face="Times New Roman"> leftUrl "../maps/bjtx2.jpg" <p></p></FONT></FONT></P>
><FONT size=3><FONT face="Times New Roman"> rightUrl "../maps/bjtx3.jpg" <p></p></FONT></FONT></P>1 z3 \4 f& B9 V6 u7 u ~+ [
><FONT size=3><FONT face="Times New Roman"> bottomUrl "../maps/bjtx5.jpg" <p></p></FONT></FONT></P>
><FONT size=3><FONT face="Times New Roman"> topUrl "../maps/bjtx6.jpg"} <p></p></FONT></FONT></P>8 K5 ?# ~( ?0 d2 z" w8 [ c
><FONT face=宋体>2.2 光线的定义 <p></p></FONT></P>
><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>
><FONT size=3><FONT face="Times New Roman"> DEF Light_0 PointLight { <p></p></FONT></FONT></P>" `; c6 p, S& e3 [
><FONT size=3><FONT face="Times New Roman"> intensity 2 <p></p></FONT></FONT></P>
><FONT size=3><FONT face="Times New Roman"> color 0.7059 0.7059 0.7059 <p></p></FONT></FONT></P>7 ?) P( R& X( F$ \8 v. f* b" N| 欢迎光临 数学建模社区-数学中国 (http://www.madio.net/) | Powered by Discuz! X2.5 |