Questions tagged [framebuffer]

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

framebuffer
Filter by
Sorted by
Tagged with
0 votes
0 answers
263 views

iOS OpenglES 3.0 rendering to texture fails with depth attachment

Rendering into texture in my mobile app works fine when the rendertarget texture has no depth attachment. When I add a depth attachment, it stops working on iOS. Apparently can't switch back to the ...
Gravitysensation's user avatar
0 votes
0 answers
318 views

Fail to render in SFML after rendering to an opengl framebuffer

My goal is to create noise, render with a shader on a framebuffer, and pull the data on the CPU. I don't need to do further rendering with opengl in the loop, I only need it once, at the beginning. I ...
jokoon's user avatar
  • 6,433
0 votes
0 answers
111 views

Userspace code not calling framebuffer write cb

I have written a custom QEMU framebuffer device. In support of this I also wrote a framebuffer driver for Linux. cat /dev/urandom > /dev/fb0 works wonderfully and calls my fb_write callback (...
foreverska's user avatar
2 votes
2 answers
3k views

Rendering compute-shader output to screen

I'm trying to set up a pipeline to do some raymarching-rendering. At first I set up a vertex and a geometry shader to take just 1 arbitrary float, and make a quad so I can use just the fragment ...
eylion's user avatar
  • 172
2 votes
1 answer
817 views

Problem Mapping Framebuffer Device Memory using C#/Mono on Raspberry PI

I am trying to directly access video memory for a framebuffer video device on a Raspberry Pi using C# code running via Mono. I have a C program that works fine, but when I port it to C# it ...
BoCoKeith's user avatar
  • 897
1 vote
0 answers
691 views

what is the difference between framebuffer and x-server?

In Linux, always there is a driver node called "fbx" and it's used to render the image data in memory to the screen. In my opinion, x-server render the display through framerbuffer. Is that right? If ...
Ezra Ma's user avatar
  • 37
1 vote
0 answers
1k views

Rotate framebuffer works only with 180° and 0°

I'm trying to rotate the framebuffer on my Yocto machine (version 1.7.3) because I need to use the its related display in portrait mode. I followed theese commands: cd /sys/class/graphics/fb0 echo 1 ...
Merlin's user avatar
  • 11
19 votes
1 answer
19k views

SDL2 on Raspberry Pi without X?

I'm hoping to develop some code that uses SDL2 to display graphics on the 7" RPi touchscreen, but I'd rather not install a full desktop OS. I've got Raspbian Buster Lite installed. Some simple ...
Rick's user avatar
  • 3,527
1 vote
0 answers
178 views

How can I show framebuffer drawing on surfaceview?

I have done some drawings on framebuffer, but they just do not show up on my surfaceview? JNI code: extern "C" JNIEXPORT jint JNICALL Java_com_example_testskia_Skia_initFramebuffer(JNIEnv *env, ...
johnhao's user avatar
  • 11
1 vote
1 answer
155 views

Depth test discards fragments on custom framebuffer

In my programm I render multiple matrices to different framebuffers. At the end I render the textures created by the framebuffers to three 2D quads. The problem is that the Depth test discards all ...
Kaaarl's user avatar
  • 33
1 vote
1 answer
314 views

OpenGL) Shadow mapping makes the object look reddish

I was trying to implement shadow mapping to my opengl program that loads an fbx file, but the model ends of being reddish if I use a depth map. Here is the result. I didn't draw the floor on purpose. ...
Peter's user avatar
  • 478
1 vote
0 answers
341 views

Ways to achieve an exact frame rate with the Linux framebuffer

I try to write a program that draws a pattern like a chessboard and then changes the colors black <-> white with an exact frame rate. The frame rate should be adjustable beforehand. For each color ...
Klaus Schwarz's user avatar
3 votes
1 answer
537 views

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 ...
Sergey's user avatar
  • 8,115
1 vote
0 answers
69 views

Fast streaming to framebuffer

What is the most best method to write a stream/array of raw RGB pixels (format as required by Xorg) to a window of fixed size? No synchronisation is required, nor are there any timing requirements, ...
Amr Memdu's user avatar
1 vote
2 answers
358 views

Pygame slideshow delay anormally long

I'm setting up a Slideshow system mixing images and videos, from a directory. I'm using a Raspberry Pi B, pygame and vlc. I didn't install X so everything happens in framebuffer. My actual code is ...
SecT0uch's user avatar
1 vote
0 answers
107 views

Can Graphics Magick show preview images in terminal?

I typed in gm display image.jpg and got an error message Unable to open X server. Is there a way to pipe the output of that image file to /dev/fb0 [video framebuffer] to preview the image in ...
Lid's user avatar
  • 115
1 vote
0 answers
158 views

Default framebuffer operations support 16 colors only?

I am writing a custom framebuffer device driver in Linux. One of the structures that has to be filled in is fb_ops, which has several methods, fb_imageblit being one of them. From what I understand ...
Arne J's user avatar
  • 415
2 votes
1 answer
1k views

Render to Framebuffer/texture shows empty

I am trying to render to a framebuffer (with the same size as the window/screen) for post processing. Everything is in 2D so it should not give much trouble. Rendering directly to the screen works ...
leechmasterb's user avatar
3 votes
1 answer
2k views

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 ...
Richard Robinson's user avatar
1 vote
1 answer
600 views

How to keep coordination between particles and which texture pixel contains each one’s information?

Using a 4x4x4 grid as an example, I have 64 vertices (which I’ll call particles) which start with specific positions relative to each other. These 64 particles will move in the x, y and z directions, ...
billvh's user avatar
  • 57
0 votes
1 answer
391 views

How to render individual pixels for one layer of a 3DTexture in a framebuffer?

I have a 4x4x4 3DTexture which I am initializing and showing correctly to color my 4x4x4 grid of vertices (see attached red grid with one white pixel - 0,0,0). However when I render the 4 layers in a ...
billvh's user avatar
  • 57
0 votes
1 answer
624 views

How to fix strange artifacts when applying Gaussian blur in OpenGL ES 2.0

I am getting strange artifacts when applying Gaussian Blur for a bloom effect in OpenGL ES 2.0 (with QT), as you can see below. On the left is with the bloom effect enabled, and on the right is with ...
Danny's user avatar
  • 405
5 votes
1 answer
850 views

Resolution of multi-sampled frame-buffer with multiple color attachments

Trying to implement Anti-aliasing on top of deferred shading, I'm attempting to use multi-sampled render buffers and then resolve the samples with a buffer-blit pass. As is traditional in deferred ...
Smoove's user avatar
  • 183
6 votes
1 answer
5k views

How to rotate a Qt5 application using the linux framebuffer?

I have an embedded linux application running directly on the linux framebuffer (no x-Windows). We now have to physically rotate the display 180 degrees. How do I get my Qt application to rotate so ...
KyleL's user avatar
  • 1,399
0 votes
1 answer
126 views

Correct way to erase for paint blending with intermediate framebuffers

My scene is composed of layers that render to framebuffers. Within the framebuffers, elements are drawn back to front and are blended with ColorWithAlpha or EraseWithAlpha. Framebuffers are blended ...
user1832287's user avatar
2 votes
1 answer
966 views

How to overcome differences between off-screen and on-screen framebuffer rendering?

I'm trying to use an off-screen framebuffer to replicate a scene that renders wonderfully to the default framebuffer. There seem to be differences in the rendering that I can't sort out. For context,...
Danny's user avatar
  • 405
3 votes
0 answers
520 views

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 ...
sorush-r's user avatar
  • 10.7k
1 vote
0 answers
272 views

Linux framebuffer bits_per_pixel vs offset values for determining pixel format

The fb_var_screeninfo has several fields that I can use for determining the pixel formats, most notably bits_per_pixel and length / offset fields for red / green / blue / alpha ("transp") channels. ...
dv_'s user avatar
  • 1,287
1 vote
2 answers
6k views

Text overlay on video ESP32

I've started playing around with an ESP32-CAM. The demo Arduino camserver scripts work quite well with the face recognition etc. but now I'm trying to implement something useful. I know that the ...
eben80's user avatar
  • 83
1 vote
1 answer
166 views

How to debug a frame buffer application using gdb

I am debugging a Linux frame buffer application with gdb. The problem is, ever since I entered into graphic mode, gdb is no longer available. What should I do? If gdb is not working in this case, what ...
Tony's user avatar
  • 642
2 votes
1 answer
397 views

Opengl ES 2.0 glDeleteFramebuffers after drawing to texture

I render to texture using frame buffer. But I am not sure when should I correctly use glDeleteFramebuffers. Should fbo exist while texture exists, or can I safely call glDeleteFramebuffers after last ...
user1063364's user avatar
1 vote
1 answer
229 views

How to quickly erase huge block of video RAM in 32-bit assembly

I am trying to make my own simple 3D rendering engine in assembly totally from scratch. So I run it from DOS, switch to 32-bit PM and all that stuff.... Finally I got working transformations with ...
Segy's user avatar
  • 213
3 votes
1 answer
2k views

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 ...
George's user avatar
  • 7,167
7 votes
1 answer
581 views

Drawing to a FrameBuffer causes Y to be inverted

I want to use a framebuffer to create an image using a shader program. This works well, except that the Y is inverted. It seems that the bottom left corner becomes the top left corner. Why does this ...
Alexanus's user avatar
  • 689
2 votes
1 answer
2k views

How to access display device from docker

I have a frame buffer sample code(square.c) to draw a square on screen.It was successfully executed on my Virtual Machine.Now i have to run this c application inside a Ubuntu container.But when i run ...
Sreejin K's user avatar
3 votes
1 answer
1k views

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-...
billvh's user avatar
  • 57
1 vote
0 answers
650 views

Framebuffer clone or mirror to an other framebuffer

I want to clone framebuffer content from /dev/fb0 to /dev/fb2. I am using iMx6Q running Debian 8 and my application runs on Qt5. I am not using X11 or Wayland. The application runs on a LVDS Display ...
Michael Liesenberg's user avatar
0 votes
0 answers
457 views

Find out which triangles were drawn OpenGL

I have an idea and I want to know if this would be possible in any way. I want to render a scene and use the resulting image to find out which triangles were or are visible from my current point of ...
killexe's user avatar
  • 427
1 vote
1 answer
359 views

Partial redraw to FBO OpenGL

My scene is organized into groups of elements that compose to FBOs backed by floating point textures (16 bit with alpha). These FBOs are then blended together top to bottom to produce the final scene. ...
user1832287's user avatar
0 votes
1 answer
1k views

How to write to a framebuffer in regl?

I am trying to update the texture inside a framebuffer in REGL. But for some reason, it does not update the framebuffer. here is the full code: const regl = createREGL({ extensions: '...
Peter Goes's user avatar
2 votes
2 answers
2k views

Not able to get a simple framebuffer rendered to a quad and displayed

This is my first venture into using framebuffers instead of using the default one (and then drawing the framebuffer texture onto the default framebuffer). I'm doing something wrong along the way and I'...
Water's user avatar
  • 3,405
0 votes
1 answer
213 views

OpenGL 3.0 ES - Disjoint read and write from same texture

I'm in a situation where I have a (n+1)x(n+1) texture attached to a framebuffer. My idea is to update this texture in 2 passes. Draw a full screen quad and use the scissor test to mask out the ...
user3042966's user avatar
1 vote
0 answers
774 views

Trying to build oe image with framebuffer

conf/local.conf MACHINE ??= "genericx86-64" PACKAGE_CLASSES ?= "package_ipk" SDKMACHINE ?= "x86_64" EXTRA_IMAGE_FEATURES ?= "debug-tweaks" USER_CLASSES ?= "buildstats image-mklibs image-prelink" #...
eri's user avatar
  • 3,314
2 votes
0 answers
517 views

How does Xorg manage multiple monitors if there's only one framebuffer?

X manages to display different things on each display even though if you write a frame to /dev/fb0 it will be identical on all displays connected to that GPU. What does X do differently than the ...
Ph9214's user avatar
  • 51
1 vote
0 answers
941 views

black screen flicker after starting QT linux application?

I used embedded linux (imx6q) with eglfs. Framebuffer is drawing black screen while starting Qt application. Simple application is black for 1sec under. Heavy application is for 4~5sec. This happens ...
dev j's user avatar
  • 39
2 votes
1 answer
2k views

How to draw a framebuffer object to the default framebuffer

This code is supposed to clear the background with yellow color using framebuffer object and render buffers but what I get is black background. #include <SDL2/SDL.h> #include <GL/glew.h> ...
Tristan's user avatar
  • 47
2 votes
0 answers
717 views

How can I run Qt5 GUI application on Raspbian Stretch Lite (without X)?

On Raspbian Stretch Lite, November 2018 version, with following Qt5 GUI application: #include <QApplication> #include <QLabel> int main(int argc, char *argv[]) { QApplication app(argc, ...
Ueda Takeyuki's user avatar
2 votes
1 answer
1k views

Blend negative value into framebuffer 0 opengl

The program renders a bunch of things into an intermediate framebuffer that uses an unsigned normalized texture to store the data. The intermediate framebuffer is blended with the default framebuffer. ...
user1832287's user avatar
4 votes
0 answers
222 views

Linux framebuffer detect change

I would like to detect when framebuffer is chaning on linux framebuffer without X. Where should I look into to find it? driver, kernel, a user space code? I know I can use cp /dev/fb0 fb0 to copy ...
greenyellow's user avatar
1 vote
0 answers
441 views

How check linux framebuffer changes fastly

I have a Qt application on an embedded Linux without X. I would like to see the screen remotely and I cannot use VNC or other solutions. Therefore, I am implementing it myself. I need to send a ...
PHA's user avatar
  • 1,618

1
3 4
5
6 7
23