Questions tagged [framebuffer]

In general a framebuffer is a graphic hardware-independent abstraction layer used to display output to a monitor or display.

Resources:

1142 questions
3
votes
1 answer

Rendering viewport to texture produces overlaps viewports?

I'm creating a 2D Engine and I want to implement docking, so I need to create a viewport and render the screen to a texture. To render the viewport I'm saving the framebuffer into a FrameBufferObject and drawing as normally, I used this technique…
3
votes
1 answer

OpenGL drops performance when writing to nonzero FBO attachment on AMD

I noticed that my 3D engine runs very slow on AMD hardware. After some investigation the slow code boiled down to creating FBO with several attachments and writing to any nonzero attachment. In all tests I compared AMD performance with the same AMD…
Sergey
  • 7,985
  • 4
  • 48
  • 80
3
votes
1 answer

How to capture HDR framebuffer in Windows?

I use the following code to read the standard 8-bit framebuffer, however I need to read the 10-bit HDR framebuffer that's used for HDR content on my HDR monitor. As far as I can tell, BI_RGB is the only relevant enum option. Here's what I have so…
Richard Robinson
  • 867
  • 1
  • 11
  • 38
3
votes
0 answers

Specify pixel format for Qt Framebuffer

I am developing a application on an iMX6UL board using Qt 5.11 and framebuffer platform plugin. The underlying board has connected 16 wires to a 24-bit RGB parallel display, so the output format is RGB565. Apparently Qt expects RGB24 (...does it?)…
sorush-r
  • 10,490
  • 17
  • 89
  • 173
3
votes
1 answer

Saving a glTexImage2D to the file system for inspection

I have a 3D graphics application that is exhibiting bad texturing behavior (specifically: a specific texture is showing up as black when it shouldn't be). I have isolated the texture data in the following call: glTexImage2D(GL_TEXTURE_2D, 0,…
George
  • 6,927
  • 4
  • 34
  • 67
3
votes
1 answer

WebGL2 -- How to store and retrieve 3D texture data needed by 3D grid of vertices to calculate new vertex positions

3D Physics simulation needs access to neighbor vertices' positions and attributes in shader to calculate a vertex's new position. 2D version works but am having trouble porting solution to 3D. Flip-Flopping two 3D textures seems right, inputting…
billvh
  • 57
  • 5
3
votes
0 answers

How access to display device in embedded-linux + Qt ? /dev/fb0 not found

1-I have built Qt5.4.1 and Qt4.8.4 for an embedded device (based on armv5tejl) and all things work except GUI. 2-It seems that no frame buffer device exists: ~/bin $ ls -alh /dev/ drwxr-xr-x 3 0 sandbox 0 Nov 10 11:48 . drwxr-xr-x …
3
votes
1 answer

managing linux framebuffer(fb0) permission in low level c graphics code

I'm trying to learn low level graphics programming on linux using C. I'm fairly new to both linux and C. I'm trying to figure out the most responsible way to manage permissions for /dev/fb0 in my code. my code: #include #include…
Logan Bender
  • 31
  • 1
  • 3
3
votes
1 answer

How to only send self-allocated framebuffer to OpenMV IDE?

For a motion detection algorithm on the OpenMV platform, I allocate a second framebuffer, which is being updated every frame. Now the algorithm works, but I would like to show the result framebuffer in the OpenMV IDE. As shown in this thread, it is…
cansik
  • 1,924
  • 4
  • 19
  • 39
3
votes
1 answer

Why doesn't my small C loop print correctly to the frame buffer, but its unrolled version does?

I'm trying to write a simple C program that draws a 4x4 pixels white solid square at position (x, y) = (50, 50). The idea is to write directly to the Linux frame buffer, which starts at the mapped memory fb->fp. Now, the problem is that the…
Jardel Lucca
  • 1,115
  • 3
  • 10
  • 19
3
votes
1 answer

QOpenGLWidget with custom framebuffer and multiple render targets

Related to my other question, I'm trying to render a segmentation mask to enable object picking. But I am not able to achieve the desired result. Option 1 did not work at all. I was not able to retrieve the content of color attachment 1, or check if…
Florian Blume
  • 3,237
  • 17
  • 37
3
votes
2 answers

Add render target to default framebuffer of QOpenGLWidget

I'd like to add a second render target to the default framebuffer of a QOpenGLWidget. The reason is that I'd like to implement object picking and check whether the user hit an object by rendering a segmentation mask into gl_FragData[1].…
Florian Blume
  • 3,237
  • 17
  • 37
3
votes
1 answer

glDrawElements: Source and destination textures of the draw are the same

I'm busy transferring some code from OpenGL to WebGL2 (to do duel depth peeling) but I'm getting a warning in my console that I cannot make sense of and the output is just black. I've gone through the process of drawing some of the buffers…
FanManPro
  • 1,076
  • 1
  • 13
  • 31
3
votes
0 answers

glTexImage2D memory usage in RAM (used in conjunction with an FBO)

When using glTexImage2D to attach textures to a Framebuffer Object (FBO), i recognized that the memory usage goes up in RAM. It looks like textures are allocated by OpenGL not only on the GPU but also in main memory. Why is that happening? Does it…
j00hi
  • 5,420
  • 3
  • 45
  • 82
3
votes
0 answers

Offscreen rendering with QOffscreenSurface - QPainter with Alpha pen-color failing

I have tried this method (Answer of NikitaFeodonit) for offscreen rendering and creating a QImage and saving to disk. Everything is working fine, except when using a QColor with Alpha-Channel for QPen. QPainter.drawEllipse without ALPHA in…
J.P.
  • 31
  • 2