Act format

Programming Reality Factory and Genesis3D.
Post Reply
Jay
RF Dev Team
Posts: 1232
Joined: Fri Jul 08, 2005 1:56 pm
Location: Germany

Act format

Post by Jay »

Is there a documentation about the Genesis3d Act format somewhere? For writing converters or programs that can read and write an act file? If not, could someone explain it here?
Everyone can see the difficult, but only the wise can see the simple.
-----
User avatar
bernie
RF Moderator
Posts: 1249
Joined: Tue Nov 15, 2005 10:07 am
Location: Ireland

Re: Act format

Post by bernie »

an act file is simply a vfs type file containing a folder with all the animations numbered 0 - n a seperate .bdy file and a header. You can open an act file wth th RFvfs prog if you change the extn from .act to .vfs
Jay
RF Dev Team
Posts: 1232
Joined: Fri Jul 08, 2005 1:56 pm
Location: Germany

Re: Act format

Post by Jay »

Ok, that's good to know.

But how is the format of the 'internal' files? (The bdy, and mot files) And of the vfs header?
Everyone can see the difficult, but only the wise can see the simple.
-----
User avatar
bernie
RF Moderator
Posts: 1249
Joined: Tue Nov 15, 2005 10:07 am
Location: Ireland

Re: Act format

Post by bernie »

You could look here its explained but it's very complex.
http://www.genesis3d.com/~kdtop/
User avatar
paradoxnj
RF2 Dev Team
Posts: 1328
Joined: Wed Mar 01, 2006 7:37 pm
Location: Brick, NJ
Contact:

Re: Act format

Post by paradoxnj »

BDY file is loaded using geBody_CreateFromFile()
MOT file is loaded using geMotion_CreateFromFile()

You can have a look at those functions to see what the formats are. The VFS stuff is in VFile/fsvfs.c and VFile/dirtree.c. You should probably write something using the Genesis API to extract the BDY and MOT files, then load them using the stdio APIs or ifstream. You could also just have the users use Milkshape or Equity to decompile the ACT.
Many Bothans died to bring you this signature....
Jay
RF Dev Team
Posts: 1232
Joined: Fri Jul 08, 2005 1:56 pm
Location: Germany

Re: Act format

Post by Jay »

Ah i looked at the API documentation bernie posted and genesis seems to have

geBody_CreateFromFile()
geBody_WriteToFile()
geMotion_CreateFromFile()
geMotion_WriteToFile()

functions. I think i will then create an 'empty' body and fill it with all the data needed, then use the geBody_writeToFile() function to save it. That's enough for me.

Thanks for all help.
Everyone can see the difficult, but only the wise can see the simple.
-----
Post Reply