Hi all, I have an interesting little problem and I’m new to working with matrices so I thought I’d ask for help here.

I need to create a depth map. Unfortunately the one made in my camera’s space is not very good… we need the depth as though it were from the top-down and then rendered from the camera.

I imagine there has to be a way to get the zdepth data from the top-down, and then use the camera’s transform or projection matrix to get it “back” into camera space and render from there?

Any help or pointers in the right direction would be greatly appreciated.