6
$\begingroup$

How can I set a camera projection matrix? I want to render a perspective like the old SimCity 1989:

image description

$\endgroup$
7
$\begingroup$

For orthographic rendering Blender can't take a custom projection matrix, however you can shear an orthographic projection to get the desired results.

  • Use an orthographic camera, with the camera set at an angle (45 degrees on the X and Z axis).
  • In the render settings, set the Aspect X to sqrt(2)
    This will give something almost exactly what you're looking for, except that its rotated 45 degrees.
  • To correct the rotation, use the compositors Distort -> Transform node.

enter image description here

Notes:

  • rotating the image will loose some accuracy, so you'll want to render larger, then scale down.
  • in the compositor you can scale down by 1/sqrt(2) to avoid loosing the corners.
  • Depth/Mist won't work as you might want, however its probably possible to use a gradient and offset the depth in the compositor.
| improve this answer | |
$\endgroup$
  • $\begingroup$ Excellent work! Use rotation –45° for SimCity direction. $\endgroup$ – Châu Apr 11 '14 at 10:07
  • $\begingroup$ Careful, x and y direction ok; but z direction is not correct for mist or depth effects. $\endgroup$ – Châu May 6 '14 at 10:06
  • $\begingroup$ @Châu good point, noted in answer. $\endgroup$ – ideasman42 May 6 '14 at 18:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.