Im trying to create a dimetric perspective as detailed here
Specifically - Dimetric 1:2 projection “top-view”
I’ve tried with an orthographic camera with 78 and 24 degree x and y rotations which produces the following results -
The vertical lines are correct but horizontal lines are off, they should run parallel to the top and bottom of the screen.
I’ve tried playing around with following code but with no luck -
var x : float = 1.0;
var y : float = 1.0;
var z : float = 1.0;
var pM : Matrix4x4;
function Start () {
pM = Camera.main.projectionMatrix; // * Camera.main.projectionMatrix;
}
function Update () {
}
function LateUpdate ()
{
Camera.main.projectionMatrix = Matrix4x4.Scale(Vector3(x, y, z)) * pM;
}
I’m completely out of my depth here and was hoping someone with better knowledge would be able to help.
