虚拟现实开发文档_第1页
虚拟现实开发文档_第2页
虚拟现实开发文档_第3页
虚拟现实开发文档_第4页
虚拟现实开发文档_第5页
已阅读5页,还剩32页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、.虚拟现实开发文档罗维030913501. 功能概述运用vrml语言构造了一个虚拟现实世界。运动物体包括气球,火车,汽车,交通灯等,静止物体包括山脉,树林,房屋,人物,花草,电话亭,国旗,座椅,广告牌,雨伞等,另外还包含背景和声音。2. 使用说明2.1广告牌截图:程序:#VRML V2.0 utf8Transform translation 0.0 0.0 0.0 #背景颜色children Transform translation0.0 0.0 0children #创建广告牌造型Shape appearance Appearancematerial Material diffuseCol

2、or 0.2 0.3 0.3 geometry Box #广告牌size 12 6.5 0.2 Transform translation0.0 0.0 -0.02children Shape appearance AppearancetextureImageTexture urladvertisement.png material Material diffuseColor 0.0 0.0 0.0 geometry Box size 11 5.6 0.4 #广告屏幕DEF leg Transform #广告柱子translation 5 -4 0.1scale 0.04 0.04 0.04

3、childrenShape # Shape 模型节点appearance Appearancematerial Material #空间物体造型外观diffuseColor 0.2 0.3 0.3 #一种材料的漫反射颜色 geometry Cylinder #柱体节点radius 2.0 #圆柱体半径height 100.0 #圆柱体高top TRUE #圆柱体有顶#bottom TRUE #圆柱体有底bottom FALSEside TRUE #圆柱体有曲面Transform #椅子腿translation -10 0 0 children USE leg2.2热气球截图:程序:#VRML

4、V2.0 utf8Group children BackgroundskyColor0.2 0.5 0.6#创建月球造型Transformtranslation 0 0 0.0scale 1 1 1 children Shape #银白颜色appearance AppearancetextureImageTexture urlballoon.png material Material #空间物体造型外观 diffuseColor 0.5 0.5 0.7 #一种材料的漫反射颜色ambientIntensity 0.4 #多少环境光被该表面反射specularColor 0.8 0.8 0.9 #

5、物体镜面反射光线的颜色shininess 0.20 #造型外观材料的亮度 geometry Sphere #球体radius 4 Transformtranslation 0 -4 0.0scale 1 0.6 0.6 children Shape appearance AppearancetextureImageTexture urlcolor.png material Material #空间物体造型外观 diffuseColor 0.3 0.2 0.0 #一种材料的漫反射颜色ambientIntensity 0.4 #多少环境光被该表面反射specularColor 0.7 0.7 0.

6、6 #物体镜面反射光线的颜色shininess 0.2 #造型外观材料的亮度 geometry Cylinder #潜艇舰桥(嘹望塔)radius 1.0height 3.0side TRUEtopTRUEbottom TRUE 热气球运动程序:#VRML V2.0 utf8DEFfly1 Transform #引入月球造型children Inlineurl balloon.wrlDEFTime1 TimeSensor #时间传感器cycleInterval 32loop TRUEDEFflyinter1 PositionInterpolator #移动位置节点key #相对时间的逻辑值0.

7、0,0.083,0.166,0.252,0.332,0.412,0.496,0.581,0.664,0.747,0.83,0.913,1.0keyValue #空间坐标的位置值与相对时间的逻辑值 0 0 -20, 6.6 0 -15, 13.2 0 -9, 20 0 0, 13.2 0 9, 6.6 0 15 0 0 20 -6.6 0 15 -13.2 0 9 -20 0 0 -13.2 0 -9 -6.6 0 -15 0 0 -20 ROUTE Time1.fraction_changedTO flyinter1.set_fractionROUTE flyinter1.value_chan

8、ged TOfly1.set_translation2.3国旗截图:程序:#VRML V2.0 utf8Group children Transform translation -22 -3 22scale 0.10.1 0.1 children Transform children Shape appearance Appearance texture ImageTexture url flag.gif geometry Box size 27 0.1 27 Transform translation 0 15 0 children Shape appearance Appearance t

9、exture ImageTexture url flagbase.gif geometry Cylinder radius 0.2 bottom TRUE top TRUE height 30 side TRUE Transform children Shape appearance Appearance texture ImageTexture url flagbase.gif geometry Cylinder radius 2.0 bottom TRUE top TRUE height 1.0 side TRUE Transform translation 4 28 0 scale2 2

10、 2 children Shape appearance Appearance texture ImageTexture url china.gif geometry Box size 4.0 2.0 0.01 Viewpoint orientation 0 1 0 1.2 position -15 -2 252.4公共汽车截图:程序:#VRML V2.0 utf8DEF Bus Transform childrenDEF body Shape appearanceAppearance materialDEF LtGray_Color Material ambientIntensity0.25

11、diffuseColor0.70213 0.70213 0.70213textureImageTexture urlbus_side.jpggeometryIndexedFaceSet coordCoordinate point 1.7909 0 -7.67,1.7909 0 7.6904,1.7909 1.982 7.6904,1.7909 3.964 7.1949,1.7909 3.964 -7.1745,1.7909 3.4685 -7.67,-1.8015 0 -7.67,-1.8015 0 7.6904,-1.8015 1.982 7.6904,-1.8015 3.964 7.194

12、9,-1.8015 3.964 -7.1745,-1.8015 3.4685 -7.67 coordIndex 0, 5, 4, 2, -1, 0, 2, 1,-1, 4, 3, 2, -1, 11, 6, 7,8, -1, 9, 10, 11, 8, -1 texCoordTextureCoordinate point 0.0077066 0.017324,0.99741 0.017324,0.99741 0.49809,0.96549 0.97886,0.039633 0.97886,0.0077066 0.85867,0.0077066 0.017324,0.99741 0.017324

13、,0.99741 0.49809,0.96549 0.97886,0.039633 0.97886,0.0077066 0.85867 DEF front01 Shape appearanceAppearance materialUSE LtGray_ColortextureImageTexture urlbus_front.jpggeometryIndexedFaceSet coordCoordinate point 1.7909 0 7.6904,1.7909 1.982 7.6904,1.7909 3.964 7.1949,-1.8015 0 7.6904,-1.8015 1.982 7

14、.6904,-1.8015 3.964 7.1949 coordIndex 3, 0, 1, 4, -1, 4, 1, 2,5, -1 texCoordTextureCoordinate point 0.93614 0.018577,0.93614 0.48085,0.93614 0.97202,0.072481 0.018577,0.072481 0.48085,0.072481 0.97202 DEF top01 Shape appearanceAppearance materialUSE LtGray_ColorgeometryIndexedFaceSet coordCoordinate

15、 point 1.7909 3.964 7.1949,1.7909 3.964 -7.1745,-1.8015 3.964 7.1949,-1.8015 3.964 -7.1745 coordIndex 2, 0, 1, 3, -1 DEF back01 Shape appearanceAppearance materialUSE LtGray_ColorgeometryIndexedFaceSet coordCoordinate point 1.7909 0 -7.67,1.7909 3.964 -7.1745,1.7909 3.4685 -7.67,-1.8015 0 -7.67,-1.8

16、015 3.964 -7.1745,-1.8015 3.4685 -7.67 coordIndex 4, 1, 2, 5, -1, 5, 2, 0,3, -1 translation0.00532 0 -0.010212.5汽车截图:程序:#VRML V2.0 utf8Background #空间背景中,空中无颜色,即黑色。topUrl cloud.jpg #顶部frontUrl cloud.jpg #前面 backUrl cloud.jpg #后面leftUrl cloud.jpg #左面rightUrl cloud.jpg #右面bottomUrl water.jpg#底部DEF car

17、Transform rotation 0 1 0 1.57 children Transform translation 0 0 3 rotation 1 0 0 1.57 children Shape appearance Appearance textureImageTexture urltire.png material Material diffuseColor .1 .1 .1 geometry Cylinder radius 1 height .5 Transform translation 0 0 -3 rotation 1 0 0 1.57 children Shape app

18、earance Appearance textureImageTexture urltire.png material Material diffuseColor .1 .1 .1 geometry Cylinderradius 1 height .5 Transform translation 10 0 3 rotation 1 0 0 1.57 children Shape appearance Appearance textureImageTexture urltire.png material Material diffuseColor .1 .1 .1 geometry Cylind

19、er radius 1 height .5 Transform translation 10 0 -3 rotation 1 0 0 -1.57 children Shape appearance Appearance textureImageTexture urltire.png material Material diffuseColor .1 .1 .1 geometry Cylinder radius 1 height .5 #车轮 Transform translation 6 2 0 children Shape appearance Appearance textureImage

20、Texture urlcar_side.png material Material geometry Box size 16 3 8 Transform translation 6.8 4 0 children Shape appearance Appearance textureImageTexture urlblack.png material Material geometry Box size 14 3 7 #车身 Transform translation -2 3 -3 children Shape appearance Appearance material Material d

21、iffuseColor 1 1 1 geometry Sphereradius .5 Transform translation -2 3 3 children Shape appearance Appearance material Material diffuseColor 1 1 1 geometry Sphereradius .5 #车灯Transform translation 0 2 2 rotation 0 1 0 1.571 children Shape appearance Appearance textureImageTexture urlcar_front.png mat

22、erial Material geometry Box size 0.01 3 8 #车正面Transform translation 0 4.5 0.2 rotation 0 1 0 1.571 children Shape appearance Appearance textureImageTexture urlglass.png material Material geometry Box size 0.01 1.5 6.5 #车窗户Transform translation 0 4.5 -13.8 rotation 0 1 0 1.571 children Shape appearan

23、ce Appearance textureImageTexture urlglass.png material Material geometry Box size 0.01 1.5 6.5 #车窗户 后面Transform translation 3.55 4.5 -7 rotation 0 0 1 1.571 children Shape appearance Appearance textureImageTexture urlglass.png material Material geometry Box size 1.5 0.01 13 #车窗户 侧面Transform transla

24、tion -3.5 4.5 -7 rotation 0 0 1 1.571 children Shape appearance Appearance textureImageTexture urlglass.png material Material geometry Box size 1.5 0.01 13 #车窗户 侧面2.6椅子截图:程序:#VRML V2.0 utf8Transform translation0.0 0.0 -0.02children Shape appearance AppearancetextureImageTexture urlchair_wood.jpg mat

25、erial Material diffuseColor 0.2 0.3 0.4 geometry Box size 11 5.6 0.3 #椅子背Transform translation0 -2.8 2.8rotation 1 0 0 1.571children Shape appearance AppearancetextureImageTexture urlchair_wood.jpg material Material diffuseColor 0.6 0.5 0.2 geometry Box size 11 5.6 0.3 #椅子坐DEF leg Transform translat

26、ion5.3 -5.5 0.3 #椅子腿rotation 0 0 0 1.571children Shape appearance AppearancetextureImageTexture urlchair_wood.jpg material Material diffuseColor 0.6 0.5 0.2 geometry Cylinder radius 0.2 #圆柱体半径height 5.0 #圆柱体高top TRUE #圆柱体有顶#bottom TRUE #圆柱体有底bottom FALSEside TRUE #圆柱体有曲面Transform #椅子腿translation -10

27、.5 0 0 children USE legTransform #椅子腿translation 0 0 5 children USE legTransform #椅子腿translation -10.5 0 5 children USE leg2.7广告牌截图:程序:#VRML V2.0 utf8Transform translation0.0 0.0 0scale 5 5 5children DEF side1 Shape appearanceAppearance textureImageTexture urlflag_top.png materialDEF Blue_Color Mate

28、rial ambientIntensity0.197097diffuseColor0.1 0.2 0.3geometryExtrusion creaseAngle0.541052crossSection 1.00346 0.254188,1.11821 0.209842,1.19964 0.115829,1.22904 -0.006242,1.19964 -0.128314,1.11821 -0.222327,1.00346 -0.266673,1.00346 0.254188 orientation0 0 1 0scale1 1solidFALSEspine -0.197562 0 0,-0

29、.253993 0 0 Transform translation-1.1 3.3 0rotation 0 1 0 1.571children Shape appearance Appearance textureImageTexture urlflag_middle.png material Material diffuseColor 0.1 0.2 0.3 geometry Box size 2.5 3.5 0.1 #广告屏幕 Transform #广告柱子translation -1.1 0.1 0scale 0.1 0.1 0.1 childrenShape # Shape 模型节点a

30、ppearance Appearancematerial Material #空间物体造型外观diffuseColor 0.1 0.2 0.3 #一种材料的漫反射颜色 geometry Cylinder #柱体节点radius 1 #圆柱体半径height 30.0 #圆柱体高top TRUE #圆柱体有顶#bottom TRUE #圆柱体有底bottom FALSEside TRUE #圆柱体有曲面2.8房屋截图:程序:#VRML V2.0 utf8Group childrenDEF house1 Transform translation-22 12 -24children Shape a

31、ppearance Appearance textureImageTexture urlhouse1.gifrepeatSTRUErepeatTTRUEgeometry Box size 20 30 202.9山脉截图:程序:#VRML V2.0 utf8BackgroundskyColor 0.2 0.5 0.6#创建山脉造型Shape # Shape 模型节点appearance AppearancetextureImageTexture urlgrass.png material Material #空间物体造型外观diffuseColor 0.2 0.8 0.5 #一种材料的漫反射颜色

32、 geometry ElevationGrid #海拔珊格节点 xDimension 10 #X-Z水平面 zDimension 40 xSpacing2.0 #X-Z水平面上间距 zSpacing1.0 ccw TRUE solid TRUE height #海拔珊格高度阵列 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,0.00.0, 0.5, 1.0, 2.0, 05.0,0.6, 1.8, 3.0, 0.0,0.00.0, 1.5, 3.0, 05.0,10.0,10.0,8.0, 5.0, 0.0,0.00.0, 2.0, 3.0, 13.0

33、,15.0,10.0,7.0, 6.0, 1.0,0.00.0, 1.5, 3.0, 12.0,19.0,10.0,9.0, 7.0, 2.0,0.00.0, 1.0, 3.0, 15.0,20.0,15.0,10.0,8.0, 3.0,0.00.0, 1.0, 3.0, 10.0,13.0,14.0,10.0, 4.0, 2.0,0.00.0, 1.0, 3.0, 10.0,12.0,13.0, 15.0, 3.0, 1.0,0.00.0, 1.0, 3.0, 8.0, 10.0,12.0, 14.0, 2.0, 0.0,0.00.0, 2.0, 5.0,10.0,12.0, 10.0, 1

34、3.0, 5.0, 0.0,0.00.0, 4.0, 6.0,12.0,13.0, 13.0, 12.0, 6.0, 0.0,0.00.0, 2.5, 4.0, 8.0, 15.0,9.6, 12.8, 3.0, 0.0,0.00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1.0, 3.0, 15.0,20.0,15.0,10.0,8.0, 3.0,0.00.0, 1.0, 3.0, 10.0,16.0,14.0,8.0, 4.0, 2.0,0.00.0, 1.0, 2.0, 10.0,15.0,3.0, 5.0, 3.0, 1.0,0.00.0, 1.0, 1.0, 2.0, 1.0,2.0, 1.0, 2.0, 0.0,0.00.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,0.0 creaseAngle 5.0 2.10路灯截图:程序:#VRML V2.0 utf8DEF B_lamp1 Transform childrenDEF Light_Post Shape appearanceAppearance materialMaterial ambientIntensity0.17694diffuseColor0.80237 0.90425 0.84705geometryExtrusion beginCapFALSEcreaseAngle0.

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论