View Full Version : Image Selection

11-07-2003, 08:47 PM
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?

11-09-2003, 03:09 AM
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.

11-09-2003, 07:08 PM
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).]