View Full Version : Detectiing white portion in a textured plane
04-10-2012, 03: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.
04-10-2012, 05:27 AM
You can use glReadPixels to read the pixel at the mouse location.
04-11-2012, 04: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?
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.