I have a problem that drives me crazy. I wrote a plugin once for blender 2.5 where I render a scene from different viewpoints and store depth as well as some parameters, see below:

Code: Select all

```
RT = camobj.matrix_world.inverted()
# Intrinsic
C = Matrix().to_3x3()
C[0][0] = -w/2 / tan(cam.data.angle/2)
ratio = w/h
C[1][1] = -h/2. / tan(cam.data.angle/2) * ratio
C[0][2] = w / 2. #w = width of rendered image
C[1][2] = h / 2. #h = height of rendered image
C[2][2] = 1.
C.transpose()
```

However, the problem now is, that the camobj.matrix_world.inverted() object for the same viewpoints in blender 2.5 looks like this:

Code: Select all

```
[(0.0, 0.0, 1.0, 0.0),
(1.0, 0.0, 0.0, 0.0),
(0.0, 1.0, 0.0, 0.0),
(-1.0, -0.5, -20.0, 1.0)]
```

Code: Select all

```
[(0.0, 1.0, 0.0, 0.0)
(0.0, 0.0, 1.0 0.5)
(1.0, 0.0, 0.0 -20.0)
(0.0, 0.0, 0.0, 1.0)]
```

Thanks in advance and best regards,

_patrice_