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
4
votes
1 answer

Android Opengl ES 2.0 FrameBuffer not working

I'm working on a 2D Android project and I wish to draw stuff to an empty texture using an FBO and then draw that texture on screen. For debugging purposes, the FBO attached texture should immediately turn blue so I can tell that I am able to edit…
sgtHale
  • 1,507
  • 1
  • 16
  • 28
4
votes
1 answer

Render depth from framebuffer texture

I've been trying to add SSAO (based on the tutorial here: http://john-chapman-graphics.blogspot.co.nz/2013/01/ssao-tutorial.html) to a project of mine and I've gotten stuck on rendering the depth correctly. I have created a framebuffer texture to…
sler
  • 974
  • 1
  • 11
  • 19
4
votes
1 answer

mmap /dev/fb0 fails with "Invalid argument"

I have an embedded system and want to use /dev/fb0 directly. As a first test, I use some code based on example-code found everywhere in the net and SO. Opening succeeds, also fstat and similar. But mmap fails with EINVAL. Source: #include…
4
votes
1 answer

Differences between android framebuffer and linux framebuffer

Are there any differences between android framebuffer and linux framebuffer. Regards, Mayank
Mayank Agarwal
  • 447
  • 1
  • 7
  • 21
4
votes
1 answer

How to resolve a multisampled depth buffer to a depth texture?

I'm having trouble with the msaa depth buffer resolving to a depth texture. I create my glTexImage2d for both my color texture and my depth texture and bind them to the "resolve" ( non-msaa ) framebuffer. Then I create and bind another framebuffer…
4
votes
1 answer

Capture rendered image from OpenGL in Android and save it to a JPEG

I have a problem with saving a rendered image to my gallery as a jpeg file. I'm applying a photo effect from the android EffectFactory an render it on a glSurfaceView. Since now i#ve managed to take a screenshot of the image from my glSurfaceView.…
4
votes
1 answer

How to you define attaching a texture array to a FBO's color attachment point visually?

I read that in layered rendering, we create a 2D texture array (GL_TEXTURE_2D_ARRAY): glActiveTexture(GL_TEXTURE0); glBindTexture(GL_TEXTURE_2D_ARRAY, TextureColorbufferName); glTexParameteri(.... glTexImage3D(... and can attach it to FBO:…
viktorzeid
  • 1,521
  • 1
  • 22
  • 35
4
votes
2 answers

GLSL fragment shader output type

Suppose I'm having a problem like this: now I have a framebuffer and a texture only contains one color component(for example, GL_RED) has already binded to it. What will fragment shader looks like? I guess the answer is: ... out float…
user2310794
  • 67
  • 3
  • 9
4
votes
0 answers

Certain framebuffer sizes fail on iOS devices (GL_FRAMEBUFFER_UNSUPPORTED)

I ran into a problem yesterday when trying to create a framebuffer of size 256x8 - on iOS devices (tested on iPad 3, iPhone 4 & iPad Mini) certain sizes will fail with GL_FRAMEBUFFER_UNSUPPORTED. These same sizes work in the iOS Simulator. The issue…
Cutterpillow
  • 1,717
  • 13
  • 32
4
votes
2 answers

THREE.js blur the frame buffer

I need to blur the frame buffer and I don't know how to get the frame buffer using THREE.js. I want to blur the whole frame buffer rather than blur each textures in the scene. So I guess I should read the frame buffer and then blur, rather than…
Ovilia
  • 7,066
  • 12
  • 47
  • 70
4
votes
3 answers

Embedded linux framebuffer rotate

I have to integrate an LCD screen to my embedded linux (ARM9) system. The LCD is portrait 320x480 and I need to run the screen in landscape orientation 480x320. Using the LCD config register I can rotate it in hardware, so that (x,y)(0,0) is rotated…
user1937525
  • 61
  • 1
  • 1
  • 6
4
votes
0 answers

why we need vsync and hysnc in LCD driver?

I have a doubt in android/linux framebuffer part, that is why we need hysnc, vysnc. Because as I correctly remembered, these terms are used in case of CRT. But While we are using the LCD why we need these, we can use a simple signal to indicate…
Rahul
  • 1,607
  • 3
  • 23
  • 41
4
votes
1 answer

Android OpenGLES device issue

I have recently started learning OpenGLES with Android. I am creating a livewallpaper with GLWallpaperService class with rendering. The problem with Android simulator is able to display animation but while testing with Android device (HTC…
4
votes
1 answer

Attaching integer textures to a framebuffer

I'm trying to attach a texture with internal format GL_R32UI to a framebuffer, to be used as an ID-buffer. However, glCheckFramebufferStatus keeps coming up with GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT, even when it is the only attachment. This is very…
dupersuper
  • 839
  • 1
  • 7
  • 14
4
votes
3 answers

Stenciling using OpenGl ES 2.0

I am trying to figure out a way to cut out a certain region of a background texture such that a certain custom pattern is not rendered on the screen for that background. For example: This square can be any pattern. I am using Frame Buffer Object…
Rafay
  • 6,108
  • 11
  • 51
  • 71