A
ok habs hinbekommen. Hier meine Lösung in python:
# turn the matrix (Y becomes the X axis)
tm = (YtoXMatrix*tm)
# translation part
trpart = rtrpart = tm.translationPart()
# obvious
rotpart = tm.rotationPart()
rm = rotpart.copy()
rm.resize4x4()
if not righthanded:
rm[3][0] = trpart.x
rm[3][1] = trpart.y
rm[3][2] = trpart.z
rm[3][3] = 1.0
else:
rm[3][0] = -trpart.x
rm[3][1] = -trpart.y
rm[3][2] = -trpart.z
rm[3][3] = 1.0
rotation = rm.rotationPart().invert()
translation = rm.invert().translationPart()
mit YtoXMatrix =
[ 0,1,0,0]
[-1,0,0,0]
[ 0,0,1,0]
[ 0,0,0,1]
Liefert das richtige ergebnis