Original Post
Hi, I need to do some mouse detection in opengl. Basically I have an array of points in 3d and want to tell which one is closest to the mouse. Or another way of looking at it is if you are looking down on a chessboard and you want to select the squares.
What''s the best way? With picking it looks like I would have to go to object mode and render every square and give every square a object id. Is there an easier way to get the equasion of the ray using the pixel coordinates and the viewing matrix and figuring it out myself? Which way is faster?