Invisible Quad

Started by
4 comments, last by Mat1515 20 years ago
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
Ut o not me again:) lol
Advertisement
Sure, just draw it in a colour that has an alpha component of zero:

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

--cfmdobbie
That didn''t work i can''t see through it it just stays black
Ut o not me again:) lol
what is the color of the background
How about just not drawing it.
With the zero alpha, you would also need to enable alpha blending. An easier way would be to simply disable colour buffer writes.

Kippesoep

This topic is closed to new replies.

Advertisement