不用软件生成
以下数据是3D图象的点,线,颜色,光等的数据。
load这些数据,变成triangle arrays,
#title
board
#coordinates
-2.0 0.0 -2.0
2.0 0.0 -2.0
-2.0 0.0 2.0
-2.0 0.0 2.0
2.0 0.0 -2.0
2.0 0.0 2.0
#normals
0.0 1.0 0.0
0.0 1.0 0.0
0.0 1.0 0.0
0.0 1.0 0.0
0.0 1.0 0.0
0.0 1.0 0.0
#colours
1.0 0.0 0.0
0.0 0.0 0.0
0.0 0.0 1.0
0.0 0.0 1.0
0.0 0.0 0.0
1.0 0.0 0.0
#texcoords
0.0 0.0
1.0 0.0
0.0 1.0
0.0 1.0
1.0 0.0
1.0 1.0
#texture
brick.jpg