不用软件生成

本帖于 2004-02-06 15:24:48 时间, 由普通用户 old-cotton 编辑

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

所有跟帖: 

那最后出来的还不是jpg格式吗 -最好的结果- 给 最好的结果 发送悄悄话 (0 bytes) () 12/11/2003 postreply 10:31:00

你总得把这些数据生成的3d作为一个对象返回, -最好的结果- 给 最好的结果 发送悄悄话 (20 bytes) () 12/11/2003 postreply 10:34:00

我试一下,不过出来的不是jpg呀,是可以动的 -comingb@ck- 给 comingb@ck 发送悄悄话 (46 bytes) () 12/11/2003 postreply 10:51:00

你是指要在Frame里直接画啊,那要用到Graphics的类 -最好的结果- 给 最好的结果 发送悄悄话 (0 bytes) () 12/11/2003 postreply 11:26:00

请您先登陆,再发跟帖!