Hard Light Productions Forums

General FreeSpace => FreeSpace Discussion => Topic started by: Kazan on February 05, 2001, 09:47:00 pm

Title: PCS- COB Reading Capabilities Update
Post 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?
Title: PCS- COB Reading Capabilities Update
Post by: Mad Bomber on February 05, 2001, 09:49:00 pm
Hooray!!  (http://dynamic.gamespy.com/~freespace/ubb/noncgi/biggrin.gif)
Title: PCS- COB Reading Capabilities Update
Post by: Midnight Mercenary on February 05, 2001, 10:38:00 pm
 
Quote
Originally posted by Mad Bomber:
Hooray!!   (http://dynamic.gamespy.com/~freespace/ubb/noncgi/biggrin.gif)

Title: PCS- COB Reading Capabilities Update
Post by: Guardian on February 06, 2001, 05:01:00 pm
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
Title: PCS- COB Reading Capabilities Update
Post by: NeoHunter on February 15, 2001, 02:03:00 am
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
Title: PCS- COB Reading Capabilities Update
Post by: Bobboau on February 15, 2001, 10:05:00 pm
no it was c++

------------------
Bobboau, bringing you products that work.............. in theory
Title: PCS- COB Reading Capabilities Update
Post by: Bobboau on February 23, 2001, 03:29:00 am
so what is the latest news on PCS

------------------
Bobboau, bringing you products that work.............. in theory
Title: PCS- COB Reading Capabilities Update
Post by: Kazan on February 23, 2001, 06:09:00 am
im working on the COB and BSP classes

------------------
Did you say you wanted your head used as a soccer ball?