VRML虚拟现实开发文档含源代码Word文件下载.docx
《VRML虚拟现实开发文档含源代码Word文件下载.docx》由会员分享,可在线阅读,更多相关《VRML虚拟现实开发文档含源代码Word文件下载.docx(78页珍藏版)》请在冰豆网上搜索。
![VRML虚拟现实开发文档含源代码Word文件下载.docx](https://file1.bdocx.com/fileroot1/2022-11/28/c0e6b745-1afb-4514-a3c5-14a56b4a7f7f/c0e6b745-1afb-4514-a3c5-14a56b4a7f7f1.gif)
}
translation
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{
Background{
skyColor[
]
#创建月球造型
Transform{
translation00
scale111
children[
Shape{#银白颜色
textureImageTexture{
url"
materialMaterial{#空间物体造型外观
diffuseColor#一种材料的漫反射颜色
ambientIntensity#多少环境光被该表面反射
specularColor#物体镜面反射光线的颜色
shininess#造型外观材料的亮度
geometrySphere{#球体
radius4
]
]
translation0-4
scale1
Shape{
geometryCylinder{#潜艇舰桥(嘹望塔)
radius
height
sideTRUE
topTRUE
bottomTRUE
热气球运动程序:
DEFfly1Transform{#引入月球造型
childrenInline{url"
DEFTime1TimeSensor{#时间传感器
cycleInterval32
loopTRUE
DEFflyinter1PositionInterpolator{#移动位置节点
key[#相对时间的逻辑值
,,,,,,,,,,,
keyValue[#空间坐标的位置值与相对时间的逻辑值
00-20,
0-15,
0-9,
2000,
09,
015
0020
09
-2000
0-9
0-15
00-20
ROUTETO
ROUTETO
国旗
截图:
translation-22-322
scale
Transform{
appearanceAppearance{
textureImageTexture{
url"
}}
geometryBox{
size2727}
]
translation0150
}}
geometryCylinder{
radius
bottomTRUE
topTRUE
height30
sideTRUE}
Transform{
height
translation4280
scale222
size}
Viewpoint{
orientation010
position-15-225
公共汽车
DEFBusTransform{
children[
DEFbodyShape{
appearanceAppearance{
materialDEFLtGray_ColorMaterial{
ambientIntensity
diffuseColor
textureImageTexture{
url"
geometryIndexedFaceSet{
coordCoordinate{
point[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{
materialUSELtGray_Color
coordIndex[3,0,1,4,-1,4,1,2,
5,-1]
DEFtop01Shape{
coordIndex[2,0,1,3,-1]
DEFback01Shape{
coordIndex[4,1,2,5,-1,5,2,0,
3,-1]
translation0
汽车
Background{#空间背景中,空中无颜色,即黑色。
topUrl"
#顶部
frontUrl"
#前面
backUrl"
#后面
leftUrl"
#左面
rightUrl"
#右面
bottomUrl"
#底部
}
DEFcarTransform{
rotation010
children[
translation003
rotation100
childrenShape{
appearanceAppearance{
textureImageTexture{
materialMaterial{
diffuseColor.1.1.1
geometryCylinder{
radius1
height.5}
translation00-3
diffuseColor.1.1.1}
geometryCylinder{radius1height.5}
translation1003
translation100-3
#车轮
translation620
materialMaterial{
geometryBox{
size1638
translation40
materialMaterial{
size1437
#车身
translation-23-3
diffuseColor111}
geometrySphere{radius.5}
translation-233
diffuseColor111
#车灯
Transform{
translation022
materialMaterial{
size38
}#车正面
translation0
materialMaterial{
size
}#车窗户
}#车窗户后面
translation-7
rotation001
size13
}#车窗户侧面
椅子
#VRMLutf8
appearanceAppearance{
}
size11#椅子背
translation0
rotation100
}
size11#椅子坐
DEFlegTransform{
translation#椅子腿
rotation000
geometryCylinder{
translation00
translation005
translation05
广告牌
程序:
translation0
scale555
children[
DEFside1Shape{
appearanceAppearance{
materialDEFBlue_ColorMaterial{
ambientIntensity
diffuseColor
}
}
geometryExtrusion{
creaseAngle
crossSection[,
orientation0010
scale11
solidFALSE
spine[00,
00]
}
rotation010
textureImageTexture{