Page 2 of 2

Re: Updating mesh after bone rotation

PostPosted: Wed Jun 14, 2017 1:17 pm
by ShatteredEssence
AndyM wrote:This part in skeleton.setPose() cause me trouble. It takes the local pose and transform it to another orientation. Which pose matrix is the right one for that function?

Code: Select all
# Calculate rotations
bone.matPose[:3,:3] = poseMats[bIdx,:3,:3]
invRest = la.inv(bone.matRestGlobal)
bone.matPose = np.dot(np.dot(invRest, bone.matPose), bone.matRestGlobal)


sorry for diggin. But have you found a solution?