PDA

View Full Version : OpenGL blending...



MrShane
12-13-2000, 01:02 PM
Hi! I read in a tutorial that an alpha value of 1.0 will give you a totally non transparent polygon. But when i set it that high, all i get is a transparency that looks a bit higher than %50... Is there anyway to get it more opaque? My goal is not to get it fully solid, but close to it. Any help would be appreciated. Thanks!

j
12-13-2000, 03:04 PM
It all depends on your blending mode.

If you are using glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA), it should look completely opaque.

If you are using a different blend function, that might explain why it isn't opaque.

j

MrShane
12-13-2000, 05:39 PM
Yeah... that's the reason it doesn't look all opaque. But when i do that mode, the polygons look all out of order. I suppose i have to turn off depth testing and render the polygons in order from farthest to closest?