Re: Find position in 3D model from position on 2D screen
Posted by
Sven Gothel on
URL: https://forum.jogamp.org/Find-position-in-3D-model-from-position-on-2D-screen-tp4025324p4025330.html
On 06/26/2012 08:12 PM, nabo [via jogamp] wrote:
> Hi,
> i'm just starting with jogl and i have a problem:
>
> i have a ground plane (something like a chess board) and i'm showing a view
> from diagonally above in an angle of roundabout 30° in a JFrame (like the view
> was in e.g. age of empires).
> Now i've added a MouseListener that returns me the position of the mouse on my
> screen on clicking. How do i find out which square i clicked?
May I refer to our previous discussion about mouse selection / picking ?
<
http://forum.jogamp.org/Mouse-selection-td3787468.html#a3789778>
Would be best to search the forum first, IMHO.
~Sven