Archived

This topic is now archived and is closed to further replies.

Mat1515

Invisible Quad

Recommended Posts

Would it be possible to render a quad that is completly transparent? Invisible? If so how, I need to make hidden spots that you can''t see that you can click on for special power ups. Thanks Matt

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Sure, just draw it in a colour that has an alpha component of zero:

glColor4f(0.0f, 0.0f, 0.0f, 0.0f);

--cfmdobbie

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
what is the color of the background

Share this post


Link to post
Share on other sites
With the zero alpha, you would also need to enable alpha blending. An easier way would be to simply disable colour buffer writes.

Share this post


Link to post
Share on other sites