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

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

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

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

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

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

虚拟现实开发文档

罗维03091350

1.功能概述

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

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

2.使用说明

广告牌

截图:

程序:

#VRMLutf8

Transform{

translation#背景颜色

children[

Transform{

translation0

children[

#创建广告牌造型

Shape{

appearanceAppearance{

materialMaterial{

diffuseColor

}

}

geometryBox{#广告牌

size12

}

}

]

}

Transform{

translation

children[

Shape{

appearanceAppearance{

textureImageTexture{

url""

}

materialMaterial{

diffuseColor

}

}

geometryBox{

size11#广告屏幕

}

}

]

}

]

}

DEFlegTransform{#广告柱子

translation5-4

scale

children[

Shape{#Shape模型节点

appearanceAppearance{

materialMaterial{#空间物体造型外观

diffuseColor#一种材料的漫反射颜色

}

}

geometryCylinder{#柱体节点

radius#圆柱体半径

height#圆柱体高

topTRUE#圆柱体有顶

#bottomTRUE#圆柱体有底

bottomFALSE

sideTRUE#圆柱体有曲面

}

}

]

}

Transform{#椅子腿

translation-1000

childrenUSEleg

}

热气球

截图:

程序:

#VRMLutf8

Group{

children[

Background{

skyColor[

]

}

#创建月球造型

Transform{

translation00

scale111

children[

Shape{#银白颜色

appearanceAppearance{

textureImageTexture{

url""

}

materialMaterial{#空间物体造型外观

diffuseColor#一种材料的漫反射颜色

ambientIntensity#多少环境光被该表面反射

specularColor#物体镜面反射光线的颜色

shininess#造型外观材料的亮度

}

}

geometrySphere{#球体

radius4

}

}

]

}

]

}

Transform{

translation0-4

scale1

children[

Shape{

appearanceAppearance{

textureImageTexture{

url""

}

materialMaterial{#空间物体造型外观

diffuseColor#一种材料的漫反射颜色

ambientIntensity#多少环境光被该表面反射

specularColor#物体镜面反射光线的颜色

shininess#造型外观材料的亮度

}

}

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

radius

height

sideTRUE

topTRUE

bottomTRUE

}

}

]

}

热气球运动程序:

#VRMLutf8

DEFfly1Transform{#引入月球造型

childrenInline{url""}

}

DEFTime1TimeSensor{#时间传感器

cycleInterval32

loopTRUE

}

DEFflyinter1PositionInterpolator{#移动位置节点

key[#相对时间的逻辑值

,,,,,,,,,,,

]

keyValue[#空间坐标的位置值与相对时间的逻辑值

00-20,

0-15,

0-9,

2000,

09,

015

0020

015

09

-2000

0-9

0-15

00-20

]

}

ROUTETO

ROUTETO

国旗

截图:

程序:

#VRMLutf8

Group{

children[

Transform{

translation-22-322

scale

children[

Transform{

children[

Shape{

appearanceAppearance{

textureImageTexture{

url""}}

geometryBox{

size2727}

}

]

}

Transform{

translation0150

children[

Shape{

appearanceAppearance{

textureImageTexture{

url""

}}

geometryCylinder{

radius

bottomTRUE

topTRUE

height30

sideTRUE}

}

]

}

Transform{

children[

Shape{

appearanceAppearance{

textureImageTexture{

url""

}}

geometryCylinder{

radius

bottomTRUE

topTRUE

height

sideTRUE}

}

]

}

Transform{

translation4280

scale222

children[

Shape{

appearanceAppearance{

textureImageTexture{

url""}}

geometryBox{

size}

}

]

}

]

}

]

}

Viewpoint{

orientation010

position-15-225

}

公共汽车

截图:

程序:

#VRMLutf8

DEFBusTransform{

children[

DEFbodyShape{

appearanceAppearance{

materialDEFLtGray_ColorMaterial{

ambientIntensity

diffuseColor

}

textureImageTexture{

url""

}

}

geometryIndexedFaceSet{

coordCoordinate{

point[0,

0,

0,

0,

]

}

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[,

]

}

}

}

DEFfront01Shape{

appearanceAppearance{

materialUSELtGray_Color

textureImageTexture{

url""

}

}

geometryIndexedFaceSet{

coordCoordinate{

point[0,

0,

]

}

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

5,-1]

texCoordTextureCoordinate{

point[,

]

}

}

}

DEFtop01Shape{

appearanceAppearance{

materialUSELtGray_Color

}

geometryIndexedFaceSet{

coordCoordinate{

point[,

]

}

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

}

}

DEFback01Shape{

appearanceAppearance{

materialUSELtGray_Color

}

geometryIndexedFaceSet{

coordCoordinate{

point[0,

0,

]

}

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

3,-1]

}

}

]

translation0

}

汽车

截图:

程序:

#VRMLutf8

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

topUrl""#顶部

frontUrl""#前面

backUrl""#后面

leftUrl""#左面

rightUrl""#右面

bottomUrl""#底部

}

DEFcarTransform{

rotation010

children[

Transform{

translation003

rotation100

childrenShape{

appearanceAppearance{

textureImageTexture{

url""

}

materialMaterial{

diffuseColor.1.1.1

}

}

geometryCylinder{

radius1

height.5}

}

}

Transform{

translation00-3

rotation100

childrenShape{

appearanceAppearance{

textureImageTexture{

url""

}

materialMaterial{

diffuseColor.1.1.1}

}

geometryCylinder{radius1height.5}

}

}

Transform{

translation1003

rotation100

childrenShape{

appearanceAppearance{

textureImageTexture{

url""

}

materialMaterial{

diffuseColor.1.1.1}

}

geometryCylinder{

radius1

height.5}

}

}

Transform{

translation100-3

rotation100

childrenShape{

appearanceAppearance{

textureImageTexture{

url""

}

materialMaterial{

diffuseColor.1.1.1}

}

geometryCylinder{

radius1

height.5}

}

}

#车轮

Transform{

translation620

childrenShape{

appearanceAppearance{

textureImageTexture{

url""

}

materialMaterial{

}

}

geometryBox{

size1638

}

}

}

Transform{

translation40

childrenShape{

appearanceAppearance{

textureImageTexture{

url""

}

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

rotation010

childrenShape{

appearanceAppearance{

textureImageTexture{

url""

}

materialMaterial{

}

}

geometryBox{

size38

}

}#车正面

}

Transform{

translation0

rotation010

childrenShape{

appearanceAppearance{

textureImageTexture{

url""

}

materialMaterial{

}

}

geometryBox{

size

}

}#车窗户

}

Transform{

translation0

rotation010

childrenShape{

appearanceAppearance{

textureImageTexture{

url""

}

materialMaterial{

}

}

geometryBox{

size

}

}#车窗户后面

}

Transform{

translation-7

rotation001

childrenShape{

appearanceAppearance{

textureImageTexture{

url""

}

materialMaterial{

}

}

geometryBox{

size13

}

}#车窗户侧面

}

Transform{

translation-7

rotation001

childrenShape{

appearanceAppearance{

textureImageTexture{

url""

}

materialMaterial{

}

}

geometryBox{

size13

}

}#车窗户侧面

}

椅子

截图:

程序:

#VRMLutf8

Transform{

translation

children[

Shape{

appearanceAppearance{

textureImageTexture{

url""

}

materialMaterial{

diffuseColor

}

}

geometryBox{

size11#椅子背

}

}

]

}

Transform{

translation0

rotation100

children[

Shape{

appearanceAppearance{

textureImageTexture{

url""

}

materialMaterial{

diffuseColor

}

}

geometryBox{

size11#椅子坐

}

}

]

}

DEFlegTransform{

translation#椅子腿

rotation000

children[

Shape{

appearanceAppearance{

textureImageTexture{

url""

}

materialMaterial{

diffuseColor

}

}

geometryCylinder{

radius#圆柱体半径

height#圆柱体高

topTRUE#圆柱体有顶

#bottomTRUE#圆柱体有底

bottomFALSE

sideTRUE#圆柱体有曲面

}

}

]

}

Transform{#椅子腿

translation00

childrenUSEleg

}

Transform{#椅子腿

translation005

childrenUSEleg

}

Transform{#椅子腿

translation05

childrenUSEleg

}

广告牌

截图:

程序:

#VRMLutf8

Transform{

translation0

scale555

children[

DEFside1Shape{

appearanceAppearance{

textureImageTexture{

url""

}

materialDEFBlue_ColorMaterial{

ambientIntensity

diffuseColor

}

}

geometryExtrusion{

creaseAngle

crossSection[,

]

orientation0010

scale11

solidFALSE

spine[00,

00]

}

}

]

}

Transform{

translation0

rotation010

children[

Shape{

appearanceAppearance{

textureImageTexture{

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

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

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

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