• Create Account

### #Actualmiguelishawt

Posted 26 January 2012 - 06:09 AM

Well, I'm not sure if this will work or not, but assuming that you're using alpha values for the Water (or maybe you need alpha values for the reflection?), you should be enabling blending. Usually you use it like so, you can however use it many different ways though:

glEnable(GL_BLEND); // Enables blending for OpenGL

glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); // Set the Blending function


There's a lot more OpenGL blending functions, but this might do the job, ask Google if you don't like it.

FAQ on Transperancy:
http://www.opengl.or...ransparency.htm

Sorry if you already know this, it just doesn't seem like your enabling blending o:

### #2miguelishawt

Posted 26 January 2012 - 06:07 AM

Well, I'm not sure if this will work or not, but assuming that you're using alpha values for the Water, you should be enabling blending. Usually you use it like so, you can however use it many different ways though:

glEnable(GL_BLEND); // Enables blending for OpenGL

glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); // Set the Blending function


There's a lot more OpenGL blending functions, but this might do the job, ask Google if you don't like it.

FAQ on Transperancy:
http://www.opengl.or...ransparency.htm

Sorry if you already know this, it just doesn't seem like your enabling blending o:

### #1miguelishawt

Posted 26 January 2012 - 06:04 AM

Well, I'm not sure if this will work or not, but assuming that you're using alpha values for the Water, you should be enabling blending. Usually you use it like so, you can however use it many different ways though:

glEnable(GL_BLEND); // Enables blending for OpenGL

glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); // Set the Blending function


There's a lot more OpenGL blending functions, but this might do the job, ask Google if you don't like it.

FAQ on Transperancy:
http://www.opengl.org/resources/faq/technical/transparency.htm

Hopefully this should work.

PARTNERS