Framebuffer object (FBO) is an OpenGL object type that allows rendering to textures or other user-allocated image buffers. Versions of OpenGL older than 3.0 can access an extension version of this functionality.
Questions tagged [fbo]
421 questions
0
votes
0 answers
Using FBO to render YUV data
I was able to render YUV image on the screen using shaders.
To improve performance I want to use FBO. But I am not able to do it.
My initialization code is as below
void opengl_init(int w, int h) {
glGenFramebuffers(1, &framebuffer);
…

Febin George
- 47
- 1
- 7
0
votes
1 answer
Opengl-es 1.1 greyscale the FBO
I have the FBO, I just load it to a texture and an ortho (2D) mesh.
How can I greyscale down my FBO texture?

lacas
- 13,928
- 30
- 109
- 183
0
votes
1 answer
Opengl-es 1.1 change pixel data on the FBO
Is there a way to get the FBO pixel data and then: greyscale it fast and take back the image to that FBO again?

lacas
- 13,928
- 30
- 109
- 183
0
votes
0 answers
glBlitFramebuffer() renders empty screen when fragment out is vec3
I am using OpenGL 4.0, formerly was using 3.3 I have a fragment shader with 3 outputs -each one is vec3 .I am writing these outputs to some FBO then trying to test the content using The glBlitFramebuffer() method.I am getting the empty screen.Now ,I…

Michael IV
- 11,016
- 12
- 92
- 223
0
votes
2 answers
OpenGL FBO does not render to texture (C++)
I have been trying to render a teapot to a FBO and then use the subsequent texture as a texture map. nothing seems to come up, so I was wondering what I was doing wrong. Below is the main loop:
//switch to fbo
glBindFramebuffer(GL_FRAMEBUFFER,…

user1422573
- 41
- 4
0
votes
2 answers
GLSL and FBOs - glActiveTexture doesn't work?
I'm trying to write a simple shader which would add textures attached to FBOs. There is no problem with FBO initialization and such (I've tested it). The problem is I believe with
glActiveTexture(GL_TEXTURE0). It doesn't seem to be doing anything-…

mathew
- 9
- 1
- 4
0
votes
1 answer
openGL FBO copy to texture results in black/dark image
In my program it is necessary for me to do off-screen rendering. For that purpose I use a FBO. In order to see if the image I draw is the correct for testing purposes I copy it from the FBO to a texture then render the texture to a quad. The problem…

Ray
- 339
- 3
- 12
-1
votes
1 answer
Creating Opengl renderbuffer with no framebuffer bound
I noticed something strange when I was using frame buffers to do offscreen rendering. I am rendering a cube to a texture and then that texture onto a plane. It all worked and I decided to skip the depth buffer so I commented out block 1 & block 2…

nyvaken
- 120
- 1
- 7
-1
votes
1 answer
Separate stencil with FBO (NVidia)
I'm trying to have a FBO with separate depth and stencil buffers.
I know that NVidia GPU's historically only supported packed depth/stencil.
However I stumbled on the ARB_texture_stencil8 extension and wonder how to use it against a FBO.
This code…

Anton Duzenko
- 2,366
- 1
- 21
- 26
-1
votes
1 answer
OpenGL - FBO black screen when rendering to texture on NVIDIA card
I've followed some tutorials on how to setup and render an FBO. At first it worked and the scene rendered fine, but it turns out the program was using the integrated GPU. (I'm using my laptop)
Then, out of curiosity, I ran it with the…

aslg
- 1,966
- 2
- 15
- 20
-1
votes
1 answer
OpenGL ES 2.0 - iOS - Render to texture using FBO
Based on the tutorial :
"http://www.raywenderlich.com/4404/opengl-es-2-0-for-iphone-tutorial-part-2-textures"
and the book "Open GL ES 2.0 Programming Guide"
I'm trying to render a scene to a FBO texture, and then render that FBO texture on the…

Xys
- 8,486
- 2
- 38
- 56
-1
votes
1 answer
OpenTK drawing to FBO, coloring not as expected
I have a utility class for Framebuffer objects which i use to generate FBO's, bind them, render to them, and render them to screen as 2d textures.
When using this class, i can successfully make fbo textures, render to them, and render them to…

Timothy Groote
- 8,614
- 26
- 52
-1
votes
1 answer
LWJGL FBOs - Depth Testing Doesn't Work (Simpler code)
When I render to FBO, the depth testing appears to fail, but when I don't it works beautifully. Weirdly, though, on the more complex version (I haven't tested this one), when I tested it on school computers (Not when I should be working of course!…

Superdavo
- 301
- 2
- 8
-1
votes
1 answer
Why does rendering to a FBO cause the texture to be darker?
Rendering to a FBO then to the screen buffer appears to make the texture darker.
As seen here -> https://i.stack.imgur.com/ChpgR.jpg
RenderTarget target = new RenderTarget(Display.getWidth(), Display.getHeight());
RenderTarget class can be found…

P4rk
- 11
- 1
-1
votes
1 answer
How can I get RGB pixels from an opengl FrameBufferObject for libx264 encoding?
I want to get RGB pixels from the FrameBufferObject: fboName.
Is there any method ?
Do memmory map from GPU to CPU cost large time ?
glGenFramebuffers(1, &fboName);
glBindFramebuffer(GL_FRAMEBUFFER, fboName);
…

XieRan
- 1
- 1