PDA

View Full Version : Detectiing white portion in a textured plane



jenny_wui
04-10-2012, 02:50 AM
Hello, I have mapped texture onto a plane. Texture has got some while color. When my mouse touches that white portion, I would like to know that the color of that point is white. How can I do that? Thanks in advance.

carsten neumann
04-10-2012, 04:27 AM
You can use glReadPixels to read the pixel at the mouse location.

jenny_wui
04-11-2012, 03:47 AM
Actually I hv a plane and I am getting a point on the plane. How can I find the corresponding pixel of a point on a textured plane?