VR虚拟现实VRML虚拟现实开发文档含源代码37.docx

上传人:b****6 文档编号:3225457 上传时间:2022-11-20 格式:DOCX 页数:78 大小:3.34MB
下载 相关 举报
VR虚拟现实VRML虚拟现实开发文档含源代码37.docx_第1页
第1页 / 共78页
VR虚拟现实VRML虚拟现实开发文档含源代码37.docx_第2页
第2页 / 共78页
VR虚拟现实VRML虚拟现实开发文档含源代码37.docx_第3页
第3页 / 共78页
VR虚拟现实VRML虚拟现实开发文档含源代码37.docx_第4页
第4页 / 共78页
VR虚拟现实VRML虚拟现实开发文档含源代码37.docx_第5页
第5页 / 共78页
点击查看更多>>
下载资源
资源描述

VR虚拟现实VRML虚拟现实开发文档含源代码37.docx

《VR虚拟现实VRML虚拟现实开发文档含源代码37.docx》由会员分享,可在线阅读,更多相关《VR虚拟现实VRML虚拟现实开发文档含源代码37.docx(78页珍藏版)》请在冰豆网上搜索。

VR虚拟现实VRML虚拟现实开发文档含源代码37.docx

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

虚拟现实开发文档

罗维03091350

1.功能概述

运用vrml语言构造了一个虚拟现实世界。

运动物体包括气球,火车,汽车,交通灯等,静止物体包括山脉,树林,房屋,人物,花草,电话亭,国旗,座椅,广告牌,雨伞等,另外还包含背景和声音。

2.使用说明

2.1广告牌

截图:

程序:

#VRMLV2.0utf8

Transform{

translation0.00.00.0#背景颜色

children[

Transform{

translation0.00.00

children[

#创建广告牌造型

Shape{

appearanceAppearance{

materialMaterial{

diffuseColor0.20.30.3

}

}

geometryBox{#广告牌

size126.50.2

}

}

]

}

Transform{

translation0.00.0-0.02

children[

Shape{

appearanceAppearance{

textureImageTexture{

url"advertisement.png"

}

materialMaterial{

diffuseColor0.00.00.0

}

}

geometryBox{

size115.60.4#广告屏幕

}

}

]

}

]

}

DEFlegTransform{#广告柱子

translation5-40.1

scale0.040.040.04

children[

Shape{#Shape模型节点

appearanceAppearance{

materialMaterial{#空间物体造型外观

diffuseColor0.20.30.3#一种材料的漫反射颜色

}

}

geometryCylinder{#柱体节点

radius2.0#圆柱体半径

height100.0#圆柱体高

topTRUE#圆柱体有顶

#bottomTRUE#圆柱体有底

bottomFALSE

sideTRUE#圆柱体有曲面

}

}

]

}

Transform{#椅子腿

translation-1000

childrenUSEleg

}

2.2热气球

截图:

程序:

#VRMLV2.0utf8

Group{

children[

Background{

skyColor[

0.20.50.6

]

}

#创建月球造型

Transform{

translation000.0

scale111

children[

Shape{#银白颜色

appearanceAppearance{

textureImageTexture{

url"balloon.png"

}

materialMaterial{#空间物体造型外观

diffuseColor0.50.50.7#一种材料的漫反射颜色

ambientIntensity0.4#多少环境光被该表面反射

specularColor0.80.80.9#物体镜面反射光线的颜色

shininess0.20#造型外观材料的亮度

}

}

geometrySphere{#球体

radius4

}

}

]

}

]

}

Transform{

translation0-40.0

scale10.60.6

children[

Shape{

appearanceAppearance{

textureImageTexture{

url"color.png"

}

materialMaterial{#空间物体造型外观

diffuseColor0.30.20.0#一种材料的漫反射颜色

ambientIntensity0.4#多少环境光被该表面反射

specularColor0.70.70.6#物体镜面反射光线的颜色

shininess0.2#造型外观材料的亮度

}

}

geometryCylinder{#潜艇舰桥(嘹望塔)

radius1.0

height3.0

sideTRUE

topTRUE

bottomTRUE

}

}

]

}

热气球运动程序:

#VRMLV2.0utf8

DEFfly1Transform{#引入月球造型

childrenInline{url"balloon.wrl"}

}

DEFTime1TimeSensor{#时间传感器

cycleInterval32

loopTRUE

}

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.6015

0020

-6.6015

-13.209

-2000

-13.20-9

-6.60-15

00-20

]

}

ROUTETime1.fraction_changedTOflyinter1.set_fraction

ROUTEflyinter1.value_changedTOfly1.set_translation

2.3国旗

截图:

程序:

#VRMLV2.0utf8

Group{

children[

Transform{

translation-22-322

scale0.10.10.1

children[

Transform{

children[

Shape{

appearanceAppearance{

textureImageTexture{

url"flag.gif"}}

geometryBox{

size270.127}

}

]

}

Transform{

translation0150

children[

Shape{

appearanceAppearance{

textureImageTexture{

url"flagbase.gif"

}}

geometryCylinder{

radius0.2

bottomTRUE

topTRUE

height30

sideTRUE}

}

]

}

Transform{

children[

Shape{

appearanceAppearance{

textureImageTexture{

url"flagbase.gif"

}}

geometryCylinder{

radius2.0

bottomTRUE

topTRUE

height1.0

sideTRUE}

}

]

}

Transform{

translation4280

scale222

children[

Shape{

appearanceAppearance{

textureImageTexture{

url"china.gif"}}

geometryBox{

size4.02.00.01}

}

]

}

]

}

]

}

Viewpoint{

orientation0101.2

position-15-225

}

2.4公共汽车

截图:

程序:

#VRMLV2.0utf8

DEFBusTransform{

children[

DEFbodyShape{

appearanceAppearance{

materialDEFLtGray_ColorMaterial{

ambientIntensity0.25

diffuseColor0.702130.702130.70213

}

textureImageTexture{

url"bus_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]

texCoordTextureCoord

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 小学教育 > 语文

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1