PDA

View Full Version : translucent texture and white background



Djoe
09-25-2001, 01:53 AM
Hi,

I've a little problem. I try to make a white
background white translucent texture squares on it. But il don't run. All the screen
is white.
I can't see anything except the white background. And I don't understand anything else about glBlendFunc (param1, param2);

Please help me...

09-25-2001, 02:35 AM
>I try to make a white background white >translucent texture squares on it. But il >don't run. All the screen is white.

erm...erm...
actually...
when you have a *white* background with *white* squares it doesn't matter how translucent they are...everything is white of course !!

Djoe
09-26-2001, 03:13 AM
Sorry for my bad english,

I make a mistake.
I have a white background and i want to put
colored textured squares on it.
So what is the glBlendFunc i have to use ?


Someone can help me , please ?

Bob
09-26-2001, 04:10 AM
I'm not sureI get what you mean, but... you have a white background and you want to draw a textured quad over this? Well, just draw the textured quad and forget about blending, cause it's not needed.

09-26-2001, 05:53 AM
>So what is the glBlendFunc i have to use ?

for transparency usually use
glBlendFunc(GL_SRC_ALPHA,
GL_ONE_MINUS_SRC_ALPHA)

I hope that works

Djoe
09-27-2001, 08:24 AM
Thank you for your answer,

all is ok. I have my tranlucent squares
on my white background.

Thanx again...