Loading up the skeleton for XNALara format
Posted: Thu Sep 17, 2015 9:48 pm
Here is an example of a model in XNALara format: https://drive.google.com/file/d/0B2T9_e ... ZjUzg/edit
It comes with an ASCII format which is plain-text. It has a binary format as well, and holds basically the same information.
Here's a noesis plugin for it: https://www.dropbox.com/s/pbermnkst5c07 ... ps.py?dl=0
However, I'm not sure how to load the skeleton.
The bones come at the beginning, and we have
1. The bone parent Index
2. a bone position (x,y,z)
3. The bone index (just the order that they appear in)
Can someone look at the plugin and figure out what I'm doing wrong?
I'm not sure if it's just because I'm assigning the bones to the model after the vertices and faces have been generated.
I start by parsing all of the bones, then I parse the vertices/faces. I then generate the model, and THEN assign the skeleton.
It comes with an ASCII format which is plain-text. It has a binary format as well, and holds basically the same information.
Here's a noesis plugin for it: https://www.dropbox.com/s/pbermnkst5c07 ... ps.py?dl=0
However, I'm not sure how to load the skeleton.
The bones come at the beginning, and we have
1. The bone parent Index
2. a bone position (x,y,z)
3. The bone index (just the order that they appear in)
Can someone look at the plugin and figure out what I'm doing wrong?
I'm not sure if it's just because I'm assigning the bones to the model after the vertices and faces have been generated.
Code: Select all
# Parse file
parser = SanaeParser(data)
parser.parse_file(filename)
# Create model and assign some other things to it.
mdl = rapi.rpgConstructModel()
mdl.setBones(parser.boneList)
mdl.setModelMaterials(NoeModelMaterials(parser.texList, parser.matList))
mdlList.append(mdl)