QQ登录

只需要一步,快速开始

 注册地址  找回密码
查看: 3426|回复: 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>: b" ?0 Z1 f& X/ j$ D
< >摘要:本文概括性地介绍了<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 k+ u+ u% x. m* ]  [< >关键词:信息工程;计算机;<FONT face="Times New Roman">VRML</FONT>;三维模型;网络<FONT face="Times New Roman"> <p></p></FONT></P>
- Q! I* j% o/ M8 x0 g< ><FONT face=宋体> <p></p></FONT></P>
+ z' k+ S7 D: ~" ]* x8 F< ><FONT face="Times New Roman">0 </FONT>前言<FONT face="Times New Roman"> <p></p></FONT></P>- i! ]; z8 k3 y9 ]
< ><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>8 w: @& a/ h% 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>
3 r# S! h2 Z% b1 K2 l+ \7 K< ><FONT face="Times New Roman">1 </FONT>问题的提出<FONT face="Times New Roman"> <p></p></FONT></P>8 D2 ^7 l: |1 U2 v9 }
< ><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>
( E$ I$ w2 w, e+ B$ z" d( w0 D/ m< ><FONT face="Times New Roman">1.1</FONT>人工建模<FONT face="Times New Roman"> <p></p></FONT></P>/ m7 V2 T9 s" q" p, t$ i( S3 D
< ><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>$ g8 w% J9 k& t
< ><FONT face="Times New Roman">1.2</FONT>通过专业软件完成<FONT face="Times New Roman"> <p></p></FONT></P>
9 i1 `) z% J# z. q) M< ><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>' J4 w' q5 B& Z& H# x
< ><FONT face=宋体> <p></p></FONT></P>+ M# y) l* A, |! ^2 L: @/ `: v, _
< ><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>
9 V$ e9 [: b) @6 e< ><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>5 N! [  q/ R% V: q3 u4 Q
< ><FONT face=宋体>2.1 对环境变量的定义: <p></p></FONT></P>
# C$ O1 X$ e- D8 ~< ><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>
# O, z  ~9 \1 a( p3 S< ><FONT size=3><FONT face="Times New Roman"> DEF Background01 Background { <p></p></FONT></FONT></P>
; h6 X- }+ ]" e& Q- r, O< ><FONT size=3><FONT face="Times New Roman"> frontUrl "../maps/bjtx8.jpg" <p></p></FONT></FONT></P>0 q# E, Q) T0 f. l) e
< ><FONT size=3><FONT face="Times New Roman"> backUrl "../maps/bjtx1.jpg" <p></p></FONT></FONT></P>
& f/ k' M1 P) q* f< ><FONT size=3><FONT face="Times New Roman"> leftUrl "../maps/bjtx2.jpg" <p></p></FONT></FONT></P>6 ^6 T  @) N5 K2 O2 g- V7 K4 _
< ><FONT size=3><FONT face="Times New Roman"> rightUrl "../maps/bjtx3.jpg" <p></p></FONT></FONT></P>2 u( a6 G' {+ z
< ><FONT size=3><FONT face="Times New Roman"> bottomUrl "../maps/bjtx5.jpg" <p></p></FONT></FONT></P>( z5 a1 w& q/ h, n, |
< ><FONT size=3><FONT face="Times New Roman"> topUrl "../maps/bjtx6.jpg"} <p></p></FONT></FONT></P>
7 {  m3 b, d3 i' A& ^< ><FONT face=宋体>2.2 光线的定义 <p></p></FONT></P>  Q& j  ?7 X" t  H! 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>/ q6 P( n: a: @) J" P' g( \! `  \6 t
< ><FONT size=3><FONT face="Times New Roman"> DEF Light_0 PointLight { <p></p></FONT></FONT></P>
+ ?' l, C2 n/ _2 L( K0 N< ><FONT size=3><FONT face="Times New Roman"> intensity 2 <p></p></FONT></FONT></P>7 ]" O+ X: q5 [1 k- T  g# j3 y: d
< ><FONT size=3><FONT face="Times New Roman"> color 0.7059 0.7059 0.7059 <p></p></FONT></FONT></P>9 u6 r6 P4 _# m8 E/ s3 @+ C
<P ><FONT size=3><FONT face="Times New Roman"> location 519.4 2012 736.5 <p></p></FONT></FONT></P>; H& P) j& `: h
<P ><FONT size=3><FONT face="Times New Roman"> on TRUE <p></p></FONT></FONT></P>
8 c, t$ |! f" l<P ><FONT size=3><FONT face="Times New Roman"> radius 12891} <p></p></FONT></FONT></P>
  O3 ^2 n6 D* F( P! y; p" [<P ><FONT face=宋体>2.3 摄影机的定义 <p></p></FONT></P>2 x7 }) r8 F8 ?% _
<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>5 c, |' M7 i5 J8 g* |* f
<P ><FONT face="Times New Roman"><FONT size=3> DEF _dCm Viewpoint { <p></p></FONT></FONT></P>
0 ]9 ^- u. j! v4 @1 s1 Q) g# L<P ><FONT face="Times New Roman"><FONT size=3> position -416.9 107.2 -47.51 <p></p></FONT></FONT></P>1 z" E3 i+ N8 M# D
<P ><FONT face="Times New Roman"><FONT size=3> orientation 0.0006254 -1 -0.0006501 -1.609 <p></p></FONT></FONT></P>
3 p3 S6 }5 N4 w/ w/ U& p! \' z* p<P ><FONT face="Times New Roman"><FONT size=3> fieldOfView 0.6446 <p></p></FONT></FONT></P>
: K7 d9 H( Z- |4 T8 B6 y<P ><FONT face="Times New Roman"><FONT size=3> description "_dCm"} <p></p></FONT></FONT></P>
" b% k1 b$ c% J0 l<P ><FONT size=3><FONT face="Times New Roman"> </FONT>摄影机的运动描述比较复杂,我们需要计算出摄影机运动的轨迹,运动的帧间隔时间。<FONT face="Times New Roman"> <p></p></FONT></FONT></P>5 @! V) ?0 E7 q# p) |& |; I( J
<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>& @! B. Y; O4 W+ h
<P ><FONT size=3><FONT face="Times New Roman"> DEF _dCm-TIMER TimeSensor { loop TRUE cycleInterval 26.67 }, <p></p></FONT></FONT></P>
1 e& z  |6 I2 t5 f7 \0 @<P ><FONT size=3><FONT face="Times New Roman"> DEF _dCm-POS-INTERP PositionInterpolator { <p></p></FONT></FONT></P>
$ B9 B$ ]+ O6 E) V<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>: t* ]* Y2 e, o
<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>/ M" I7 g0 o7 S$ H' z" a
<P ><FONT size=3><FONT face="Times New Roman"> ...... ] <p></p></FONT></FONT></P>/ [1 X9 J; R4 Y4 b6 ~8 p) f0 [
<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>, g) b* }% P( L: j3 H0 J
<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>
$ D/ q- G0 T, S; z+ z5 }# \<P ><FONT size=3><FONT face="Times New Roman"> ......] }, <p></p></FONT></FONT></P>
2 T4 d: s1 k( ]4 d  ]$ T; T/ @<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>0 Z3 ^/ o* `8 M/ m! G, {6 z
<P ><FONT size=3><FONT face="Times New Roman"> 0.02625, <p></p></FONT></FONT></P>
8 n8 [1 O5 p* A9 S5 _; u" t; G<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>- F- I5 O  Z& {' k8 c% m, T
<P ><FONT size=3><FONT face="Times New Roman"> <p></p></FONT></FONT></P>
" @. \; L+ Z8 d' P6 O. L/ |/ C<P ><FONT size=3><FONT face="Times New Roman"> <p></p></FONT></FONT></P>3 p) I0 X6 d/ I3 z: Y
<P ><FONT size=3><FONT face="Times New Roman"> <p></p></FONT></FONT></P>
) k; A5 {, t) N8 z, ~( J<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>
8 e$ D" i0 a# V) t* f2 }7 q" K+ l<P ><FONT face=宋体> <p></p></FONT></P>$ ~0 \, _2 \2 \& C
<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>
" M  M7 K# @. d: }; z1 H' k<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>. S  H# C2 ^6 J
<P ><FONT face=宋体>2.4三维模型的描述 <p></p></FONT></P>
- G7 P/ j$ F2 i) d3 R4 F3 ^# d<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>" Q* d; I, a: Q' f
<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>
  k. m: x3 b/ o  l/ `7 n$ i<P ><FONT face="Times New Roman">3 VRML</FONT>的运用<FONT face="Times New Roman"> <p></p></FONT></P>$ b8 G; I! e' V$ b- n
<P ><FONT face=宋体>3.1 在Internet上的运用 <p></p></FONT></P>
$ u7 ~3 c: t( T2 g0 @# A) V2 q7 g+ `2 `<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>1 d. G6 V" k: o5 M+ o. n
<P ><FONT face=宋体> <p></p></FONT></P>+ O) w$ l* t# V, D/ }8 \
<P ><FONT size=3><FONT face="Times New Roman"> </FONT>笔者积累了大量公路三维建模上的经验,<FONT face="Times New Roman"> <p></p></FONT></FONT></P>5 E. Q( I" {+ h, X
<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>
/ t4 b$ ]4 x- o' j* D( k<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>
: Y1 ]$ G6 c  _& r<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>- C0 ]' n0 T/ B' q3 U" D: ?
<P >3.3 运用于3DSMax制作渲染动画 <p></p></P>% O. N& x* n7 E; J1 r+ H
<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>8 z# v9 X1 {- V" e9 [' J
<P >4 结语 <p></p></P>
& ~7 i5 @% I+ |, a, q3 P0 y" A/ G<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>
5 V' c; b) ~  d3 h; V" 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>
% `: {/ \5 i% @8 E/ `<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>
) b1 Q1 ~  [5 O' D<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>8 w# r1 N. C  B. @( t
<P >图<FONT face="Times New Roman">4 3DSMAX</FONT>中调入的<FONT face="Times New Roman">VRML</FONT>模<p></p></P>
/ q4 i1 Z4 U& f( a<P ><FONT face=宋体> <p></p></FONT></P>
7 R0 a' l( e0 j) E# p<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 06:25 , Processed in 0.296840 second(s), 68 queries .

回顶部