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 3 of 3

Thread: Image Selection

  1. #1
    Junior Member Newbie
    Join Date
    Oct 2003
    Posts
    20

    Image Selection

    Hi, I am displaying some images on the Screen. The images are displayed with the help of texture mapping. The images also contains transparent color. My aim is to select the images. The condition is, when I click on the transparent color it won't be select. How is it possible?

  2. #2
    Junior Member Regular Contributor
    Join Date
    Sep 2002
    Location
    Poland
    Posts
    197

    Re: Image Selection

    I think selection buffer works only for graphics primitives not for specified colors. You can do this that way: find the coordinates of mouse cursor on the image and determine if that image pixel is transparent or not.

  3. #3
    Junior Member Newbie
    Join Date
    Oct 2003
    Posts
    20

    Re: Image Selection

    When i hit on the transparent area of the top image; there are possiblities that the image may be displayed on several images. In this case how can i select the image?

    [This message has been edited by Balu (edited 11-09-2003).]

Posting Permissions

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