Questions tagged [frame-buffer]
The frame-buffer tag has no summary.
71 questions
1
vote
2
answers
117
views
Initial FBO creation and render in SDL app failing ERROR: GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT
My voxel renderer app fails to create a framebuffer object only during launch / initial window resize event. It is an ERROR: GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT ...
0
votes
0
answers
288
views
How can I convert a raw pixel buffer (1D array) into a 2D array?
I have to deal with a raw buffer representing some pixels, specifically the pixels crate. So far I am able to do some magic from the examples, however it is terribly bad when it comes to readability ...
0
votes
0
answers
39
views
Not clearing FBO's Texture error in battery economy mode
When rendering inside a FBO's texture, I'm not using glClear() but overwriting each fragment, GL_BLEND is set to true.
This works just fine, but I just realised when my laptop switch to economy mode, ...
0
votes
2
answers
904
views
Why does reading my depth texture in GLSL return less than one?
I've created a depth texture in OpenGL (using C#) as follows:
...
0
votes
1
answer
405
views
Texture Glitches When Drawn to Quad
Recently been trying to implement volumetric lighting. The alphaness texture comes out perfectly on Renderdoc, however a strange glitch occurs whenever I either try to directly render the texture ...
0
votes
0
answers
118
views
offset texture attached to frameBuffer to render panorama
I would like to pre-render horizon of large landscape to texture and than paste it as cylindrical screen around the camera (to accelerate rendering of distant details)
Easiest would be make 8-gon ...
1
vote
1
answer
6k
views
How to get access to framebuffer as a uint32_t * in SDL2?
I am making my first foray into SDL. To do this, I would like to have direct access to the framebuffer on the window as a uint32_t *. This is because I have to pass ...
2
votes
2
answers
515
views
How can I position framebuffer objects on the screen in OpenGL?
I currently have two framebuffers which are drawn using
glBlitFramebuffer(0, 0, 1920, 1080, 0, 0, 1920, 1080,
GL_COLOR_BUFFER_BIT, GL_NEAREST);
But the ...
0
votes
3
answers
3k
views
OpenGL ES 2.0 Shadow Mapping - depth only FBO not working due to GL_FRAMEBUFFER_INCOMPLETE_ATTACHMEN
I am trying to add simple shadow mapping to my friends gles 2.0 app. It is based on gles 2.0 and PowerVR SDK.
The problem I encounter is that FBO is not valid due to ...
0
votes
2
answers
1k
views
LibGDX FrameBuffer no Transparency when drawing
I try to draw severeal Sprites to a FrameBuffer. The Sprites are PNGs with transparency. ...
1
vote
1
answer
3k
views
Game Loop delay the right way and game speed
I am a newbie game developer. I am trying to find a right way to create my game loop.
Consider following example.
Simple Android Game
I have a game with a simple gameplay - bouncing ball.
I want ...
0
votes
1
answer
637
views
OpenGL Regarding Frame/Buffer Caching
I have been trying to get myself refreshed on OpenGL ES. Whilst doing so, I had the following question in mind:
Does OpenGL have any "caching" mechanism?
For example:
Let's say we draw a stationary ...
5
votes
1
answer
426
views
Best way to initialize values on 32-bit FP framebuffer in OpenGL
I have a framebuffer bound to 32-bit FP texture:
...
2
votes
1
answer
1k
views
Opentk hdr rendering with framebuffer white screen problem
I am trying to do hdr rendering with two shader programs: one simply draws a hdr texture on a fullscreen quad and the other one does tonemapping.
I am trying either linear tonemapping
...
0
votes
1
answer
133
views
Achievements system like in Starcraft2
I am playing Starcraft2 and I am fascinated of how it is engineered. So lets say you played a 1v1 ranked game and you pumped 10 marines in the first 320 seconds. You'll get an achievement for that. I ...
2
votes
1
answer
273
views
How to determine what color will be written into single pixel framebuffer?
I thinking about rendering into single pixel (1x1) framebuffer.
For example we have two triangles which covers whole NDC area, one is green second red.
What color will be written to 1x1 framebuffer? ...
2
votes
1
answer
1k
views
Stencil Buffer not working as expected in OpenGL ES 2.0 (Android)
I'm trying to get to grips with the stencil buffer.
Apart from setting up viewport, camera, etc, my OpenGL ES 2.0 initialisation code is:
...
1
vote
1
answer
576
views
GLES multiple output buffers
I'd like to write multiple values (not just the color and depth value) in one pass to avoid redundancy in vertex shader. Therefore, i attach multiple (let's say two) color buffers (e.g. textures) to a ...
1
vote
1
answer
1k
views
How do I store an FBO'S as a cube map?
As of late I've been trying to implement Cubemaps in my engine, and have managed to get the rendering side of them working. Currently, I'm trying to implement a function for creating them, but I ...
2
votes
0
answers
633
views
OpenGL (lwjgl) Frame Buffer Object GL_COLOR_ATTACHMENT Not Being Written To
I am currently developing a deferred renderer for my game engine and I have to output multiple textures from my shader to my GBuffer.
I have been struggling with getting multiple outputs from the ...
0
votes
1
answer
1k
views
How to Render and Blend Multiple Frames to a Buffer in Unity?
I was wondering if anyone knew how to render multiple frames from a camera or texture to a buffer in Unity and to then blend them together? Is this possible? If so how would I go about doing so in ...
3
votes
1
answer
5k
views
OpenGL Framebuffer Object issue
I am struggling with implementing a proper Framebuffer Object .
glCheckFramebufferStatus is returning me:
GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT (36054).
What am i missing?
...
0
votes
1
answer
2k
views
In Unity, how can I check if an input was made x seconds/frames ago?
I'm using the Rewired input plugin, and it comes with an input buffer. I enabled the buffer for my directional keys and airdash button so that the player doesn't have to hit both keys on the same ...
1
vote
1
answer
188
views
What's wrong with my method of getting intermediate rendering to my postprocessing shader?
I'm working on a project in OpenGL. Earlier this week, I successfully implemented Deferred Shading, but I'm not sure how to pass the information from the Deferred Shader to the Post Processing Shader. ...
3
votes
1
answer
3k
views
Shadow map: depth texture always returns 0
I'm implementing a shadow map for the sun light in my voxel engine using a depth texture attached to a framebuffer. But when I sample the depth texture during the normal pass, the value returned is ...