Original Post
Hi, I've managed to perform triangle picking with gluProject by projecting the vertices to the window area and then checing these with the mouse coordinates. A problem arises, when any of these points lies beyond the window region. In this scenario I'm not able to pick a triangle even though it is partially visible. So the only way to handle this situation afaik is to unproject the mouse point and then do a line-triangle intersection test. I've tried to use gluUnproject to unproject the mouse position and then make a line by adding the camera direction to this point, but then i realized it can't be done this way. The line will just extend nearly from the centre of the screen. I hope you understand what I'm trying to achieve here, any help is welcome.