Hi.
I dont understand the math behind generating the projection matrix so please bear with me (infact im not even 100% sure if the projection matrix is the culprit).
Here is an screenshot demonstrating my issue
Note the piece of wall on the right of the building thats being clipped.
My issue is that geometry is being clipped too soon. The camera is inside the room and thus the wall should be fully visible.
This is how I calculate the projection matrix. I copied the math from the opengl implementation documentation. I tried to tweak the parameters but had no success.
[source]
//in the screenshot the values are as follow
//l = -1.0;
//r = 1.0;
//b = -768.0 / 1024.0; //-height / width
//t = 768.0 / 1024.0; //height / width
//n = 1.0; //near clipping pane
//f = 10000.0; //far clipping pane
[/source]
Thanx in Advance!