PDA

View Full Version : Frame Buffer



tribunal
12-24-2008, 01:59 AM
Hi all!
A have a problem/
I have been searching everythere, but nothing :(
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:

ZbuffeR
12-24-2008, 03:46 AM
Framebuffer ? You mean framebuffer object, also known as FBO ?

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

tribunal
12-24-2008, 04:58 AM
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 (..)
glVertex..
glEnd (..)

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

Jan
12-24-2008, 07:20 AM
You might have blending enabled. Try glDisable (GL_BLEND) before you render into the texture.

Jan.

tribunal
12-24-2008, 09:11 AM
I have disabled everything:
glDisable (anything)

Looks like accum? But where is no accum :(

satan
12-25-2008, 07:51 AM
Perhaps this helps:

http://www.gamedev.net/reference/articles/article2331.asp

tribunal
12-26-2008, 03:57 AM
It was that I used :)
I have found a solution: using rectangles 1x1 or 2x2 ;-)
(It is a Perlin's noise)