Results 1 to 2 of 2

Thread: Selecting only fully enclosed objects

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2000
    Location
    Florianopolis - SC - Brazil
    Posts
    5

    Selecting only fully enclosed objects

    Hi,

    I'd like to know if there is any way of makeing openGL (in GL_SELECT render mode) to only report hits when no part of a given object gets culled out. Currently my application reports selection hits when any primitive hits the view frustrum.

    Thanks.
    Marcelo A. Camelo

  2. #2
    Member Contributor
    Join Date
    Feb 2000
    Location
    Italy
    Posts
    77

    Re: Selecting only fully enclosed objects


    Here is what OpenGL specs say about selection:

    Selection is used by a programmer to determine which primitives are drawn into some region of a window.
    The region is defined by the current model-view and perspective matrices.
    I never had to do selection, but I think it's a matter of setting the correct matrices
    Take a look at gluPickMatrix: the GLU specs are very clear on how to use it for selecting objects restricing to near the cursor.
    --
    Paolo M.

Similar Threads

  1. Selecting Objects
    By Mukund in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 05-10-2010, 09:35 AM
  2. Selecting the objects
    By ehsan2004 in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 11-10-2005, 06:43 AM
  3. Problem with objects inside/outside an enclosed volume
    By Greentea in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 02-20-2004, 01:03 PM
  4. Select only fully enclosed objects
    By teame in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 11-16-2003, 02:22 AM
  5. Selecting objects.
    By Whittick in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 07-19-2000, 02:24 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean