Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: Object Picking

  1. #1
    Junior Member Newbie
    Join Date
    Aug 2001
    Posts
    6

    Object Picking

    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 ...

  2. #2
    Senior Member OpenGL Pro
    Join Date
    May 2001
    Location
    Kristianstad,Skåne,Sweden
    Posts
    1,595

    Re: Object Picking

    Hi !

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

    Mikael

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •