Questions tagged [fbo]

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.

421 questions
8
votes
1 answer

OpenGL ES2.0 offscreen context for FBO rendering

I would like to do offscreen rendering (in console environment without any WS) with FBOs. I know that it is necessary to create an OpenGL context, and at least a dummy window for any operation, therefore I did the following initialization: // Step 1…
K0bi
  • 101
  • 1
  • 5
7
votes
1 answer

FBO Blitting is not working

I'm trying to render a multisampled scene to texture, here is the code I'm using. I'm getting a black screen. I check the fbo completeness at the end of init, and they report that both fbo's are complete. void init_rendered_FBO() { …
Steven Lu
  • 41,389
  • 58
  • 210
  • 364
7
votes
1 answer

Is it possible to attach the default renderbuffer to a FBO?

I'm considering refactoring a large part of my rendering code and one question popped to mind: Is it possible to render to both the screen and to a texture using multiple color attachments in a Frame Buffer Object? I cannot find any information if…
Andos
  • 202
  • 3
  • 12
7
votes
1 answer

Anti-Aliasing issue with MSAA, drawing CSG with depth and FBO

I have reimplemented OpenCSG for modern OpenGL version. PixelFormatAttributes: NSOpenGLPFAColorSize , 24 , NSOpenGLPFAAlphaSize , 8 , NSOpenGLPFADepthSize , 32 , NSOpenGLPFAStencilSize , 8 , NSOpenGLPFAAccelerated …
Volodymyr B.
  • 3,369
  • 2
  • 30
  • 48
7
votes
2 answers

Android Opengl FBO offscreen

I'm developing an Android application type finger paint. I'm using OpenGL ES 2.0. Basically I have an image where every touch screen should correspond to a circle alpha to be applied where it is shown the other image that lies beneath. I tried…
6
votes
1 answer

COLOR_ATTACHMENT's - How to render to multiple textures as color attachments inside a Framebuffer Object?

I am trying to render to multiple textures as COLOR_ATTACHMENTs without success. All I get from displaying them is a black screen (with a red clear fill) meaning my texture is read but is 'empty'. My pseudo code is : attach 3 textures to an FBO with…
PinkTurtle
  • 6,942
  • 3
  • 25
  • 44
6
votes
1 answer

Render to texture or offscreen framebuffer

I have a problem with rendering to texture and offscreen framebuffer with OpenGLES on iPhone. (source: imagehost.org) (source: imagehost.org) First image shows mahjong tiles rendered to CAEAGLLayer directly and this is correct. Second one shows…
sfider
  • 193
  • 3
  • 13
6
votes
0 answers

incomplete attachment using GL_TEXTURE_2D_ARRAY with depth component

I'm trying to use opengl texture arrays for storing a lot of shadow maps. Unfortunately, I always get an "incomplete attachment" error on checking the framebuffer. I tried to set up my texture array like in nvidia's cascaded shadow mapping example…
maumau
  • 61
  • 2
5
votes
1 answer

How to render Framebuffer Objects on multi-sampled textures?

I currently have a rendering engine using multiple passes in which various parts of the image are rendered on textures, and then combined using shaders. It works, and now I would like to activate multi-sampling. I read here (…
PierreBdR
  • 42,120
  • 10
  • 46
  • 62
5
votes
1 answer

openGL / GLSL: bloom/blur, rendering to FBO

I've reached another impasse I can't seem to resolve on my own. I really hope someone can help me out. I've been trying to create a nice little bloom effect using GLSL, which worked quite well. When I tried including something moving into my scene I…
Oradon
  • 111
  • 2
  • 6
5
votes
0 answers

vtkRenderWindow off-screen rendering

I would like to do off-screen rendering of vtkRenderWindow into the frame buffer object. I'm not sure how to do so, but what I think is that: generate frame buffer using glGenFramebuffers - obtain GLuint fbo_id create vtkFrameBufferObject from…
Michal Gallovic
  • 4,109
  • 2
  • 18
  • 25
5
votes
1 answer

In OpenGL is it possible for one shader program, in one draw call, to render to both an FBO and the default framebuffer?

I would like to draw a scene to the default framebuffer, while also drawing some auxiliary data related to some of my drawn models to an offscreen buffer with the same image dimensions as the default framebuffer. I understand I can do these two…
mjwach
  • 1,174
  • 2
  • 9
  • 25
5
votes
1 answer

How does SLI decide which VBO belongs to which GPU in OpenGL?

I am aiming to use SLI in AFR mode to increase FPS. I am under the impression that NVIDIA SLI driver will allocate the VBOs automatically and intelligently to individual GPUs. Is this correct? I have a code that has a large amount of vertices/faces…
user3667089
  • 2,996
  • 5
  • 30
  • 56
5
votes
1 answer

Linux Rendering offscreen with OpenGL 3.2+ w/ FBOs

I have ubuntu machine, and a command line application written in OS X which renders something offscreen using FBOs. This is part of the code. this->systemProvider->setupContext(); //be careful with this one. to add thingies to identify if a…
csotiriou
  • 5,653
  • 5
  • 36
  • 45
5
votes
1 answer

Is glEnable kept when switching FBO?

When I set stuff with glEnable, or specify func to the things I enable, and then switch frame buffer object, are my settings kept for each frame buffer object, or do I have to set them for each one? In practice, does this…
darius
  • 837
  • 9
  • 22
1
2
3
28 29