以下数据是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
不用软件生成
所有跟帖:
•
那最后出来的还不是jpg格式吗
-最好的结果-
♀
(0 bytes)
()
12/11/2003 postreply
10:31:00
•
你总得把这些数据生成的3d作为一个对象返回,
-最好的结果-
♀
(20 bytes)
()
12/11/2003 postreply
10:34:00
•
我试一下,不过出来的不是jpg呀,是可以动的
-comingb@ck-
♀
(46 bytes)
()
12/11/2003 postreply
10:51:00
•
你是指要在Frame里直接画啊,那要用到Graphics的类
-最好的结果-
♀
(0 bytes)
()
12/11/2003 postreply
11:26:00