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

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

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

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

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

translation0.00.0-0.02

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{

Background{

skyColor[

0.20.50.6

]

#创建月球造型

Transform{

translation000.0

scale111

children[

Shape{#银白颜色

textureImageTexture{

url"

balloon.png"

materialMaterial{#空间物体造型外观

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

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

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

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

geometrySphere{#球体

radius4

]

]

translation0-40.0

scale10.60.6

Shape{

color.png"

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

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

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

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

radius1.0

height3.0

sideTRUE

topTRUE

bottomTRUE

热气球运动程序:

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国旗

截图:

translation-22-322

scale0.10.10.1

Transform{

appearanceAppearance{

textureImageTexture{

url"

flag.gif"

}}

geometryBox{

size270.127}

]

translation0150

flagbase.gif"

}}

geometryCylinder{

radius0.2

bottomTRUE

topTRUE

height30

sideTRUE}

Transform{

radius2.0

height1.0

translation4280

scale222

china.gif"

size4.02.00.01}

Viewpoint{

orientation0101.2

position-15-225

2.4公共汽车

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.00770660.85867]

DEFfront01Shape{

materialUSELtGray_Color

bus_front.jpg"

point[1.790907.6904,

-1.80153.9647.1949]

coordIndex[3,0,1,4,-1,4,1,2,

5,-1]

point[0.936140.018577,

0.936140.48085,

0.936140.97202,

0.0724810.018577,

0.0724810.48085,

0.0724810.97202]

DEFtop01Shape{

point[1.79093.9647.1949,

-1.80153.964-7.1745]

coordIndex[2,0,1,3,-1]

DEFback01Shape{

coordIndex[4,1,2,5,-1,5,2,0,

3,-1]

translation0.005320-0.01021

2.5汽车

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

topUrl"

cloud.jpg"

#顶部

frontUrl"

#前面

backUrl"

#后面

leftUrl"

#左面

rightUrl"

#右面

bottomUrl"

water.jpg"

#底部

 

}

DEFcarTransform{

rotation0101.57

children[

translation003

rotation1001.57

childrenShape{

appearanceAppearance{

textureImageTexture{

tire.png"

materialMaterial{

diffuseColor.1.1.1

geometryCylinder{

radius1

height.5}

translation00-3

diffuseColor.1.1.1}

geometryCylinder{radius1height.5}

translation1003

translation100-3

rotation100-1.57

#车轮

translation620

car_side.png"

materialMaterial{

geometryBox{

size1638

translation6.840

black.png"

materialMaterial{

size1437

#车身

translation-23-3

diffuseColor111}

geometrySphere{radius.5}

translation-233

diffuseColor111

#车灯

Transform{

translation022

rotation0101.571

car_front.png"

materialMaterial{

size0.0138

}#车正面

translation04.50.2

glass.png"

materialMaterial{

size0.011.56.5

}#车窗户

translation04.5-13.8

}#车窗户后面

translation3.554.5-7

rotation0011.571

size1.50.0113

}#车窗户侧面

translation-3.54.5-7

2.6椅子

#VRMLV2.0utf8

appearanceA

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

当前位置:首页 > 工程科技 > 电子电路

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

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