以下數據是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