PDA

View Full Version : transparent walls...



mms
02-05-2001, 02:44 AM
what should I do to draw nice looking transparent (textured) triangles without effect of shining in case there are many transparent triangles ones on another..?

thanks to everybody...

Nutty
02-05-2001, 04:58 AM
I dont know much about blending, but it sounds like you dont want addative.

try

glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);

should make it see through without addative "white out" occuring.

Bob
02-05-2001, 10:25 AM
With that blending function, you also have to draw the primitives in back to front order. Otherwise it won't work.