实 验 报 告
班级: 数字媒体技术
实验名称:VRML 纹理变换与编组以及光源设置
实验目的:
1、理解贴图坐标变换
2、公告牌节点和开关选择节点的应用
3、设置光源
实验内容:
1、 给物体不同表面贴图
源代码:
#VRML V2.0 utf8
Shape {
appearance Appearance {
material Material {
}
texture ImageTexture {
url "2008.jpg"}
}
geometry IndexedFaceSet {
coord Coordinate {
point [
0 0 2,
2 0 2,
0 0 0,
2 0 0,
0 2 2,
2 2 2,
2 2 0,
0 2 0]}
coordIndex [
0,1,3,2,0,-1
4,5,6,7,4,-1
]
solid FALSE
texCoord TextureCoordinate {
point [
0 0,
1 0,
1 1,