求助!!OPENGL中屏幕坐标到世界坐标的转换~

来源:百度知道 编辑:UC知道 时间:2024/05/14 10:52:08
请不要给出利用射线拣取物体的文章谢谢,要的是鼠标点取屏幕上的一点,然后获得该点的世界坐标(摄象机可能已经移动了位置)~十分感谢!!!

maybe its impossible... even if the camera position is known, you could only get a projection plane from the coordianates of the screen. you need at least 2 projections from the camera with 2 different place to locate the object in world coordinates. Or known the distance from the camera to projection plane.

I am not really sure, thats my suggestion from my knowledge. Hope it is helpful:)

da bu liao zhong wen bu hao yi si