I’m using gluPickMatrix to determine which object in the window is picked.
However, I’m having the problem that… the last object that is rendered … and assigned a name ( using glPushName(2) )… is also associated with the rest of the space in the window without any objects. So even if I am click on blank space in the window, it returns the name/id of the last object I rendered.
Any suggestion what may be causing this? I’m also using glPopname with glPushname