Sign in to follow this  
pioneer93

FBO + Accumulation buffer support?

Recommended Posts

Hi, I'm using FBO for multiple lights simulation in Geforce 8800 GTX. Does FBO supports accumulation buffer? It used to support only at normal framebuffer not in 32bit floating point FBO a year ago. I know a blending function can simluate the accumulation but I'd rather use accumulation buffer. Many thanks for any comments.

Share this post


Link to post
Share on other sites
If you make a GL_RGBA16 format texture, then it will do the job.
no, you can't attach a accum buffer to a FBO.

Share this post


Link to post
Share on other sites
It works. Geforce 8800 supports that format. You probably would want to scale down the values that you are adding up. For example, in your shader you can do
gl_FragColor = total * 0.3;

and also setup the additive blending
glBlendFunc(GL_ONE, GL_ONE);
glEnable(GL_BLEND);

Share this post


Link to post
Share on other sites
Also, doesn't work doesn't mean anything. Do you get errors? Corrupted textures? Black textures? Something? Also posting testing code is useful :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this