Author Topic: PCS- COB Reading Capabilities Update  (Read 2483 times)

0 Members and 1 Guest are viewing this topic.

Offline Kazan

  • PCS2 Wizard
  • 212
  • Soul lives in the Mountains
    • http://alliance.sourceforge.net
PCS- COB Reading Capabilities Update
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?
PCS2 2.0.3 | POF CS2 wiki page | Important PCS2 Threads | PCS2 Mantis

"The Mountains are calling, and I must go" - John Muir

 

Offline Mad Bomber

  • Booooom
  • 210
PCS- COB Reading Capabilities Update
Hooray!!  
"What the hell!? I've got a Snuffleupagus on my scanners! The Snuffleupagus is active!"

 
PCS- COB Reading Capabilities Update
 
Quote
Originally posted by Mad Bomber:
Hooray!!  


 

Guardian

  • Guest
PCS- COB Reading Capabilities Update
I am sure that all that is a great thing.

I am a little dumb to it all  

Congrats and thanks for you help in the community.  

------------------
TCA-Guardian,
WITHOUT REMORSE
Nerve Center
Bandits Incoming!
   [email protected]        
ICQ# = 70273556

 

Offline NeoHunter

  • Primo Novus Venator
  • 28
PCS- COB Reading Capabilities Update
Was that English?

------------------
GTD Excellence
NeoHunter<            [b][email protected][/b]                           >                  
Available campaign: NTF Saga Episode 1: 67th Desperados
Upcoming sequel: NTF Saga Episode 2: Fury Storm

 

Offline Bobboau

  • Just a MODern kinda guy
    Just MODerately cool
    And MODest too
  • 213
PCS- COB Reading Capabilities Update
no it was c++

------------------
Bobboau, bringing you products that work.............. in theory
Bobboau, bringing you products that work... in theory
learn to use PCS
creator of the ProXimus Procedural Texture and Effect Generator
My latest build of PCS2, get it while it's hot!
PCS 2.0.3


DEUTERONOMY 22:11
Thou shalt not wear a garment of diverse sorts, [as] of woollen and linen together

 

Offline Bobboau

  • Just a MODern kinda guy
    Just MODerately cool
    And MODest too
  • 213
PCS- COB Reading Capabilities Update
so what is the latest news on PCS

------------------
Bobboau, bringing you products that work.............. in theory
Bobboau, bringing you products that work... in theory
learn to use PCS
creator of the ProXimus Procedural Texture and Effect Generator
My latest build of PCS2, get it while it's hot!
PCS 2.0.3


DEUTERONOMY 22:11
Thou shalt not wear a garment of diverse sorts, [as] of woollen and linen together

 

Offline Kazan

  • PCS2 Wizard
  • 212
  • Soul lives in the Mountains
    • http://alliance.sourceforge.net
PCS- COB Reading Capabilities Update
im working on the COB and BSP classes

------------------
Did you say you wanted your head used as a soccer ball?
PCS2 2.0.3 | POF CS2 wiki page | Important PCS2 Threads | PCS2 Mantis

"The Mountains are calling, and I must go" - John Muir