DaMangz
11-06-2002, 04:49 AM
Hi all,
How do you do texture blending? I tried setting GL_BLEND, but than everything turns blue.
Let me explain what I am trying to do so it can shed some light on the problem. I got some terrain. I render it first pass with 4 texture units using multitexture. All is cool. For my details I had to use GL_LUMINANCE, and GL_COMBINE_ARB to make it come out right, otherwise it turns blue if I try to blend things.
Now I want to do a second pass on top of the first one, with 4 more textures and blend them into the final result. If i use GL_BLEND, I get blue result. If I enable GL_BLEND and glBlendFunc(GL_ONE, GL_ONE) my fog turns everythign bright white.
Help please I know I'm not an OpenGL genius here but I'm getting better at it and with your help I'll tame the beast.
Appreciate it.
How do you do texture blending? I tried setting GL_BLEND, but than everything turns blue.
Let me explain what I am trying to do so it can shed some light on the problem. I got some terrain. I render it first pass with 4 texture units using multitexture. All is cool. For my details I had to use GL_LUMINANCE, and GL_COMBINE_ARB to make it come out right, otherwise it turns blue if I try to blend things.
Now I want to do a second pass on top of the first one, with 4 more textures and blend them into the final result. If i use GL_BLEND, I get blue result. If I enable GL_BLEND and glBlendFunc(GL_ONE, GL_ONE) my fog turns everythign bright white.
Help please I know I'm not an OpenGL genius here but I'm getting better at it and with your help I'll tame the beast.
Appreciate it.