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: Selection/Picking question---help?

  1. #1
    Intern Newbie
    Join Date
    Jan 2003
    Location
    rawalpindi,punjab,Pakistan
    Posts
    39

    Selection/Picking question---help?

    hey..
    how will selection/picking work for an imported drawing...e.g. i want to slect/pick drawing in my application that was created in another software such as AutoCad or Paint

    thanks

  2. #2
    Super Moderator OpenGL Guru dorbie's Avatar
    Join Date
    Jul 2000
    Location
    Bay Area, CA, USA
    Posts
    3,969

    Re: Selection/Picking question---help?

    Define drawing, picking operates on geometry.

    If you want to select rendered image portions you would need to render outlines of those selectable portions as geometry.

    To pick stuff in a 2D 3D scene, you set the viewport to the pick region, then draw the scene. As you draw the scene you set a unigue hit identifier for each pickable object in the scene. If the objects are visible they will leave a hit code in the pick buffer.

Posting Permissions

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