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

上传人:b****4 文档编号:13965188 上传时间:2023-06-19 格式:DOCX 页数:89 大小:3.96MB
下载 相关 举报
VRML虚拟现实开发文档含源代码.docx_第1页
第1页 / 共89页
VRML虚拟现实开发文档含源代码.docx_第2页
第2页 / 共89页
VRML虚拟现实开发文档含源代码.docx_第3页
第3页 / 共89页
VRML虚拟现实开发文档含源代码.docx_第4页
第4页 / 共89页
VRML虚拟现实开发文档含源代码.docx_第5页
第5页 / 共89页
VRML虚拟现实开发文档含源代码.docx_第6页
第6页 / 共89页
VRML虚拟现实开发文档含源代码.docx_第7页
第7页 / 共89页
VRML虚拟现实开发文档含源代码.docx_第8页
第8页 / 共89页
VRML虚拟现实开发文档含源代码.docx_第9页
第9页 / 共89页
VRML虚拟现实开发文档含源代码.docx_第10页
第10页 / 共89页
VRML虚拟现实开发文档含源代码.docx_第11页
第11页 / 共89页
VRML虚拟现实开发文档含源代码.docx_第12页
第12页 / 共89页
VRML虚拟现实开发文档含源代码.docx_第13页
第13页 / 共89页
VRML虚拟现实开发文档含源代码.docx_第14页
第14页 / 共89页
VRML虚拟现实开发文档含源代码.docx_第15页
第15页 / 共89页
VRML虚拟现实开发文档含源代码.docx_第16页
第16页 / 共89页
VRML虚拟现实开发文档含源代码.docx_第17页
第17页 / 共89页
VRML虚拟现实开发文档含源代码.docx_第18页
第18页 / 共89页
VRML虚拟现实开发文档含源代码.docx_第19页
第19页 / 共89页
VRML虚拟现实开发文档含源代码.docx_第20页
第20页 / 共89页
亲,该文档总共89页,到这儿已超出免费预览范围,如果喜欢就下载吧!
下载资源
资源描述

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

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

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

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

虚拟现实开发文档

罗维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]

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_Color

textureImageTexture{

url"bus_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.0utf8

Background{#空间背景中,空中无颜色,即黑色。

topUrl"cloud.jpg"#顶部

frontUrl"cloud.jpg"#前面

backUrl"cloud.jpg"#后面

leftUrl"cloud.jpg"#左面

rightUrl"cloud.jpg"#右面

bottomUrl"water.jpg"#底部

}

DEFcarTransform{

rotation0101.57

children[

Transform{

translation003

rotation1001.57

childrenShape{

appearanceAppearance{

textureImageTexture{

url"tire.png"

}

materialMaterial{

diffuseColor.1.1.1

}

}

geometryCylinder{

radius1

height.5}

}

}

Transform{

translation00-3

rotation1001.57

childrenShape{

appearanceAppearance{

textureImageTexture{

url"tire.png"

}

materialMaterial{

diffuseColor.1.1.1}

}

geometryCylinder{radius1height.5}

}

}

Transform{

translation1003

rotation1001.57

childrenShape{

appearanceAppearance{

textureImageTexture{

url"tire.png"

}

materialMaterial{

diffuseColor.1.1.1}

}

geometryCylinder{

radius1

height.5}

}

}

Transform{

translation100-3

rotation100-1.57

childrenShape{

appearanceAppearance{

textureImageTexture{

url"tire.png"

}

materialMaterial{

diffuseColor.1.1.1}

}

geometryCylinder{

radius1

height.5}

}

}

#车轮

Transform{

translation620

childrenShape{

appearanceAppearance{

textureImageTexture{

url"car_side.png"

}

materialMaterial{

}

}

geometryBox{

size1638

}

}

}

Transform{

translation6.840

childrenShape{

appearanceAppearance{

textureImageTexture{

url"black.png"

}

materialMaterial{

}

}

geometryBox{

size1437

}

}

}

#车身

Transform{

translation-23-3

childrenShape{

appearanceAppearance{

materialMaterial{

diffuseColor111}

}

geometrySphere{radius.5}

}

}

Transform{

translation-233

childrenShape{

appearanceAppearance{

materialMaterial{

diffuseColor111

}

}

geometrySphere{radius.5}

}

}

]

}

#车灯

Transform{

translation022

rotation0101.571

childrenShape{

appearanceAppearance{

textureImageTexture{

url"car_front.png"

}

materialMaterial{

}

}

geometryBox{

size0.0138

}

}#车正面

}

Transform{

translation04.50.2

rotation0101.571

childrenShape{

appearanceAppearance{

textureImageTexture{

url"glass.png"

}

materialMaterial{

}

}

geometryBox{

size0.011.56.5

}

}#车窗户

}

Transform{

translation04.5-13.8

rotation0101.571

childrenShape{

appearanceAppearance{

textureImageTexture{

url"glass.png"

}

materialMaterial{

}

}

geometryBox{

size0.011.56.5

}

}#车窗户后面

}

Transform{

translation3.554.5-7

rotation0011.571

childrenShape{

appearanceAppearance{

textureImageTexture{

url"glass.png"

}

materialMaterial{

}

}

geometryBox{

size1.50.0113

}

}#车窗户侧面

}

Transform{

translation-3.54.5-7

rotation0011.571

childrenShape{

appearanceAppearance{

textureImageTexture{

url"glass.png"

}

materialMaterial{

}

}

geometryBox{

size1.50.0113

}

}#车窗户侧面

}

2.6椅子

截图:

程序:

#VRMLV2.0utf8

Transform{

translation0.00.0-0.02

children[

Shape{

appearanceAppea

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

当前位置:首页 > 工程科技 > 能源化工

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2