VRML虚拟现实开发文档(含源代码)37

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

虚拟现实开发文档罗维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{urladvertisement.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{urlballoon.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{urlcolor.png}materialMaterial{#空间物体造型外观diffuseColor0.30.20.0#一种材料的漫反射颜色ambientIntensity0.4#多少环境光被该表面反射specularColor0.70.70.6#物体镜面反射光线的颜色shininess0.2#造型外观材料的亮度}}geometryCylinder{#潜艇舰桥(嘹望塔)radius1.0height3.0sideTRUEtopTRUEbottomTRUE}}]}热气球运动程序:#VRMLV2.0utf8DEFfly1Transform{#引入月球造型childrenInline{urlballoon.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{urlflag.gif}}geometryBox{size270.127}}]}Transform{translation0150children[Shape{appearanceAppearance{textureImageTexture{urlflagbase.gif}}geometryCylinder{radius0.2bottomTRUEtopTRUEheight30sideTRUE}}]}Transform{children[Shape{appearanceAppearance{textureImageTexture{urlflagbase.gif}}geometryCylinder{radius2.0bottomTRUEtopTRUEheight1.0sideTRUE}}]}Transform{translation4280scale222children[Shape{appearanceAppearance{textureImageTexture{urlchina.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{urlbus_side.jpg}}geometryIndexedFaceSet{coordCoordinate{point[1.79090-7.67,1.790907.6904,1.79091.9827.6904,1.79093.9647.1949,1.79093.964-7.1745,1.79093.4685-7.67,-1.80150-7.67,-1.801507.6904,-1.80151.9827.6904,-1.80153.9647.1949,-1.80153.964-7.1745,-1.80153.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.00770660.017324,0.997410.017324,0.997410.49809,0.965490.97886,0.0396330.97886,0.00770660.85867,0.00770660.017324,0.997410.017324,0.997410.49809,0.965490.97886,0.0396330.97886,0.00770660.85867]}}}DEFfront01Shape{appearanceAppearance{materialUSELtGray_ColortextureImageTexture{urlbus_front.jpg}}geometryIndexedFaceSet{coordCoordinate{point[1.790907.6904,1.79091.9827.6904,1.79093.9647.1949,-1.801507.6904,-1.80151.9827.6904,-1.80153.9647.1949]}coordIndex[3,0,1,4,-1,4,1,2,5,-1]texCoordTextureCoordinate{point[0.936140.018577,0.936140.48085,0.936140.97202,0.0724810.018577,0.0724810.48085,0.0724810.97202]}}}DEFtop01Shape{appearanceAppearance{materialUSELtGray_Color}geometryIndexedFaceSet{coordCoordinate{point[1.79093.9647.1949,1.79093.964-7.1745,-1.80153.9647.1949,-1.80153.964-7.1745]}coordIndex[2,0,1,3,-1]}}DEFback01Shape{appearanceAppearance{materialUSELtGray_Color}geometryIndexedFaceSet{coordCoordinate{point[1.79090-7.67,1.79093.964-7.1745,1.79093.4685-7.67,-1.80150-7.67,-1.80153.964-7.1745,-1.80153.4685-7.67]}coordIndex[4,1,2,5,-1,5,2,0,3,-1]}}]translation0.005320-0.01021}2.5汽车截图:程序:#VRMLV2.0utf8Background{#空间背景中,空中无颜色,即黑色。topUrlcloud.jpg#顶部frontUrlcloud.jpg#前面backUrlcloud.jpg#后面leftUrlcloud.jpg#左面rightUrlcloud.jpg#右面bottomUrlwater.jpg#底部}DEFcarTransform{rotation0101.57children[Transform{translation003rotation1001.57childrenShape{appearanceAppearance{textureImageTexture{urltire.png}materialMaterial{diffuseColor.1.1.1}}geometryCylinder{radius1height.5}}}Transform{translation00-3rotation1001.57childrenShape{appearanceAppearance{textureImageTexture{urltire.png}materialMaterial{diffuseColor.1.1.1}}geometryCylinder{radius1height.5}}}Transform{translation1003rotation1001.57childrenShape{appearanceAppearance{textureImageTexture{urltire.png}mat

1 / 37
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功