vertex weighting
Hello my forum!
Question:
How do I apply let's say 50% of a rotation matrix to a vertex?
I'm trying to get a skeleton deformer working and I need to apply x% of a rotation to vertices depending on matrix influence on it.
pointers please
Question:
How do I apply let's say 50% of a rotation matrix to a vertex?
I'm trying to get a skeleton deformer working and I need to apply x% of a rotation to vertices depending on matrix influence on it.
pointers please
Don't use matrices to represent rotations.
Look into Quaternions. They're probably the easiest way to do spherical linear interpolation.
Look into Quaternions. They're probably the easiest way to do spherical linear interpolation.
I'm using quaternions for the rotations.
The skeleton is pretty much working the issue I have is that every bone has absolute control over the vertices attached to it.
So I want to apply 50% of matrix A rotation, and 50% of matrix B rotation to the vertices close to joint formed by (A-B)
The skeleton is pretty much working the issue I have is that every bone has absolute control over the vertices attached to it.
So I want to apply 50% of matrix A rotation, and 50% of matrix B rotation to the vertices close to joint formed by (A-B)
Oh, right, sorry 
It should look OK if you just use the weighted sum of the transformed vertices, ie 0.5 * (M0 * v) + 0.5 * (M1 * v)

It should look OK if you just use the weighted sum of the transformed vertices, ie 0.5 * (M0 * v) + 0.5 * (M1 * v)
I'll try that, thanks...
Then, how to multiply a matrix with a scalar? :ohmy: I would have a lot of use for something like that...
both seem to work

