虚拟现实开发文档罗维030913501.功能概述运用vrml语言构造了一个虚拟现实世界。运动物体包括气球,火车,汽车,交通灯等,静止物体包括山脉,树林,房屋,人物,花草,电话亭,国旗,座椅,广告牌,雨伞等,另外还包含背景和声音。2.使用说明2.1广告牌截图:程序:#VRMLV2.0utf8Transform{translation0.00.00.0#背景颜色children[Transform{translation0.00.00children[#创建广告牌造型Shape{appearanceAppearance{materialMaterial{diffuseColor0.20.30.3}}geometryBox{#广告牌size126.50.2}}]}Transform{translation0.00.0-0.02children[Shape{appearanceAppearance{textureImageTexture{url"advertisement.png"}materialMaterial{diffuseColor0.00.00.0}}geometryBox{size115.60.4#广告屏幕}}]}]}DEFlegTransform{#广告柱子translation5-40.1scale0.040.040.04children[Shape{#Shape模型节点appearanceAppearance{materialMaterial{#空间物体造型外观diffuseColor0.20.30.3#一种材料的漫反射颜色}}geometryCylinder{#柱体节点radius2.0#圆柱体半径height100.0#圆柱体高topTRUE#圆柱体有顶#bottomTRUE#圆柱体有底bottomFALSEsideTRUE#圆柱体有曲面}}]}Transform{#椅子腿translation-1000childrenUSEleg}2.2热气球截图:程序:#VRMLV2.0utf8Group{children[Background{skyColor[0.20.50.6]}#创建月球造型Transform{translation000.0scale111children[Shape{#银白颜色appearanceAppearance{textureImageTexture{url"balloon.png"}materialMaterial{#空间物体造型外观diffuseColor0.50.50.7#一种材料的漫反射颜色ambientIntensity0.4#多少环境光被该表面反射specularColor0.80.80.9#物体镜面反射光线的颜色shininess0.20#造型外观材料的亮度}}geometrySphere{#球体radius4}}]}]}Transform{translation0-40.0scale10.60.6children[Shape{appearanceAppearance{textureImageTexture{url"color.png"}materialMaterial{#空间物体造型外观diffuseColor0.30.20.0#一种材料的漫反射颜色ambientIntensity0.4#多少环境光被该表面反射specularColor0.70.70.6#物体镜面反射光线的颜色shininess0.2#造型外观材料的亮度}}geometryCylinder{#潜艇舰桥(嘹望塔)radius1.0height3.0sideTRUEtopTRUEbottomTRUE}}]}热气球运动程序:#VRMLV2.0utf8DEFfly1Transform{#引入月球造型childrenInline{url"balloon.wrl"}}DEFTime1TimeSensor{#时间传感器cycleInterval32loopTRUE}DEFflyinter1PositionInterpolator{#移动位置节点key[#相对时间的逻辑值0.0,0.083,0.166,0.252,0.332,0.412,0.496,0.581,0.664,0.747,0.83,0.913,1.0]keyValue[#空间坐标的位置值与相对时间的逻辑值00-20,6.60-15,13.20-9,2000,13.209,6.60150020-6.6015-13.209-2000-13.20-9-6.60-1500-20]}ROUTETime1.fraction_changedTOflyinter1.set_fractionROUTEflyinter1.value_changedTOfly1.set_translation2.3国旗截图:程序:#VRMLV2.0utf8Group{children[Transform{translation-22-322scale0.10.10.1children[Transform{children[Shape{appearanceAppearance{textureImageTexture{url"flag.gif"}}geometryBox{size270.127}}]}Transform{translation0150children[Shape{appearanceAppearance{textureImageTexture{url"flagbase.gif"}}geometryCylinder{radius0.2bottomTRUEtopTRUEheight30sideTRUE}}]}Transform{children[Shape{appearanceAppearance{textureImageTexture{url"flagbase.gif"}}geometryCylinder{radius2.0bottomTRUEtopTRUEheight1.0sideTRUE}}]}Transform{translation4280scale222children[Shape{appearanceAppearance{textureImageTexture{url"china.gif"}}geometryBox{size4.02.00.01}}]}]}]}Viewpoint{orientation0101.2position-15-225}2.4公共汽车截图:程序:#VRMLV2.0utf8DEFBusTransform{children[DEFbodyShape{appearanceAppearance{materialDEFLtGray_ColorMaterial{ambientIntensity0.25diffuseColor0.702130.702130.70213}textureImageTexture{url"bus_side.jpg"}}geometryIndexedFaceSet{coordCoordinate...