[Bf-python] rotation matrices

Tom Musgrove tommusgrove__ at hotmail.com
Sat Sep 25 02:01:50 CEST 2004


Hi,

could we also have the optimized rotation matrices available?

This function is a 1000% faster than using the current method.

Ie instead of


rxmat=Blender.Mathutils.RotationMatrix(AngleX,4,'x')
rymat=Blender.Mathutils.RotationMatrix(AngleY,4,'y')
rzmat=Blender.Mathutils.RotationMatrix(AngleZ,4,'z')
rotatedmat = rxmat*rymat*rzmat

we should be able to do

rotatedmat = Blender.Mathutils.XYZRotationMatrix(AngleX,AngleY,AngleZ,4)

http://skal.planet-d.net/demo/matrixfaq.htm#Q36

This is needed for things like doing BVH import and export efficiently.

Thanks,

Tom M.
LetterRip

_________________________________________________________________
Get ready for school! Find articles, homework help and more in the Back to 
School Guide! http://special.msn.com/network/04backtoschool.armx




More information about the Bf-python mailing list