VRML参考节点.docx
- 文档编号:27017498
- 上传时间:2023-06-25
- 格式:DOCX
- 页数:24
- 大小:27.35KB
VRML参考节点.docx
《VRML参考节点.docx》由会员分享,可在线阅读,更多相关《VRML参考节点.docx(24页珍藏版)》请在冰豆网上搜索。
VRML参考节点
VRML节点
1.Anchor锚节点,是超级链接群节点,具有超级链接网络文件和站点功能。
Anchor锚节点的语法定义:
节点名域名和域值域值类型
Anchor{
ur1“”#exposeFieldMFString
children[]#esposeFieldMFNode
description“”#exposeFieldSFString
parameter[]#exposeFiledMFString
bboxCenter000#filedSFVec3f
bboxSize-1-1–1#filedSFVec3f
addChildren#eventInMFNode
removeChildren#eventInMFNode
}
2.Appearance外观属性节点,作为Shape节点指定材质和纹理,这一节点是通过对它的域的控制来实现的。
Appearance节点的语法定义:
Appearance{
materialNULL#exposedFieldSFNode外观的材料节点
textureNULL#exposedFieldSFNode纹理映像
textureTransformNULL#exposedFieldSFNode纹理坐标变换
}
3.AudioClip音响剪辑节点,不能单独使用,要和Sound声音节点使用。
AudioClip音响剪辑节点的语法定义:
AudioClip{
url[]#exposedFieldMFString
description“”#exposedFieldSFString
loopFALSE#exposedFieldSFBool
pitch1.0#exposedFieldSFFloat
startTime0.0#exposedFieldSFTime
stopTime0.0#exposedFieldSFTime
duration_changed#eventOutSFTime
isActive#eventOutSFBool
}
4.Background背景节点,是天空、大地及室内立体空间背景节点。
Background背景节点的语法定义:
Background{
skyColor[0.00.00.0]#exposedFieldMFColor
skyAngle[]#exposedFieldMFFloat
groundColor[0.00.00.0]#exposedFieldMFColor
groundAngle[]#exposedFieldMFFloat
frontUrl[]#exposedFieldMFString
backUrl[]#exposedFieldMFString
leftUrl[]#exposedFieldMFString
rightUrl[]#exposedFieldMFString
topUrl[]#exposedFieldMFString
bottomUrl[]#exposedFieldMFString
set_bind#eventInSFBool
isBound#eventOutSFBool
}
5.Billboard广告牌节点,是广告牌群节点。
Billboard广告牌节点的语法定义:
Billboard{
axisOfRotation010#exposedFieldSFVec3f
children[]#exposedFieldMFNode
bboxCenter000#fieldSFVec3f
bboxSize-1–1-1#fieldSFVec3f
addChildren#eventInMFNode
removeChildren#eventInMFNode
}
6.Box盒子节点,是基本几何模型节点。
Box盒子节点的语法定义:
Box{
size2.02.02.0#fieldSFVec3f
#定义了一个立方体的宽、高、深
}
7.Collision碰撞节点,是碰撞传感器节点。
Collision碰撞传感器节点的语法定义:
Collision{
children[]#exposedFieldMFNode
collideTRUE#exposedFieldSFBool
proxyNULL#fieldSFNode
bboxCenter0.00.00.0#fieldSFVec3f
bboxSize-1.0–1.0–1.0#fieldSFVec3f
collideTime#eventOutSFTime
addChildren#eventInMFNode
removeChildren#eventInMFNode
}
8.Color颜色节点。
Color颜色节点的语法定义:
Color{
color[]#exposedFieldMFColor
}
9.ColorInterpolator颜色插补器节点,是控制颜色变换的动态节点。
ColorInterpolator颜色插补器节点的语法定义:
ColorInterpolator{
key[]#exposedFieldMFFloat
keyValue[]#exposedFieldMFColor
set_fraction#eventInSFFloat
value_changed#eventOutSFColor
}
10.Cone圆锥体节点,是基本几何模型节点。
Cone圆锥体节点的语法定义:
Cone{
bottomRadius1.0#fieldSFFloat
height2.0#fieldSFFloat
sideTRUE#fieldSFBool
bottomTRUE#fieldSFBool
}
11.CoordinateInterpolator坐标插补器节点,是控制坐标变换的动态节点。
CoordinateInterpolator坐标插补器节点的语法定义:
CoordinateInterpolator{
key[]#exposedFieldMFFloat
keyValue[]#exposedFieldMFVec3f
set-fraction#eventInSFFloat
value-changed#eventOutMFVec3f
}
12.CylinderSensor圆柱检测器节点,是单轴旋转型传感器节点。
CylinderSensor圆柱检测器节点的语法定义:
CylinderSensor{
enabledTRUE#exposedFieldSFBool
autoOffsetTRUE#exposedFieldSFBool
offset0#exposedFieldSFFloat
maxAngle-1#exposedFieldSFFloat
minAngle0#exposedFieldSFFloat
diskAngle0.262#exposedFieldSFFloat
isActive#eventOutSFBool
trackPoint_changed#eventOutSFVec3f
rotation_changed#eventOutSFRotation
}
13.Cylinder圆柱体节点,是基本几何模型节点。
Cylinder圆柱体节点的语法定义:
Cylinder{
radius1.0#fieldSFFloat圆柱体的半径
height2.0#fieldSFFloat圆柱体的高
topTRUE#fieldSFBool圆柱体的顶部
bottomTRUE#fieldSFBool圆柱体的底部
sideTRUE#fieldSFBool圆柱体的曲面
}
14.DirectionalLight定向光源节点,是VRML场景效果节点。
DirectionalLight定向光源节点的语法定义:
DirectionalLight{
ambientIntensity0.0#exposedFieldSFFloat
direction00-1#exposedFieldSFVec3f
color1.01.01.0#exposedFieldSFColor
intensity1.0#exposedFieldSFFloat
onTRUE#exposedFieldSFBool
}
15.ElvationGrid海拔栅格节点,是创建复杂立体空间造型节点。
ElevationGrid海拔栅格节点的语法定义:
ElevationGrid{
xDimension0#fieldSFInt32
xSpacing0.0#fieldSFFlost
zDimension0#fieldSFInt32
zSpacing0.0#fieldSFFloat
height[]#fieldMFFloat
colorNULL#exposedFieldSFNode
ColorPerVertexTRUE#fieldSFBool
normalNULL#exposedFieldSFNode
normalPerVertexTRUE#fieldSFBool
texCoordNULL#exposedFieldSFNode
ccwTRUE#fieldSFBool
solidTRUE#fieldSFBool
creaseAngle0.0#fieldSFFloat
set_height#eventInMFFloat
}
16.EXTERNPROTO创建用户外部定义的新节点。
EXTERNPROTO创建用户外部定义的新节点的语法定义:
关键字外部新节点名
EXTERNPROTOnodename[
#Andanynumberof:
以下域或事件由用户定义任意多个
域或事件域值类型域或事件名
fieldfieldTypeNamefieldName
exposedFieldfieldTypeNamefieldName
eventIneventInTypeNameeventInName
eventOuteventOutTypeNameeventOutName
]“VRML外部文件名#某新节点名”或urlor[urlList]
17.Extrusion挤出造型节点,是VRML中最重要、最有用的节点。
Extrusion挤出造型节点的语法定义:
Extrusion{
crossSection[#fieldMFVec2f
1.01.0,1.0-1.0
-1.0-1.0,-1.01.0
1.01.0
]
spine[#fieldMFVec3f
0.00.00.0,
0.01.0.0.0
]
scale1.01.0#fieldMFVec2f
orientation0.00.01.00.0#fieldMFRotation
beginCapTRUE#fieldSFBool
endCapTRUE#fieldSFBool
ccwTRUE#fieldSFBool
solidTRUE#fieldSFBool
convexTRUE#fieldSFBool
creaseAngle0.0#fieldSFFloat
set_spine#eventInMFVec3f
set_crossSection#eventInMFVec2f
set_scale#eventInMFVec2f
set_orientation#eventInMFRotation
}
18.Fog雾节点,用于空间大气场景的一种自然现象的描绘。
Fog雾化节点的语法定义:
Fog{
color1.01.01.0#exposedFiledSFColor
fogType“LINEAR”#exposedFiledSFFloat
visibilityRange0.0#exposedFiledSFString
set_bind#eventInSFBool
isBound#eventOutSFBool
}
19.Group编组节点,是基本型群节点,可以组合基本几何造型和复杂造型。
Group编组节点的语法定义:
Group{
children[]#exposedFieldMFNode
bboxCenter0.0.0.0.0.0#fieldSFVec3f
bboxSize-1.0-1.0-1.0#fieldSFVec3f
addChildren#eventInMFNode
removeChildren#eventOutMFNode
}
20.ImageTexture图像纹理节点,是VRML立体空间造型外观效果节点。
ImageTexture图像纹理节点的语法定义:
节点名域名和域值域值类型
ImageTexture{
url[]#exposeFieldMFString
repeatSTRUE#fieldSFBool
repeaTTRUE#fieldSFBool
}
21.IndexedLineSet“线”节点,是VRML复杂造型节点。
IndexedLineSet线节点的语法定义:
IndexedLineSet{
coordNULL#exposedFieldSFNode
coordIndex[]#fieldMFInt32
colorNULL#exposedFieldSFNode
colorIndex[]#fieldMFInt32
colorPerVertexTURE#fieldSFBool
set_coordIndex#eventInMFInt32
set_colorIndex#eventInMFInt32
}
22.IndexFaceSet“面”节点,属于复杂造型节点范畴。
IndexedFaceSet面节点的语法定义:
IndexedFaceSet{
coordNULL#exposedFieldSFNode
coordIndex[]#fieldMFInt32
texCoordNULL#exposedFieldSFNode
texCoordIndex[]#fieldMFInt32
colorNULL#exposedFieldSFNode
colorIndex[]#fieldMFInt32
colorPerVertexTRUE#fieldSFBool
normalNULL#exposedFieldSFNode
normalIndex[]#fieldMFInt32
normalPerVertexTRUE#fieldSFBool
ccwTRUE#fieldSFBool
convexTRUE#fieldSFBool
solidTRUE#fieldSFBool
creaseAngle0.0#fieldSFFloat
set_coordIndex#eventInMFInt32
set_texCoordIndex#eventInMFInt32
set_colorIndex#eventInMFInt32
set_normalIndex#eventInMFInt32
}
23.Inline内联节点,是引入型群节点。
Inline内联节点的语法定义:
Inline{
url“”#exposedFieldMFString
bboxCenter000#fieldSFVec3f
bboxSize-1–1–1#fieldSFVec3f
}
24.LOD细节层次节点,是分级型群节点。
LOD细节层次节点的语法定义:
LOD{
level[]#exposedFieldMFNode
center000#fieldSFVec3f
range[]#fieldMFFloat
}
25.Material材料节点,作为Shape模型节点的子节点。
Material材料节点的语法定义:
Material{
diffuseColor0.80.80.8#exposedFieldSFColor材料的漫反射颜色
ambientIntensify0.2#exposedFieldSFColor有多少环境光被该表面反射
specularColor000#exposedFieldSFColor物体镜面反射光线的颜色
emissiveColor000#exposedFieldSFColor发光物体产生的光的颜色
shininess0.2#exposedFieldSFFloat造型外观材料的亮度
transparency0#exposedFieldSFFloat物体的透明度
}
26.MovieTexture影像文件节点,是VRML的场景效果节点。
MovieTexture影像文件节点的语法定义:
MovieTexture{
url[]#exposedFieldMFString
loopFALSE#exposedFieldSFBool
speed1.0#exposedFieldSFFloat
startTime0#exposedFieldSFTime
stopTime0#exposedFieldSFTime
repeatSTURE#fieldSFBool
repeatTTURE#fieldSFBool
duration_changed#eventOutSFTime
isActive#eventOutSFBool
}
27.NavigationInfor导航信息节点,是控制浏览者功能的节点。
NavigationInfo导航信息节点的语法定义:
节点名域和域值域值类型
NavigationInfo{
avatarSize[0.25,1.6,0.75]#exposedFieldMFFLoat
headlightTRUE#exposedFieldSFBlool
type[“WALK”,“ANY”]#exposedFieldMFString
speed1.0#exposedFieldSFFloat
visibilityLimit0.0#exposedFieldSFFloat
set_bind#eventInSFBool
isBound#eventOutSFBool
}
28.Normal法向量节点。
Normal法向量节点的语法定义:
Normal{
vector[]#exposedFieldMFFloat
}
29.NormalInterpolator法线插补器节点,是控制向量变换的动态节点。
NormalInterpolator法线插补器节点的语法定义:
NormalInterpolator{
key[]#exposedFieldMFFloat
keyValue[]#exposedFieldMFVec3f
set-fraction#eventInSFFloat
value-changed#eventOutMFVec3f
}
30.OrientationInterpolator朝向插补器节点,是控制方位变换的动态节点。
OrientationInterpolator朝向插补器节点的语法定义:
OrientationInterpolator{
key[]#exposedFieldMFFloat
keyValue[]#exposedFieldMFVec3f
set-fraction#eventInSFFloat
value-changed#eventOutMFVec3f
}
31.PlaneSensor平面检测器节点,是平面移动型传感器节点。
PlaneSensor平面检测器节点的语法定义:
PlaneSensor{
enabledTRUE#exposedFieldSFBool
autoOffsetTRUE#exposedFieldSFBool
offset000#exposedFieldSFVec3f
maxPosition-1–1#exposedFieldSFVec2f
minPosition00#exposedFieldSFVec2f
isActive#eventOutSFBool
trackPoint_changed#eventOutSFVec3f
translation_changed#eventOutSFVec3f
}
32.PointLight点光源节点,是VRML场景效果节点。
PointLigh
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- VRML 参考 节点