How can I get a cabinet projection camera? How can I get a camera to render with a cabinet projection?

I know it is possible to get a gaming isometric projection, but that's not really what I want.

I've tried positioning an orthographic camera in almost all possible ways but still can't get one. Actually an orthographic camera wouldn't work because as soon as you get the world x-axis parallel to the viewport x-axis, the world y-axis is always parallel to the viewport y-axis.

I think it is something like shearing, but I am not so sure.

Cabinet projection:


Image from Wikipedia
Demonstrating in 2D what is going on:



Mathematically it should be correct to render with a orthographic camera
and later transform the image. I think this is the easiest method when
you have multiple objects (so you do not have to add modifiers to each).
First you should shear in 2D (skewing) the rendered image then (if needed)
stretch to get the correct aspect.

Original:



Sheared:



Streched:



Most raster graphics editors have the tools to preform the above
transformations. This can also be done in the compositor using a
Blend texture and the Displace node.