Original Post
I''ve read somewhere else on this board how you can use OpenGl functionality to determine on which object the user is clicking.
I now need something a bit more advanced then just getting the selected object. What I want to do is create a line in 3d space from the point of the camera in the direction where the user clicked. So if you look from the camera you would only see a point.
I want this line in the form ''l = v1 + k * v2'' where v1 and v2 are vectors. v1 ofcourse would just be the position of the camera and v2 would be the direction vector which is a lot harder to obtain.
I''ve allready tried some ideas non of which really worked.
So if someone could give me some pointers I''d be really gratefull.
