http://tinyurl.com/ybtk9xw (download project here)
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.