Page 2 of 2

Re: OpenGL Help

Posted: Mon Oct 25, 2010 9:58 am
by qpHalcy0n
It doesnt appear that you're actually binding the texture before you're submitting draw calls. It also does not appear that you've enabled blending. If in fact the image has a good alphamap in it then enabling blending and setting a good blend mode should work for ya.

Re: OpenGL Help

Posted: Mon Oct 25, 2010 10:30 pm
by RandomDever
How do I set A blend mode and what blend mode should I use?

Re: OpenGL Help

Posted: Mon Oct 25, 2010 10:49 pm
by qpHalcy0n
glEnable(GL_BLEND); // Enable alpha blending
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); // Will work for what you're doing....

Turn off blending or set it back when you're done rendering transparent faces.

Re: OpenGL Help

Posted: Tue Oct 26, 2010 2:08 am
by RandomDever
Thank you so much it works now!!!!!! :mrgreen: :mrgreen: :mrgreen: