📄 square4.x
字号:
xof 0302txt 0064
Frame SQUARE_Root {
FrameTransformMatrix {
1.000000, 0.000000, 0.000000, 0.000000,
0.000000, 1.000000, 0.000000, 0.000000,
0.000000, 0.000000, 1.000000, 0.000000,
0.000000, 0.000000, 0.000000, 1.000000;;
}
Material GreenMat { // material #0
0.0;1.0;0.0;1.0;;
0.0;
0.0;0.0;0.0;;
0.0;0.0;0.0;;
TextureFilename{"wall.bmp";}
}
// square
Mesh Square {
// front face and back face
8; // number of vertices
1.0; 1.0; 0.0;, // vertice 0
-1.0; 1.0; 0.0;, // vertice 1
-1.0;-1.0; 0.0;, // vertice 2
1.0;-1.0; 0.0; // vertice 3
1.0; 1.0; 0.0;, // vertice 4
1.0;-1.0; 0.0;, // vertice 5
-1.0;-1.0; 0.0;, // vertice 6
-1.0; 1.0; 0.0;; // vertice 7
4; // number of triangles
3;0,1,2;, // triangle #1
3;0,2,3;, // triangle #2
3;4,5,6;, // triangle #3
3;4,6,7;; // triangle #4
MeshMaterialList {
1; // one material
4; // one face
0, // face #0 use material #0
0, // face #1 use material #0
0, // face #2 use material #0
0;; // face #3 use material #0
{GreenMat}
}
MeshTextureCoords {
8; // 4 texture coords
1.0; 1.0;, // coord 0
1.0; 0.0;, // coord 1
0.0; 0.0;, // coord 2
0.0; 1.0;; // coord 3
1.0; 1.0;, // coords 4
1.0;-1.0;, // coords 5
-1.0;-1.0;, // coords 6
-1.0; 1.0;; // coords 7
}
MeshNormals {
2; // 2 normals
0.0; 0.0; 1.0;, // normal #1
0.0; 0.0;-1.0;; // normal #2
4; // 4 faces
3;0,0,0;,
3;0,0,0;,
3;1,1,1;,
3;1,1,1;;
}
}
}
AnimationSet {
Animation {
AnimationKey {
4; // Position keys
5; // 5 keys
0;16;1.0,0.0,0.0,0.0,
0.0,1.0,0.0,0.0,
0.0,0.0,1.0,0.0,
0.1,0.0,0.0,1.0;;,
80;16;1.0,0.0,0.0,0.0,
0.0,1.0,0.0,0.0,
0.0,0.0,1.0,0.0,
0.2,0.0,0.0,1.0;;,
160;16;1.0,0.0,0.0,0.0,
0.0,1.0,0.0,0.0,
0.0,0.0,1.0,0.0,
0.3,0.0,0.0,1.0;;,
240;16;1.0,0.0,0.0,0.0,
0.0,1.0,0.0,0.0,
0.0,0.0,1.0,0.0,
0.2,0.0,0.0,1.0;;,
320;16;1.0,0.0,0.0,0.0,
0.0,1.0,0.0,0.0,
0.0,0.0,1.0,0.0,
0.1,0.0,0.0,1.0;;,
}
{SQUARE_Root}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -