passed z component to opengl which results in the scene rendering in 3d as intended...yay?