Jump to content
  • Advertisement

Archived

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

Mat1515

Invisible Quad

This topic is 5220 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!