PDA

View Full Version : how to make a textured face transparent



beginner620824
09-17-2003, 04:55 PM
Is it possible to make a textured face look transparent? and how?
Thanks for any answer.

PanzerSchreck
09-17-2003, 11:46 PM
glEnable(GL_BLEND);
glBlendFunc(SourceFactor, DestFactor);
glColor4f(1,1,1,BlendingFactor);
glBegin(GL_QUADS);
...
glEnd;
(Delphi-code, but easy to convert http://www.opengl.org/discussion_boards/ubb/wink.gif )

Set your blendingequotation via glBlendFunc and the "strength" of the face's visibility via BlendingFactor (see more here : http://www.3dlabs.com/support/developer/GLmanpages/glblendfunc.htm )

[This message has been edited by PanzerSchreck (edited 09-18-2003).]

[This message has been edited by PanzerSchreck (edited 09-18-2003).]

beginner620824
09-18-2003, 05:04 PM
Thanks a lot ,PanzerSchreck