PDA

View Full Version : Transparent objects?



billy
03-30-2001, 12:57 AM
How do you obtain transparent objects. Do you just have to use glcolor4f and set last value between 0 and 1? Or does antone know of some tips that can be useful?

Thanks in advance,

Billy.

Tom Nuydens
03-30-2001, 01:11 AM
Originally posted by billy:
Do you just have to use glcolor4f and set last value between 0 and 1?

That, and glEnable(GL_BLEND) and glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA).

I don't think this question belonged on the "advanced" forum, though. RTFM http://www.opengl.org/discussion_boards/ubb/wink.gif

- Tom