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

上传人:b****7 文档编号:23636553 上传时间:2023-05-19 格式:DOCX 页数:86 大小:3.36MB
下载 相关 举报
VRML虚拟现实开发文档含源代码.docx_第1页
第1页 / 共86页
VRML虚拟现实开发文档含源代码.docx_第2页
第2页 / 共86页
VRML虚拟现实开发文档含源代码.docx_第3页
第3页 / 共86页
VRML虚拟现实开发文档含源代码.docx_第4页
第4页 / 共86页
VRML虚拟现实开发文档含源代码.docx_第5页
第5页 / 共86页
点击查看更多>>
下载资源
资源描述

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

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

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

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

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{#广告柱子

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{

appearanceAppearance{

textureImageTexture{

url"chair_wood.jpg"

}

materialMaterial{

diffuseColor0.20.30.4

}

}

geometryBox{

size115.60.3#椅子背

}

}

]

}

 

Transform{

translation0-2.82.8

rotation1001.571

children[

Shape{

appearanceAppearance{

textureImageTexture{

url"chair_wood.jpg"

}

materialMaterial{

diffuseColor0.60.50.2

}

}

geometryBox{

size115.60.3#椅子坐

}

}

]

}

 

DEFlegTransform{

translation5.3-5.50.3#椅子腿

rotation0001.571

children[

Shape{

appearanceAppearance{

textureImageTexture{

url"chair_wood.jpg"

}

materialMaterial{

diffuseColor0.60.50.2

}

}

geometryCylinder{

radius0.2#圆柱体半径

height5.0#圆柱体高

topTRUE#圆柱体有顶

#bottomTRUE#圆柱体有底

bottomFALSE

sideTRUE#圆柱体有曲面

}

}

]

}

 

Transform{#椅子腿

translation-10.500

childrenUSEleg

}

Transform{#椅子腿

translation005

childrenUSEleg

}

Transform{#椅子腿

translation-10.505

childrenUSEleg

}

 

2.7广告牌

截图:

程序:

#VRMLV2.0utf8

Transform{

translation0.00.00

scale555

children[

DEFside1Shape{

appearanceAppearance{

textureImageTexture{

url"flag_top.png"

}

materialDEFBlue_ColorMaterial{

ambientIntensity0.197097

diffuseColor0.10.20.3

}

}

geometryExtrusion{

creaseAngle0.541052

crossSection[1.003460.254188,

1.118210.209842,

1.199640.115829,

1.22904-0.006242,

1.19964-0.128314,

1.11821-0.222327,

1.00346-0.266673,

1.003460.254188]

orientation0010

scale11

solidFALSE

spine[-0.19756200,

-0.25399300]

}

}

]

}

 

Transform{

translation-1.13.30

rotation0101.571

children[

Shape{

appearanceAppearance{

textureImageTexture{

url"flag_middle.png"

}

materialMaterial{

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

当前位置:首页 > 小学教育 > 学科竞赛

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

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