QQ登录

只需要一步,快速开始

 注册地址  找回密码
查看: 3430|回复: 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>$ l- k5 E7 s5 Q. C* a% 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>
# K, k( e7 l7 t) |. ~3 w+ p< >关键词:信息工程;计算机;<FONT face="Times New Roman">VRML</FONT>;三维模型;网络<FONT face="Times New Roman"> <p></p></FONT></P>
+ @$ |) I/ G) s2 p" \< ><FONT face=宋体> <p></p></FONT></P>* K1 ^, n  l0 e+ o) r
< ><FONT face="Times New Roman">0 </FONT>前言<FONT face="Times New Roman"> <p></p></FONT></P>
* u& T9 F6 N. J) N8 J< ><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>
/ R# M/ b6 Q0 _7 i. p* ]< ><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 _2 y; I* w, @( v' V
< ><FONT face="Times New Roman">1 </FONT>问题的提出<FONT face="Times New Roman"> <p></p></FONT></P>; F/ v6 {; J& x- u2 ~7 x5 L
< ><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>
4 b4 `& M: ^8 g6 D: r( M< ><FONT face="Times New Roman">1.1</FONT>人工建模<FONT face="Times New Roman"> <p></p></FONT></P>  [; ^$ d, S- r" U
< ><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>( N, R& ^4 w/ v+ P' u6 ]6 }
< ><FONT face="Times New Roman">1.2</FONT>通过专业软件完成<FONT face="Times New Roman"> <p></p></FONT></P># U6 P5 a# e4 n* O0 m! v, z. p4 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>) J& D0 j+ ^. V3 ]! ]
< ><FONT face=宋体> <p></p></FONT></P>
3 u' X6 b/ f7 A< ><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>0 M8 ?+ B* b5 j# V" i
< ><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>
( b$ B' B$ @7 l- t8 C( |+ b< ><FONT face=宋体>2.1 对环境变量的定义: <p></p></FONT></P>: H" d5 H1 A( B; u* D: M& A
< ><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>
* q5 R& ^3 Y+ {" v( @0 y7 u; Q. o/ Q< ><FONT size=3><FONT face="Times New Roman"> DEF Background01 Background { <p></p></FONT></FONT></P>; v& c1 \. k2 w! _% @1 C( g- @
< ><FONT size=3><FONT face="Times New Roman"> frontUrl "../maps/bjtx8.jpg" <p></p></FONT></FONT></P>7 Z( g+ |3 u) s5 O/ i* h
< ><FONT size=3><FONT face="Times New Roman"> backUrl "../maps/bjtx1.jpg" <p></p></FONT></FONT></P>
9 w3 m' J1 A, ~# c< ><FONT size=3><FONT face="Times New Roman"> leftUrl "../maps/bjtx2.jpg" <p></p></FONT></FONT></P>
! d/ F) I+ @; ^& v< ><FONT size=3><FONT face="Times New Roman"> rightUrl "../maps/bjtx3.jpg" <p></p></FONT></FONT></P>: z3 X6 l0 z# D. P
< ><FONT size=3><FONT face="Times New Roman"> bottomUrl "../maps/bjtx5.jpg" <p></p></FONT></FONT></P>9 f/ i2 y/ o1 d) r' P9 m7 s3 W
< ><FONT size=3><FONT face="Times New Roman"> topUrl "../maps/bjtx6.jpg"} <p></p></FONT></FONT></P>" ~; ]: p  c& W7 m; e  j5 M
< ><FONT face=宋体>2.2 光线的定义 <p></p></FONT></P>
: b+ S( @& m* j, v+ s< ><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>1 N& T* H' ?" V8 W5 |( \) X
< ><FONT size=3><FONT face="Times New Roman"> DEF Light_0 PointLight { <p></p></FONT></FONT></P>
$ u8 a( z8 V  w( \! R+ z2 C< ><FONT size=3><FONT face="Times New Roman"> intensity 2 <p></p></FONT></FONT></P>
2 K' Q; r9 P4 G+ X- j* v) T. \< ><FONT size=3><FONT face="Times New Roman"> color 0.7059 0.7059 0.7059 <p></p></FONT></FONT></P>
$ }- F% p& x- I2 j* X  V<P ><FONT size=3><FONT face="Times New Roman"> location 519.4 2012 736.5 <p></p></FONT></FONT></P>; t( A/ f8 ]2 C6 _  U! c0 u# q  L7 e
<P ><FONT size=3><FONT face="Times New Roman"> on TRUE <p></p></FONT></FONT></P>
( w9 ^" g6 u7 [; B<P ><FONT size=3><FONT face="Times New Roman"> radius 12891} <p></p></FONT></FONT></P>
6 D0 u+ c% A3 e. b7 K2 X# Y<P ><FONT face=宋体>2.3 摄影机的定义 <p></p></FONT></P>
) T$ F/ O9 U8 W1 D<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>1 f8 I/ Y' w) Q% X+ i
<P ><FONT face="Times New Roman"><FONT size=3> DEF _dCm Viewpoint { <p></p></FONT></FONT></P>6 z8 f0 g/ F# S2 O! ]
<P ><FONT face="Times New Roman"><FONT size=3> position -416.9 107.2 -47.51 <p></p></FONT></FONT></P>
: u$ G, }6 ~( b1 F<P ><FONT face="Times New Roman"><FONT size=3> orientation 0.0006254 -1 -0.0006501 -1.609 <p></p></FONT></FONT></P>
* |6 K! o+ j2 H2 _* O+ ]+ F<P ><FONT face="Times New Roman"><FONT size=3> fieldOfView 0.6446 <p></p></FONT></FONT></P>
+ I7 A  L, }- _8 g& W8 ]- \<P ><FONT face="Times New Roman"><FONT size=3> description "_dCm"} <p></p></FONT></FONT></P>
1 e5 _2 w, h8 V& Z  E  B# m1 L<P ><FONT size=3><FONT face="Times New Roman"> </FONT>摄影机的运动描述比较复杂,我们需要计算出摄影机运动的轨迹,运动的帧间隔时间。<FONT face="Times New Roman"> <p></p></FONT></FONT></P>
6 Y2 @: i" D  K1 c1 l5 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>$ L/ c$ [2 w( D- d) [4 Q; O
<P ><FONT size=3><FONT face="Times New Roman"> DEF _dCm-TIMER TimeSensor { loop TRUE cycleInterval 26.67 }, <p></p></FONT></FONT></P>
" |/ ^8 p8 l# e# z/ {<P ><FONT size=3><FONT face="Times New Roman"> DEF _dCm-POS-INTERP PositionInterpolator { <p></p></FONT></FONT></P>) c6 l+ A% [& F: @0 ]
<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>0 F/ S/ D- `+ F
<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>
' f1 k% L. b* ^3 O9 o4 [& x1 u: F<P ><FONT size=3><FONT face="Times New Roman"> ...... ] <p></p></FONT></FONT></P>, ]- K8 Z. f( D% C: E
<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 X: e% H4 N! H# N: Z
<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>
% z4 P: c2 K) X# p<P ><FONT size=3><FONT face="Times New Roman"> ......] }, <p></p></FONT></FONT></P>
+ d4 f4 T6 M; U' C<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>
$ s) d7 U. U: n3 f4 ~<P ><FONT size=3><FONT face="Times New Roman"> 0.02625, <p></p></FONT></FONT></P>! Z* y5 o9 ?' {% N- j, l! W
<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>
+ a2 z+ O# V" `9 K. G9 P+ q<P ><FONT size=3><FONT face="Times New Roman"> <p></p></FONT></FONT></P>
9 S, |: g* q5 Y<P ><FONT size=3><FONT face="Times New Roman"> <p></p></FONT></FONT></P>
  ^4 J, W, X8 V+ R/ L<P ><FONT size=3><FONT face="Times New Roman"> <p></p></FONT></FONT></P>
5 J  [7 a7 E+ k<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>
+ l  |* ^# K; f5 N. l1 `: j<P ><FONT face=宋体> <p></p></FONT></P>
& |2 n! l( \, i8 U<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>
& X9 u7 }  {; p5 O<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>
; \  u8 k, L2 ^# a5 L0 S<P ><FONT face=宋体>2.4三维模型的描述 <p></p></FONT></P>
7 G# t. J: A, z* I/ v<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>
/ A6 [2 t2 M: X) G: w1 ~) t<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>& T+ Z* w8 ?' Q8 |& t$ M4 a( m" q- f* I
<P ><FONT face="Times New Roman">3 VRML</FONT>的运用<FONT face="Times New Roman"> <p></p></FONT></P>4 W: r$ |/ n3 \. m
<P ><FONT face=宋体>3.1 在Internet上的运用 <p></p></FONT></P>  Q+ b: |# a) e' e9 G
<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 ^/ C9 G2 e7 a1 w; T<P ><FONT face=宋体> <p></p></FONT></P>6 X' t( }0 Q$ z" T. l
<P ><FONT size=3><FONT face="Times New Roman"> </FONT>笔者积累了大量公路三维建模上的经验,<FONT face="Times New Roman"> <p></p></FONT></FONT></P>' X8 n; J3 l2 N
<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>
) b; ]. ?$ {+ u6 S: [* [* _/ f5 ~<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>
6 g8 g8 [$ I4 Z( Z! c3 j. 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>
3 @$ |( N6 U2 ?) X  t$ n9 u5 C( {<P >3.3 运用于3DSMax制作渲染动画 <p></p></P>
: v; m, @' r1 H' Y) U<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>
9 c) p$ |, b( \% ]+ l<P >4 结语 <p></p></P>
! H1 Y: A% J" k5 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>
3 n2 l  z1 p" \) }0 f+ J<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>
& T9 e6 d7 j1 P  M<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>
; B  V6 g/ ]7 ]3 K* L6 m<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>
% ?! O0 M1 a0 L5 {4 w, {) Q<P >图<FONT face="Times New Roman">4 3DSMAX</FONT>中调入的<FONT face="Times New Roman">VRML</FONT>模<p></p></P>: p( S! |( }: ~) o7 D/ Z1 I6 G- b
<P ><FONT face=宋体> <p></p></FONT></P>
0 N, w% v! ~& `  U0 R1 }# h<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 11:49 , Processed in 0.527428 second(s), 69 queries .

回顶部