不用软件生成

来源: 2003-12-11 10:25:00 [旧帖] [给我悄悄话] 本文已被阅读:

以下数据是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




--文学城www.wenxuecity.com--