I am trying to create a custom projectionMatrix.
I have set up a cube and a camera. I can use the Matrix4x4.Ortho() for Isometric view of the cube.
But i do not want Isometric, i want Trimatric.
Now i know i have to attach a script to the camera. But then, i really have no idea on how to create a Trimetric Matrix4x4 and use it. There is no example… i can’t look inside the Matrix4x4.Ortho() for a little reference / backengenering. Can someone help me out?
It is a Orthographic view but with 3 axes that have different angles (that’s why they call it 2.5d).
When i put it on Orthographic, the only thing that happens is that i get a Isometric view.
I still don’t see what the difference is aside from the angle. Here’s a quick attempt to match the perspective by rotating; personally I don’t see any difference (I overlaid the renders from Unity on top of that graphic):
Yes, that’s what happens when you change the angle of the camera in orthographic mode, like so:
There are three sides visible in both: Left, front, top. Don’t be misled by the slope of the roof. Unless someone who knows better can say otherwise, the only difference is the angle of the camera, so just change that until you get the perspective you want. As I’ve illustrated, that’s all I did in order to duplicate the results you want.
I feel dumb :). I lost this whole day on this.
What i want to do is make a Simcity 4 like perspective. I’ve currently copied the camera position parameters from the BAT tool (that you can download at the Simcity 4 website). Simcity 4 switched the Y axis for the Z axis…