new camera projection matrix and minor fix to projection calculation code