Act format
Act format
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.
-----
-----
Re: Act format
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
Re: Act format
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?
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.
-----
-----
Re: Act format
You could look here its explained but it's very complex.
http://www.genesis3d.com/~kdtop/
http://www.genesis3d.com/~kdtop/
Re: Act format
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.
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....
Re: Act format
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.
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.
-----
-----