Noesis Bones

Post questions about game models here, or help out others!
Post Reply
Crazy
ultra-n00b
Posts: 4
Joined: Tue Jan 08, 2019 2:26 pm
Been thanked: 1 time

Noesis Bones

Post by Crazy » Tue Jan 08, 2019 5:01 pm

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)


User avatar
chrrox
Moderator
Posts: 2519
Joined: Sun May 18, 2008 3:01 pm
Has thanked: 57 times
Been thanked: 1251 times

Re: Noesis Bones

Post by chrrox » Tue Jan 08, 2019 11:14 pm

make sure you provide all parts of the bone.
self.boneList.append(NoeBone(i, "bone%03i"%i, mat, None, boneParent))

Crazy
ultra-n00b
Posts: 4
Joined: Tue Jan 08, 2019 2:26 pm
Been thanked: 1 time

Re: Noesis Bones

Post by Crazy » Wed Jan 09, 2019 1:05 am

Thank you. Besides, I needed to transpose matrix.
Image

Post Reply