Page 1 of 1

Noesis Bones

Posted: Tue Jan 08, 2019 5:01 pm
by Crazy
Hello, I'm trying to parse model bones and create in noesis. This is what I'm trying to achieve:

Image

And this is what I got in noesis with my script:

Image

Code: Select all

def parse_bones(self):
            
        for i in range(self.numBones):
            boneName = self.read_name()
            boneIndex = self.inFile.readUShort()
            boneFlags = self.inFile.readByte()
            #boneMatrix = self.inFile.read('16f')
            boneMat = NoeMat44.fromBytes(self.inFile.readBytes(64)).toMat43()
            boneChildCount = self.inFile.readUInt()
            bone = NoeBone(boneIndex, boneName, boneMat)
            self.boneList.append(bone)


Re: Noesis Bones

Posted: Tue Jan 08, 2019 11:14 pm
by chrrox
make sure you provide all parts of the bone.
self.boneList.append(NoeBone(i, "bone%03i"%i, mat, None, boneParent))

Re: Noesis Bones

Posted: Wed Jan 09, 2019 1:05 am
by Crazy
Thank you. Besides, I needed to transpose matrix.
Image