Sign in to follow this  

Trimetric camera orientation?

Recommended Posts

Hi guys, I'm currently programming a game that has a trimetric projection. I've figured out the view-projection matrix by measuring the angle between each axis in our artwork (created by our designer) and then computing 3 axis vector out of that. So basically, I have a 3D world, I apply this matrix to every vertices/points and voila, I get the right position on screen. Now, I need to do some depth sorting. So I thought I could separated this view-projection matrix into two matrices, and at the time I apply the view matrix, I could sort everything using the "Z" axis (since every points has been transformed into camera-space, the "Z" axis is along which the camera is looking at). However, I can't find the right orientation of the camera. In fact, I don't really know how to find that, and that's why I need your help. Oh, and by the way, if this depth sorting solution is completely dumb, please say so :) Thanks!

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this