PollyPocket4eva

04-30-2009, 01:11 PM

Hi,

If I have a pair of (x,y) window coordinates (where the mouse clicked in an opengl view) how do I find the corresponding coordinates of that click in terms of the opengl world space? I'm using gluPerspective for a 3d perspective projection matrix.

I've looked around but I'm not sure what the official name for this is, which makes it hard to search.

Thanks

If I have a pair of (x,y) window coordinates (where the mouse clicked in an opengl view) how do I find the corresponding coordinates of that click in terms of the opengl world space? I'm using gluPerspective for a 3d perspective projection matrix.

I've looked around but I'm not sure what the official name for this is, which makes it hard to search.

Thanks