0
votes
1answer
55 views

OpenGL 3.3: render to framebuffer w/o depth attachment

I want to render my scene to a framebuffer and store the RGBA values in a texture. For this, I attach a texture to GL_COLOR_ATTACHMENT0. When I define a GL_DEPTH_ATTACHMENT texture as well, everything ...
0
votes
1answer
40 views

(LWJGL) Pixel Unpack Buffer Object is Disabled? (glTextImage2D)

I am trying to create a render target for my game so that I can re-render at a different screen size. But I am receiving the following error: Exception in thread "main" ...
1
vote
1answer
148 views

Anti Aliasing: How to implement supersampling in OpenGL?

I'm learning OpenGL by working on a small Oculus Rift project, which implies, anti aliasing is everything :). Since the application of the barrel distortion shader requires rendering to a framebuffer ...
0
votes
1answer
29 views

Combine framebuffer-textures to default framebuffer

I know frame-buffers are not textures themselves, but they do contain a texture, given they are set up correctly, which I believe mine are, as: (status == GL_FRAMEBUFFER_COMPLETE) returns true. ...
0
votes
1answer
88 views

How to use FrameBuffer objects (OpenGL)

I want to draw a 2D scene and after the scene i want to draw some light effects. When i draw some light, i create a FBO, draw in it and when finished with drawing, i want to create a texture where i ...
3
votes
1answer
278 views

OpenGL FBO not being drawn to

In my project I'm trying to implement a deferred rendering system, problem is, I can't seem to get a second FBO to work. UPDATE 1 Here is the FBO initialization code: /// G-Buffer FBO GLuint ...
1
vote
1answer
448 views

OpenGL FBO, render off screen and texture

I need to do some offscreen render to use the rendered image in something different from OpenGL context (for instance I need to use the image in a QListWidgetItem inside a Qt application). After ...
0
votes
0answers
431 views

Multiple Render Targets, Multiple Fragment Shaders

I render a normal and a depth image of a scene. Then I want to reuse these two images to do further texture/image processing in a second fragment shader. I use a framebuffer with 3 textures attached ...
1
vote
1answer
74 views

What is the purpose of bitdepth for the several components of the framebuffer in glfwWindowHint function of GLFW3?

I would like to know what are the following "framebuffer related hints" of GLFW3 function glfwWindowHint : GLFW_RED_BITS GLFW_GREEN_BITS GLFW_BLUE_BITS GLFW_ALPHA_BITS GLFW_DEPTH_BITS ...
1
vote
0answers
319 views

How to implement OpenGL triple buffering

I'm trying to implement the triple buffering described here ...
0
votes
1answer
125 views

Framebuffer formats with enhanced Alpha precision

I render some lines with alpha values into an FBO. Because I play a lot with alpha, I need the alpha channel to have more detail than RGBA8. For example, RGBA32F works like a charm. As I have only a ...
2
votes
0answers
220 views

glFramebufferTexture2D gives corruption with cube map textures

I am using glFramebufferTexture2D with cube map textures but it gives corruption in texture. draw_cube() function works perfectly when i draw that on default framebuffer. GLenum ...
1
vote
2answers
239 views

Deferred rendering order?

There are some effects for which I must do multi-pass rendering. I've got the basics set up (FBO rendering etc.), but I'm trying to get my head around the most suitable setup. Here's what I'm ...
4
votes
0answers
819 views

OpenGL problem with FBO integer texture and color attachment [closed]

In my simple renderer, I have 2 FBOs one that contains diffuse, normals, instance ID and depth in that order and one that I use store the ssao result. The textures I use for the first FBO are RGB8, ...
2
votes
2answers
1k views

OpenGL : sluggish performance in extracting texture from GPU

I'm currently working on an algorithm which creates a texture within a render buffer. The operations are pretty complex, but for the GPU this is a simple task, done very quickly. The problem is that, ...