Picking: not working properly

This is a discussion on Picking: not working properly within the Game Programming forums, part of the General Programming Boards category; Ugh. I can't seem to get anything to work correctly lately.
Iv'e attempted to add mouse object picking, aided by ...

Picking: not working properly

Ugh. I can't seem to get anything to work correctly lately.

Iv'e attempted to add mouse object picking, aided by an example from the OGL superbible (found by searching these forums). However, no matter where I click, it reads that I clicked the highest name ID (ex, if I have 3 objects, it always says I clicked object 3).

1) I'm not sure what glSelectBuffer does, but it seems to me you're only testing the last object
2)processclicks should be doing more than checking the value if id. I'm not familiar with the glu libs, but I'm guessing what you want to do is multiply your mouse coords by the matrix you get from that ever so sexy looking gluPickMatrix function.