Original Post
In my application I need to let the user pick objects by clicking on text labels associated with them. I can get the world coordinates of the mouse click using gluUnProject(). I also know the Raster position were I drew the label. I can generate a bounding rectangle for the label because I know the size of the font and the length of the label. I think that I need to find the intersection of the ray from the camera in the direction of the click coordinates and the plane that the label is in. Then check if the intersection is in the texts rectangle. Is my theory OK?
How do I implement this? I''m really rusty on math.
Is there a better way?
Thanks for any help.