Hi guys, in order to test my application, I want to render a shape which represents the volume of an orthographic projection.
I have found this code, and when I pass a perspective projection matrix, it creates the frustum shape perfectly, but when I pass a matrix of a orthographic projection, all components ( x, y and z ) of the each generate vert are set with 0.0f.
So two questions:
1º) Why the frustum shape with a perspective matrix is built correctly, but not with an orthographic matrix?
2º) How can I create a frustum shape from an orthograpic projection matrix?
PD: The orthographic projection that I’m trying to render with that code, works well in my program.
Thanks in advances,
Alberto.