All Questions
Tagged with framebuffer opengl
439
questions
-1
votes
0
answers
10
views
Why are textures warping after I switch computers?
I had been on a trip for a while, and I worked on my opengl project on my laptop while I was gone. When I got back a couple days ago, I decided to start working on it again, but this time on my main ...
0
votes
1
answer
63
views
OpenGL: Render Framebuffer into Framebuffer
I am currently working on a c++ program using OpenXR with OpenGL. I managed to render everything that I wanted into VR.
I have one framebuffer per eye, and then 3 more for layers (crosshair/menu) ...
0
votes
1
answer
47
views
Using Depth FBO for shadow map causes weird behaviour
I am using Silk.Net for OpenGL interfacing, loading .obj files for model and material data.
Everything works as I would want it, and tried to add Shadow Mapping to the whole thing (following ...
0
votes
0
answers
38
views
What happens when rendering an OpenGL buffer that has been padded with NULL (or another value)?
I have the following setup:
S - the scene that includes terrain, some houses and other man-made objects
T - a set of tree configurations that I would like to iterate through and place in S.
Every ...
0
votes
1
answer
61
views
glBlitFramebuffer - glReadBuffer and glDrawBuffer refer to the same buffer
Just for learning purposes I test what happens when I call glBlitFramebuffer when glReadBuffer and glDrawBuffer refer to the same buffer. The custom framebuffer is defined this way:
bool initFBO()
{
...
-1
votes
1
answer
70
views
Fragment Shader Multiple Output and Reading from FrameBuffer Object Issue
I have 2 outputs in fragment shader first one's output color (RGBA) and the second one's is a number which will serve as an id but I try to read it from frameBuffer it always returns 0.
The way how I ...
0
votes
0
answers
67
views
Frame Buffer data format explanation
With a frame buffer like this
glGenFramebuffers(1, &frameBufferObject);
glBindFramebuffer(GL_FRAMEBUFFER, frameBufferObject);
glGenTextures(1, &frameBufferTexture);
glBindTexture(GL_TEXTURE_2D,...
-1
votes
1
answer
97
views
Framebuffer object picking
I am trying to use a frame buffer for object picking and trying to use stbi_write_png to see what i'm rendering as this frame buffer is not going to be rendered to the screen. I want to use unsigned ...
0
votes
1
answer
143
views
Framebuffer texture not getting passed to shader and not showing on screen
I'm writing a program that can composite two images through shaders and save the result locally. Simply outputting to the viewport would cut offscreen pixels and I wanted to make it windowless, so I ...
1
vote
0
answers
242
views
Using framebuffer to draw pixel data from CUDA
I am running CUDA code to calculate colour data for each pixel in OpenGL, which I store in a buffer object. I need to display this data on the screen. I decided to create a texture from the data and ...
1
vote
0
answers
91
views
Why is the framebuffer texture completley blank?
I have this problem, where I have 2 framebuffers. And I draw to a different one each frame. So on the first frame it would be the first framebuffer, then the second, then the first again and so on. ...
-1
votes
1
answer
290
views
Rendering to framebuffer and then to screen has reduced quality
I seem to have a problem with my rendering. When I render to a framebuffer and then to screen, the images just seem less vibrant and kind of faded. Even simple ones.
In the picture above, the pink ...
0
votes
1
answer
311
views
Does dual-source blending require larger color buffer?
In OpenGL, we can turn on dual-source blending through following code in fragment shader:
layout(location = 0, index = 0) out vec4 color1;
layout(location = 0, index = 1) out vec4 color2;
And through ...
1
vote
0
answers
119
views
Using a frame buffer yields strange results?
I am very new to OpenGL (OpenTK), and I tried to get my first frame buffer working so I could apply post processing effects. However, when I try to draw the frame buffer it draws in the wrong place.
...
2
votes
1
answer
448
views
OpenGL ping pong feedback texture not completely clearing itself. Trail is left behind
The goal:
Effectively read and write to the same texture, like how Shadertoy does their buffers.
The setup:
I have a basic feedback system with 2 textures each connected to a framebuffer. As I render ...