Alhexx' Final Fantasy 7 HRC Format Description 1.1 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= News in Version 1.1: -------------------- - Corrected Section 3 "Bones" (fourth line) Thanx to Ficedula (ficedula@lycos.co.uk) for the corrections -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= "HRC? What's this?" Well, that's a file which contains info about the skeleton of a FF7 Field Character (from char.lgp), Battle Models use another Format. To be more exact, it's not a Skeleton, but only a "HieRarChy" File... But I think that since you read this document, you've got some knowledge 'bout 3D models and skeletons. Let's just start, this format's quite simple! ^_^ 1. "HRC-File-Look-A-Like-Contest" or: How does a HRC file look like? -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Since the HRC files are simple plain-text files, you can open them in notepad or any other text editor. Here are the first four bones of "abjb.hrc" (Yuffie's Hierarchy): -- fILE sTART -- :HEADER_BLOCK 2 :SKELETON sd_yufi_sk :BONES 24 hip root 2.9662 1 ABJC chest hip 4.0621967 1 ABJE head chest 5.017107 1 ACAA joint head 3.5236073 0 ribon_a joint 8.52051 1 ACAF -- fILE cONTINUES -- The other bones look the same as the ones I've listed here. Okay, let's see what we've got here... 2. Header -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= As most files, also the HRC files have got a kind of header. That are the first three lines. ":HEADER_BLOCK 2" Don't ask what this is... it seems to be a simple "ID". AFAI know, this is the first line in all HRCs... ":SKELETON sd_yufi_sk" This tells you the name of the skeleton, in our example "sd_yufi_sk". ":BONES 24" Tells you how much bones are stored in this skeleton. 3. Bones -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Every bone consist of 4 Lines, which look like this. Let's first take a look at the lines of the first bone: First Line: ("hip") ------------------- This is the name of the current bone. Second Line: ("root") --------------------- This is the name of the parent bone. The parent bone must be already listed above in the skeleton file, or it can be "root" (origin). Third Line: ("2.9662") ---------------------- That's the Length of the bone. Fourth Line #1: ("0") Fourth Line #2: ("1 ABJC") Fourth Line #3: ("2 ABJC ABJD") ------------------------------- This line consist of 2 or more different values. First, there is a number telling you how many RSD files are aligned to this model. If it has no RSD File, the number is 0. If the number is 1, there is a string after the number telling you the name of the Resource Data File (RSD). The RSD file tells you which .p Model is to use. There may be even more than 2 RSD Files on 1 Bone, however, I haven't seen such a file... -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= You might wonder that there are no bone angles, just bone lengths? Well, like I said, ther HRC file aren't skeletons, they're a hierarchy. If you want to build up a skeleton, you'll have to read out the .a files, too! -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Well, erm ... that's it! Simple, huh? Usually, here are my Special Thanx, however, I don't remember who told me the file format... so here's just a Greetings List: ~~ Greetings Fly Out To: ~~ Darkness Ficedula Kaddy #17 Kaoru S. Night Mirex Phaeron Qhimm Sephiroth 3D ShinRa Inc. The SaiNt ... and everyone I've forgotten! Visit or contact me: -------------------- Home : http://www.alhexx.com Forum : http://forums.alhexx.com Mail : alhexx@alhexx.com - Alhexx 15:08 24.12.2002