view from matrix?

Hey dudes,

I’m trying to give the camera an arbitrary orientation based on a 4x4 matrix (I’d like to be able to specify the camera’s right/up/forward vectors). Maybe I’m being dense, but

m = Mat4()
m.invertFrom(matrixWithPositionAndRotation)
base.camera.setMat(m)

doesn’t seem to work. My matrix is essentially Row 0 = right Vector, Row 1 = up Vector, Row 2 = forward Vector, and Row 3 = position. Is that all right?

I think those are not quite right.

Row 0 = right vector
Row 1 = forward vector
Row 2 = up vector
Row 3 = position

I should mention this page:

panda3d.org/manual/index.php/Matrix_Representation

Ah, brilliant on both counts! Thank you much.