Hit Testing


I am developing a software by importing the text file from PCB Software. In that i need to add query. I had drawn the diagram using OpenGL Graphics. For query, i am in need to include Picking. i have included picking as well as hierarchical picking. But the values in the selection buffer differs in different levels of zooming. Please help me to overcome the problem.

If you change your view volume , and don’t change the values of the function gluPickMatrix(), you may see new values in the selection buffer. Remember that the values of the function gluPickMatrix() are in viewport coordinates.