PDA

View Full Version : Object Picking



Montoya
02-21-2003, 10:25 AM
I have a number of objects in scene, and only a number of them (spheres) are objects that can be picked by the mouse. However, I also have a skybox, a simple quad cuboid that surrounds all these objects/spheres. BUT, if I try and select any of these objects with the mouse, the picker can only see the skybox, and returns that ID. Is there a way to draw the skybox such that it's ignored by any depth/object picking functions?
Hope that's explained clear enough ... http://www.opengl.org/discussion_boards/ubb/smile.gif

mikael_aronsson
02-22-2003, 12:12 AM
Hi !

When you do the picking, don't render the objects that shouldn't be pickable.

Mikael