QQ登录

只需要一步,快速开始

 注册地址  找回密码
查看: 3428|回复: 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>1 B. Q! ^) b. w
< >摘要:本文概括性地介绍了<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>
9 U4 M* ~+ R8 }+ D5 ]; }< >关键词:信息工程;计算机;<FONT face="Times New Roman">VRML</FONT>;三维模型;网络<FONT face="Times New Roman"> <p></p></FONT></P>
, ]0 u, p# m- s4 D$ C: c< ><FONT face=宋体> <p></p></FONT></P>
- `* K' ?$ G6 _7 }' U0 t< ><FONT face="Times New Roman">0 </FONT>前言<FONT face="Times New Roman"> <p></p></FONT></P>
6 O" q% t( y: E5 ]  N" \< ><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>
* ?  D9 @2 O% w1 J% H7 r' s7 k- ]; 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>1 v  {1 p5 h1 d4 D3 U% v
< ><FONT face="Times New Roman">1 </FONT>问题的提出<FONT face="Times New Roman"> <p></p></FONT></P>
+ i' y% C: T" `% G: {( _< ><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>
  E0 E6 Q  }: {: a& t( B% v< ><FONT face="Times New Roman">1.1</FONT>人工建模<FONT face="Times New Roman"> <p></p></FONT></P>
% l3 e. _! V, r5 t( C< ><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>
/ M9 o( C! M2 V2 _$ Y< ><FONT face="Times New Roman">1.2</FONT>通过专业软件完成<FONT face="Times New Roman"> <p></p></FONT></P>. Y" k: d4 T2 a( `6 `
< ><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>
0 u6 u2 k( T) |* p  M& T0 y< ><FONT face=宋体> <p></p></FONT></P>. r8 E( o7 H# T
< ><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>
4 s; a* W# u6 r) ]1 v% e. Z< ><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>. n! i  m% @1 [
< ><FONT face=宋体>2.1 对环境变量的定义: <p></p></FONT></P>
3 I7 B4 C0 S& n/ g1 x< ><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>
& f; y, K$ X; l* [. d< ><FONT size=3><FONT face="Times New Roman"> DEF Background01 Background { <p></p></FONT></FONT></P>' [, N9 K: J- j
< ><FONT size=3><FONT face="Times New Roman"> frontUrl "../maps/bjtx8.jpg" <p></p></FONT></FONT></P>
1 U, G8 K5 y1 a5 L$ U! ^< ><FONT size=3><FONT face="Times New Roman"> backUrl "../maps/bjtx1.jpg" <p></p></FONT></FONT></P>
1 o4 R+ e2 Z* R- B7 w, [< ><FONT size=3><FONT face="Times New Roman"> leftUrl "../maps/bjtx2.jpg" <p></p></FONT></FONT></P>
9 V/ j9 d  R4 B+ K< ><FONT size=3><FONT face="Times New Roman"> rightUrl "../maps/bjtx3.jpg" <p></p></FONT></FONT></P>5 D5 K. }! X4 @1 J
< ><FONT size=3><FONT face="Times New Roman"> bottomUrl "../maps/bjtx5.jpg" <p></p></FONT></FONT></P>
& f% Z; T' y, ?4 A$ h$ e+ v( d< ><FONT size=3><FONT face="Times New Roman"> topUrl "../maps/bjtx6.jpg"} <p></p></FONT></FONT></P>
+ K5 M) I5 h9 ~* H< ><FONT face=宋体>2.2 光线的定义 <p></p></FONT></P>
. T% M: l8 C; E2 m5 Q  o< ><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>& v, ^, L) o* h! n* |5 k* P
< ><FONT size=3><FONT face="Times New Roman"> DEF Light_0 PointLight { <p></p></FONT></FONT></P>
. z+ S6 k7 i* {& Q7 j9 F# T4 P< ><FONT size=3><FONT face="Times New Roman"> intensity 2 <p></p></FONT></FONT></P>
( _' `# f  K' o3 }! c/ Z* B* l: E< ><FONT size=3><FONT face="Times New Roman"> color 0.7059 0.7059 0.7059 <p></p></FONT></FONT></P>
7 r, P- q) h" }+ r' K; @<P ><FONT size=3><FONT face="Times New Roman"> location 519.4 2012 736.5 <p></p></FONT></FONT></P>
* c( c! d7 N" n; Y4 l1 S<P ><FONT size=3><FONT face="Times New Roman"> on TRUE <p></p></FONT></FONT></P>
3 S2 x$ W) T) D2 x; V+ c  I<P ><FONT size=3><FONT face="Times New Roman"> radius 12891} <p></p></FONT></FONT></P>0 T1 J, V% Z; @. D+ }) a
<P ><FONT face=宋体>2.3 摄影机的定义 <p></p></FONT></P>
% w# K8 E0 O# [& ]1 p9 z<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 H1 B  L: m
<P ><FONT face="Times New Roman"><FONT size=3> DEF _dCm Viewpoint { <p></p></FONT></FONT></P>
& T3 I7 ?  {6 `: b2 s) d0 N<P ><FONT face="Times New Roman"><FONT size=3> position -416.9 107.2 -47.51 <p></p></FONT></FONT></P>
) T0 c8 `  v! ^4 R- Z5 \( R<P ><FONT face="Times New Roman"><FONT size=3> orientation 0.0006254 -1 -0.0006501 -1.609 <p></p></FONT></FONT></P>, w' w/ l- ~$ v4 K( ]
<P ><FONT face="Times New Roman"><FONT size=3> fieldOfView 0.6446 <p></p></FONT></FONT></P>7 T* b% ^% E: F6 l6 U# P& G  a/ Q. B
<P ><FONT face="Times New Roman"><FONT size=3> description "_dCm"} <p></p></FONT></FONT></P>, u9 R7 E. F% V" @
<P ><FONT size=3><FONT face="Times New Roman"> </FONT>摄影机的运动描述比较复杂,我们需要计算出摄影机运动的轨迹,运动的帧间隔时间。<FONT face="Times New Roman"> <p></p></FONT></FONT></P>! A' x5 m5 P+ ~4 `# x, g" u
<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>
3 @" C- e# \% B/ Y: h! ?<P ><FONT size=3><FONT face="Times New Roman"> DEF _dCm-TIMER TimeSensor { loop TRUE cycleInterval 26.67 }, <p></p></FONT></FONT></P>7 t+ w( B) ?7 \: M3 M! k, m2 f7 X
<P ><FONT size=3><FONT face="Times New Roman"> DEF _dCm-POS-INTERP PositionInterpolator { <p></p></FONT></FONT></P>9 N3 L2 t7 r1 L( ^
<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>
! u# a" F& ?- v<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>0 \9 c7 a: {- A' w; J! e: A
<P ><FONT size=3><FONT face="Times New Roman"> ...... ] <p></p></FONT></FONT></P>
4 j: H! }5 V8 O8 G4 E4 l, D<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>
6 i4 ~. w9 T  r<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># q2 A2 j, U6 H! `
<P ><FONT size=3><FONT face="Times New Roman"> ......] }, <p></p></FONT></FONT></P>! Z$ ^! ]3 w3 s* w) {" W/ A) I4 E/ h* 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>) Z% h; b) O% Q+ r( V9 C
<P ><FONT size=3><FONT face="Times New Roman"> 0.02625, <p></p></FONT></FONT></P>
) ~! ?* |1 Z: U* y+ j$ s<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>' R" h0 K- _4 t8 W: M1 o7 O, N
<P ><FONT size=3><FONT face="Times New Roman"> <p></p></FONT></FONT></P>
6 j7 N( Y1 }2 ?3 \<P ><FONT size=3><FONT face="Times New Roman"> <p></p></FONT></FONT></P>
3 C. I3 z$ O: {# M; c<P ><FONT size=3><FONT face="Times New Roman"> <p></p></FONT></FONT></P>
; S$ L# x  {! i& 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>
4 K; n4 {9 y- V4 h  K  ]. I, _* S<P ><FONT face=宋体> <p></p></FONT></P>
2 Q5 T- J# h9 G<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>
; y) @3 D, U% x* O9 D2 S<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>
) w5 `. S* ~3 m<P ><FONT face=宋体>2.4三维模型的描述 <p></p></FONT></P>
7 |! O4 x. e  _' |, t<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>
7 p" Z& R* R) _2 Y; m) l1 ^5 q<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>2 n+ L7 B* Y) z9 m
<P ><FONT face="Times New Roman">3 VRML</FONT>的运用<FONT face="Times New Roman"> <p></p></FONT></P>0 M$ K+ Y8 e" [5 C' f$ l- q
<P ><FONT face=宋体>3.1 在Internet上的运用 <p></p></FONT></P>
9 x) e/ U) M( o<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 v6 Y5 I0 p( p# Y( d6 ?
<P ><FONT face=宋体> <p></p></FONT></P>. V8 ^/ p. \& J  Y8 X  Z1 q) ]5 ]2 Z
<P ><FONT size=3><FONT face="Times New Roman"> </FONT>笔者积累了大量公路三维建模上的经验,<FONT face="Times New Roman"> <p></p></FONT></FONT></P>/ A4 B7 c5 k/ d1 B: }% L
<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>! X- `1 G8 U% c/ _( S" ~
<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>
9 q3 Z9 v  |, J  ?& w9 C' G. b<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>$ L2 k3 X; K( l; C+ e4 S# e
<P >3.3 运用于3DSMax制作渲染动画 <p></p></P>
, L5 p9 l' X3 C" k& 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 S* }: c4 M; G; v% j<P >4 结语 <p></p></P>  o1 R8 D3 e2 h6 p3 K
<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>* w/ R2 A7 v4 I
<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>. ?$ O4 t+ c( j3 I1 o
<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>2 d6 r% D, C# @" r
<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>
% t" S) T6 T' F. x" h; w# H/ T<P >图<FONT face="Times New Roman">4 3DSMAX</FONT>中调入的<FONT face="Times New Roman">VRML</FONT>模<p></p></P>
+ o9 J9 ^1 h5 G. i$ R/ D<P ><FONT face=宋体> <p></p></FONT></P>
' a$ W2 b  P( X<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 09:55 , Processed in 0.418297 second(s), 69 queries .

回顶部