Hard Light Productions Forums
General FreeSpace => FreeSpace Discussion => Topic started by: Kazan on February 05, 2001, 09:47:00 pm
-
I can read cobs into memory now [well the 4 important chunks, the only ones i need to worry about: Grou [Groups], Lght [Lights], Mat1 [Materials- ie textures], PolH [Polygon data]]
Here just like the POF class the first thing i made it print out was a file statistic [which i may make the GUI able to do this - just required a GetOpenFileName call and passing opening the file and passing it to the proper function]
here is a sample of the output
-------------------------------------
@Texture[0]: D:\Program Files\Truespace4\TEXTURES\capital01-02a.bmp
+ParentID: 14988532, ChunkID: 14878004
+U_reps: 4, V_reps: 2
@Texture[1]: D:\Program Files\Truespace4\TEXTURES\capital01-04a.bmp
+ParentID: 14988532, ChunkID: 14881028
+U_reps: 1, V_reps: 4
@Light[0]: LocLight
+ParentID: 14988308, ChunkID: 14882404
@PolyModel[0]: Cylinder #Faces: 744
+ParentID: 14988308, ChunkID: 14988532
+NumVerticies: 384
+NumUVVerts: 723
@Group[0]: StarBase
+ParentID: 0, ChunkID: 14988308
---------------------------------------
We can learn alot from this, we notice that the Material's ParentID matches the Polymodel's ChunkID and the PolyModel's and Light's ParentID match the Group's ChunkID this tell me how the chunks are linked and is one giant step tword conversion - i know how to determine the heirarchy
------------------
Did you say you wanted your head used as a soccer ball?
-
Hooray!! (http://dynamic.gamespy.com/~freespace/ubb/noncgi/biggrin.gif)
-
Originally posted by Mad Bomber:
Hooray!! (http://dynamic.gamespy.com/~freespace/ubb/noncgi/biggrin.gif)
-
I am sure that all that is a great thing.
I am a little dumb to it all (http://dynamic.gamespy.com/~freespace/ubb/noncgi/tongue.gif)
Congrats and thanks for you help in the community. (http://dynamic.gamespy.com/~freespace/ubb/noncgi/biggrin.gif)
------------------
TCA ("http://el84.addr.com/tca/index.shtml")-Guardian,
WITHOUT REMORSE ("http://freespace.volitionwatch.com/bandits/Without")
Nerve Center ("http://pub34.ezboard.com/bnervecenter")
Bandits Incoming! ("http://freespace.volitionwatch.com/bandits/")
[email protected]
ICQ# = 70273556
-
Was that English? (http://dynamic.gamespy.com/~freespace/ubb/noncgi/biggrin.gif)
------------------
GTD Excellence ("http://freespace.volitionwatch.com/excellence")
NeoHunter< [b][email protected][/b] >
Available campaign: NTF Saga Episode 1: 67th Desperados
Upcoming sequel: NTF Saga Episode 2: Fury Storm
-
no it was c++
------------------
Bobboau, bringing you products that work.............. in theory
-
so what is the latest news on PCS
------------------
Bobboau, bringing you products that work.............. in theory
-
im working on the COB and BSP classes
------------------
Did you say you wanted your head used as a soccer ball?