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

LibGDX FrameBuffer scaling

I'm working on a painting application using the LibGDX framework, and I am using their FrameBuffer class to merge what the user draws onto a solid texture, which is what they see as their drawing. That aspect is working just fine, however, the area…
Synthetik
  • 219
  • 3
  • 11
6
votes
2 answers

Linux framebuffer graphics and VSync

I'm making a game in C that works on the linux framebuffer. So far I have a red 100x100 square that moves in tandem with the mouse, just like a pointer. I have implemented double buffering and it works correctly (the square doesn't flicker). The…
user2199797
6
votes
2 answers

Draw Overlay in Android (system wide)

Is there a way to draw an overlay window always on top of any android application? I am using Android x86 port and have system rights. @Edit: The view below the overlay should receive all events.
Friedrich
  • 645
  • 11
  • 26
6
votes
1 answer

mac os x access framebuffer raw data

I have to perform some task which need to access the screen data in the framebuffer of OS X. In 10.6.8 we can get the framebuffer base address by using Quart Display Service API, but we can not do this in 10.7 or 10.8. Apple suggest to get the…
Travis
  • 71
  • 4
6
votes
2 answers

Binding a stencil render buffer to a frame buffer in opengl

Have anyone done this succesfully? It seems whatever index format I use in the stencil render buffer glCheckFramebufferStatus(...) returns GL_FRAMEBUFFER_UNSUPPORTED. I've succesfully bound both a depth\color render buffer, but whenever I try to do…
Viktor Sehr
  • 12,825
  • 5
  • 58
  • 90
6
votes
1 answer

Framebuffer FBO render to texture is very slow, using OpenGL ES 2.0 on Android, why?

I am programming an Android 2d game using opengl es 2.0. After I draw my sprites to the backbuffer I draw lights to a FBO and try to blend it to the back buffer again. When I draw the FBO to the framebuffer, even trasparent without any color, the…
mao
  • 75
  • 1
  • 3
  • 5
5
votes
3 answers

Blend FBO onto default framebuffer

To clarify, when I say 'default framebuffer' I mean the one provided by the windowing system and what ends up on your monitor. To improve my rendering speeds for a CAD app, I've managed to separate out the 3D elements from the Qt-handled 2D ones,…
cmannett85
  • 21,725
  • 8
  • 76
  • 119
5
votes
2 answers

pygame.display.init() fails for non-root user

Tl;dr I need to use pygame but it can't initialize the screen as a normal user because of the permissions for the framebuffer driver. root can do pygame.display.init() but not the user. User is in the group 'video' and can write on /dev/fb0. What…
vinalti
  • 966
  • 5
  • 26
5
votes
1 answer

OpenGL Framebuffer Render to Texture not Working

I'm experimenting with framebuffers to create a glow effect using Java and JOGL, but I am having problems. At the moment, my goal is to render my spaceship model, textured with an illumination texture, to a framebuffer texture and then draw the…
Wagan8r
  • 468
  • 5
  • 18
5
votes
1 answer

Using OpenGL ES 2.0 FrameBuffer (FBO) and Stencil in android Native code (ndk)

I am trying to generate a frambuffer object and use stencil inside a native android application using the NDK (r5b). Target device is running froyo 2.2, supporting OpenGL ES 2.0. So, I've been coding lots of gl code in my c++ native libs and havent…
oberthelot
  • 1,310
  • 1
  • 11
  • 23
5
votes
1 answer

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 shading, I am rendering the scene with a dedicated…
5
votes
1 answer

OpenGL framebuffer attachments leak GPU memory

Consider the following test code: for (int i = 0; i < 100; ++i) { GLuint fboid = 0; GLuint colortex = 0; GLuint depthtex = 0; // create framebuffer & textures glGenFramebuffers(1, &fboid); glGenTextures(1, &colortex); …
Asylum
  • 569
  • 4
  • 21
5
votes
2 answers

How to use OpenCL to write directly to linux framebuffer with zero-copy?

I am using OpenCL to do some image processing and want to use it to write RGBA image directly to framebuffer. Workflow is shown below: 1) map framebuffer to user space. 2) create OpenCL buffer using clCreateBuffer with flags of…
Binn
  • 51
  • 1
5
votes
1 answer

OpenGL Render to Transparent Texture

I have a system to render different objects into different RGBA textures using OpenGL in C++. I'd like to layer these textures on top of eachother, but my problem is that each texture has the glClearColor rendered into it. How to tell OpenGL to make…
GDN9
  • 329
  • 3
  • 15
5
votes
2 answers

How could OpenGL buffers' state persist between program runs?

I'm writing an OpenGL program that draws into an Auxiliary Buffer, then the content of the Auxiliary Buffer is accumulated to the Accumulation Buffer before being GL_RETURN-ed to the Back buffer (essentially to be composited to the screen). In…
Lie Ryan
  • 62,238
  • 13
  • 100
  • 144