12-16-2003, 07:33 AM
I am having problems with picking and using alpha test.
Here is the problem:
I have an object that is a polygon that has a texture map applied to it. The texture map is RGBA, and I only want to allow picking of the alpha values greater or equal than some alpha value (e.g. 255 - full white alpha).
I can get picking to work fine, but when I enable alpha testing (+ set the alpha test func) I always get a pick registered even if I click on a region that has zero alpha.
I also tried the same example with scissoring and found that the picking does not honour the scissor rectangle.
Help?
Thanks in advance
-Sambo
Here is the problem:
I have an object that is a polygon that has a texture map applied to it. The texture map is RGBA, and I only want to allow picking of the alpha values greater or equal than some alpha value (e.g. 255 - full white alpha).
I can get picking to work fine, but when I enable alpha testing (+ set the alpha test func) I always get a pick registered even if I click on a region that has zero alpha.
I also tried the same example with scissoring and found that the picking does not honour the scissor rectangle.
Help?
Thanks in advance
-Sambo