Picking is not working properly!

Hi all,

http://tinyurl.com/ybtk9xw (source code)

I’m doing a 3-D office designer in openGL. I used some picking codes (Scene3D::pickObject, Scene3D::processHits functions in classes.cpp) however when I run the code it doesn’t work properly, it is not exact… For instance, when I clicked on the upper part of the two tables, they are not selected (selected one becomes red, otherwise it is blue). Could you help me about this problem? Is it about different data types (glbyte, int vs vs) - maybe there is a conversion error- ? I’m looking for your answers or comments.

Problem is solved, it was because of the reference point of the window…