Translating mouse location to Object coordinates
问题 I'm trying to get basic mouse integration into a small demo using a Collada object. I am able to get the correct mouse x and y, but I don't know how to translate them into coordinates to be used for the object. I was hoping the GLGE function duck.setLoc(mousepos.x, mousepos.y) would convert from pixels, but that is not the case. What do I have to do to translate the 2D mousepos pixels into a 3D point? 回答1: If you have point with screen coordinates (x0, y0), you can un-project them and