Frame Buffer

Hi all!
A have a problem/
I have been searching everythere, but nothing :frowning:
So, here is my problem:

I’m trying to draw into texture, using framebuffer.
After glClear everying is ok (color, alpha)
But when I start drawing somethin, colors and alpha are divided by 2. What is it? :confused:

Framebuffer ? You mean framebuffer object, also known as FBO ?

What do you mean with “colors and alpha are divided by 2” ?

Yes. May be my question is very simple, I’m a newbie and just trying to draw into texture using FBO

For example,
glColor4f (1.0,1.0,1.0,1.0)
glBegin (…)
glEnd (…)

Result: colors are (0.5,0.5,0.5,0.5)

You might have blending enabled. Try glDisable (GL_BLEND) before you render into the texture.


I have disabled everything:
glDisable (anything)

Looks like accum? But where is no accum :frowning:

Perhaps this helps:

It was that I used :slight_smile:
I have found a solution: using rectangles 1x1 or 2x2 :wink:
(It is a Perlin’s noise)