XeNTaX Forum Index
Forum MultiEx Commander Tools Tools Home
It is currently Sat Jan 19, 2019 9:06 am

All times are UTC + 1 hour


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Noesis Bones
PostPosted: Tue Jan 08, 2019 5:01 pm 
Offline
ultra-n00b

Joined: Tue Jan 08, 2019 2:26 pm
Posts: 4
Has thanked: 0 time
Have thanks: 1 time

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:
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)



You can make the ads go away by registering



Top
 Profile  
 
 Post subject: Re: Noesis Bones
PostPosted: Tue Jan 08, 2019 11:14 pm 
Offline
Moderator
User avatar

Joined: Sun May 18, 2008 3:01 pm
Posts: 2509
Has thanked: 57 times
Have thanks: 1249 times
make sure you provide all parts of the bone.
self.boneList.append(NoeBone(i, "bone%03i"%i, mat, None, boneParent))


Top
 Profile  
 
 Post subject: Re: Noesis Bones
PostPosted: Wed Jan 09, 2019 1:05 am 
Offline
ultra-n00b

Joined: Tue Jan 08, 2019 2:26 pm
Posts: 4
Has thanked: 0 time
Have thanks: 1 time
Thank you. Besides, I needed to transpose matrix.
Image



Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: Google [Bot], q4210 and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group