I see you are right, the is a bug
The code was not mutiplyin teh sca;e matrix by teh offset.
basicall it was I was no usin a similtar tranformation.
I fix it and it work very well now,
I just replaced the bugus scale transform wich was
- Code: Select all
m = Scalematrix * BodyMatrox
wich is wrong and only worka when offsetMatrix is identity,
Now I replaced with this:
- Code: Select all
m = (offsetMatrix * ScaleMatrix * inv (offsetMatrix)) * offsetMatrix * BodyMatrox
wich lead to the correct tranform with scale
- Code: Select all
m = offsetMatrix * ScaleMatrix * BodyMatrix
and now it work the way it is suppose to work
I owe you have two bug fixes,
I will try to put beta 2009 tonight or tomorrow morning.