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
2 answers

How to do something like Photoshop's screen Blending with glBlendFunc (OpenGL ES 1.x)?

I have a simple one channel (8bit) bitmap with luminance data only, and I want to blend it with the existing framebufer like Screen blending mode does it in Photoshop. So the source's white pixels (255) should result white, source's 50% gray pixels…
Geri Borbás
  • 15,810
  • 18
  • 109
  • 172
3
votes
1 answer

how to pass stencil from a framebuffer to another

I'm struggling to understand why in the code below, the stencil tests work as expected when i render straight to the screen and doesnt when i attempt to use framebuffers. I have no problem using these framebuffers for multipass postprocessing on…
3
votes
1 answer

Why is render glyph so slow?

I use linux framebuffer draw chinese by freetype2, and compare the fbterm Font::Glyph *Font::getGlyph(u32 unicode) void Screen::draw##bits(u32 x, u32 y, u32 w, u8 fc, u8 bc, u8 *pixmap) and remove cache glyph part. if (glyphCache[unicode])…
descent
  • 29
  • 4
3
votes
1 answer

How to change default framebuffer for Android?

i'm porting android to an overo gumstix. thus it seems the the omapfb driver has some problems on that platform. it doesn't matter at all, because i want to use udlfb (a driver for usb displays) anyway. till today, i wasn't able to figure out how i…
manu
  • 967
  • 1
  • 11
  • 28
3
votes
2 answers

Easiest way for offscreen rendering with QOpenGLWidget

I have a hidden QOpenGLWidget (Qt 5.4.2, NOT QGLWidget) and I want to basically continually do grab() or grabFramebuffer() to get its content (and write it to disk). The widget renders fine when visible, but does not when hidden. If I do a show()…
Bim
  • 1,008
  • 1
  • 10
  • 29
3
votes
4 answers

Touchscreen with Qt5 embedded not working

I have qt5 embedded with Linux. My touchscreen does not work when I run my program with Linux frame buffer, for example: ./myprog -plugin tslib:/dev/input/event0 More details: ts_calibrate works fine when I run my program with ./myprog -platform…
Andrew P.
  • 223
  • 2
  • 4
  • 11
3
votes
1 answer

Blurring the depth buffer in OpenGL - how to access mipmap levels in a fragment shader?

I'm trying to blur a depth texture by blurring & blending mipmap levels in a fragment shader. I have two frambuffer objects: 1) A color frambuffer with a depth renderobject attached. 2) A z framebuffer with a depth texture attached. Once I render…
Dennis Ward
  • 747
  • 3
  • 8
  • 21
3
votes
1 answer

How to render color and depth in multisample texture?

In order to implement "depth-peeling", I render my OpenGL scene in to a series of framebuffers each equipped with a rgba color texture and depth texture. This works fine if I don't care about anti-aliasing. If I do, then it seems the correct thing…
Alec Jacobson
  • 6,032
  • 5
  • 51
  • 88
3
votes
2 answers

Libgdx - FrameBuffer rendering and FitViewport

I use ortho camera and FitViewport at my project. In my render() method i create a fremeBuffer to store actual state of my game, then create a pixmap of that buffer and finally i set a new shader and do my postprocess stuff with that frame: //---…
3
votes
0 answers

how to lock Linux framebuffer temporary in c

I need to lock the Linux framebuffer in C for capture raw data and then release to continue. Similarly as is done in SDL when you lock/unlock surfaces for accessing. I´m not using SDL or OPENGL. I´ve used mmap ( as it can trigger lock for the…
hobb
  • 31
  • 1
3
votes
0 answers

What might be causing only half of textures to be drawn in an Android game?

I've had reports from a couple of users (from 85000 downloads) of the problem shown in the image below. No doubt it has occurred a few more times than this, but it's certainly rare. I'm unable to reproduce the problem and don't believe it's specific…
Will Calderwood
  • 4,393
  • 3
  • 39
  • 64
3
votes
1 answer

tranferring android framebuffer to another devices

I'm planning to make a program to connect each other and control thier android device yes, It's sort of remote control native application. so, I'm wondering about that the frame buffer in android can be tranfered by streaming technologies such as…
engeniuses
  • 43
  • 4
3
votes
2 answers

Problem with JOGL and Framebuffer Render-to-texture: Invalid Framebuffer Operation Error

Okay, so I am trying to render a scene to a small 32x32 texture and ran into problems. I get an "invalid framebuffer operation" error when I try to actually draw anything to the texture. I have simplified the code below so that it simply tries to…
John
  • 2,012
  • 2
  • 21
  • 33
3
votes
1 answer

Is it possible to bypass Android's surfaceflinger?

I asked a related question recently, but I forgot to ask this question explicitly. (I want to implement a double-buffer scheme in an Android app using OpenGL ES 2.0, and Android's default scheme seems a little too unpredictable.)
Janin zah
  • 201
  • 2
  • 14
3
votes
0 answers

Raspberry Pi javaFx Displaylink framebuffer

I want to use my Raspberry Pi with a javaFx GUI on a USB Displaylink Display. I build my own kernel an enabled the displaylink framebuffer support. When I start the Raspberry the display gets the framebuffer fb1 and the output of the javaFx program…
Fx22
  • 31
  • 2