Author Topic: POF Model Format Specifications  (Read 2426 times)

0 Members and 1 Guest are viewing this topic.

Offline blowfish

  • 211
  • Join the cult of KILL MY ROUTER!!!!!!!!!!1
POF Model Format Specifications
Is there anywhere I can find up-to-date documentation of the structure of POF files?  Does such documentation exist?

 

Offline Water

  • 210
Re: POF Model Format Specifications
While your waiting for an answer to that question.
Have a look here. It's a bit more work but it may have some useful bits.
http://alliance.cvs.sourceforge.net/alliance/pcs2/

 

Offline Kazan

  • PCS2 Wizard
  • 212
  • Soul lives in the Mountains
    • http://alliance.sourceforge.net
Re: POF Model Format Specifications
Why do you need to know?

the most "up to date" documentation is the FS2 Open Codebase and the PCS2 codebase
PCS2 2.0.3 | POF CS2 wiki page | Important PCS2 Threads | PCS2 Mantis

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

 

Offline blowfish

  • 211
  • Join the cult of KILL MY ROUTER!!!!!!!!!!1
Re: POF Model Format Specifications
Why do you need to know?

the most "up to date" documentation is the FS2 Open Codebase and the PCS2 codebase

I'm trying to create a basic texture-replacement app for Mac, so that I don't have to go to my old windoze computer every time I want to make a minor texture adjustment to a model.  I understand how to work with data, so I'm trying to figure out extract the texture information, and put everything back correctly into the POF when I'm done.  The FS2_Open source seems to be pretty helpful, after looking at it a bit more closely.

 

Offline Kazan

  • PCS2 Wizard
  • 212
  • Soul lives in the Mountains
    • http://alliance.sourceforge.net
Re: POF Model Format Specifications
you know PCS2 is written in wxWidgets so it would be relatively trivial to add mac into it's multiplatform support.. i just need to clean up it's posix-operating system handling.

biggest thing that needs to be done is add macros in for int transformation
PCS2 2.0.3 | POF CS2 wiki page | Important PCS2 Threads | PCS2 Mantis

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

 

Offline blowfish

  • 211
  • Join the cult of KILL MY ROUTER!!!!!!!!!!1
Re: POF Model Format Specifications
OK.  I figured out how a POF file is structured.  Just one thing: can I rely on the fact that the texture chunk will be the first one?

 

Offline Kazan

  • PCS2 Wizard
  • 212
  • Soul lives in the Mountains
    • http://alliance.sourceforge.net
Re: POF Model Format Specifications
generally yes... but... just scan for the chunk's signature... or better yet

use PCS2
PCS2 2.0.3 | POF CS2 wiki page | Important PCS2 Threads | PCS2 Mantis

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

 

Offline blowfish

  • 211
  • Join the cult of KILL MY ROUTER!!!!!!!!!!1
Re: POF Model Format Specifications
use PCS2

I was wondering if you were going to say that at some point...

EDIT: Anyway, I already have a system in place to go through the chunks until the texture chunk is found.

 

Offline blowfish

  • 211
  • Join the cult of KILL MY ROUTER!!!!!!!!!!1
Re: POF Model Format Specifications
Well, I got it to parse fine, and I can extract a list of textures regardless of where the texture chunk is.  But I can't even test my save code because the mutable data isn't working correctly :mad:

 

Offline Kazan

  • PCS2 Wizard
  • 212
  • Soul lives in the Mountains
    • http://alliance.sourceforge.net
Re: POF Model Format Specifications
use PCS2
PCS2 2.0.3 | POF CS2 wiki page | Important PCS2 Threads | PCS2 Mantis

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

 

Offline blowfish

  • 211
  • Join the cult of KILL MY ROUTER!!!!!!!!!!1
Re: POF Model Format Specifications
Fine :rolleyes:

 

Offline Goober5000

  • HLP Loremaster
  • 214
    • Goober5000 Productions
Re: POF Model Format Specifications
Dude, don't listen to Kazan.  He didn't listen to the people who said "use ModelView". :D

If you have an idea for a cool personal project, by all means go for it.  You learn best by doing.

  

Offline blowfish

  • 211
  • Join the cult of KILL MY ROUTER!!!!!!!!!!1
Re: POF Model Format Specifications
You learn best by doing.

True.  Even if I were to give up on this project now, I would have learned a huge amount about the structure of POF files.