我试过:
int viewport[4];
viewport[0] = 0;
viewport[1] = 480;
viewport[2] = 320;
viewport[3] = 480;
GLKVector3 x = GLKMathProject(position, effect.transform.modelviewMatrix, effect.transform.projectionMatrix, viewport);
NSLog(@"%@", NSStringFromGLKVector3(x));
position 是一个像这样的 GLKVector3 {3, 5, 6}
但它给了我一些奇怪的值:{1.52313e+12, 8.0313e+08, -160.131}