Screen Coordinates -> World Coordinates

Is it possible to get the world coordinates in 2D given the screen coordinates( relative to the context beeing displayed )?

And vice-versa?

I need this to select objects in the screen using the mouse.

thx in advance, rgds,


Look at -


and also consult the Red Book chapter on Selection and Feedback. I think there’s some tutorials at NeHe too…