Questions tagged [pbo]

Pixel Buffer Objects (PBO) are OpenGL buffer objects that are used for asynchronous uploading and downloading of pixel data.

79 questions
0
votes
1 answer

OpenGL - Can I use texture after querying its data into PBO?

I render into a texture via FBO. I want to copy the texture data into a PBO so I use glGetTexImage. I will use glMapBuffer on this PBO but only in the next frame (or later) so it should not cause a stall. However, can I use the texture immediately…
AdyAdy
  • 988
  • 6
  • 19
0
votes
2 answers

What does the PBO buffer content mean?

I was trying to implement a color picking system by using a PBO(pixel buffer object using OpenGL), and when I finished, I realized the numbers that came out of the PBO when mapped didn't make any sense at all. I made my application render big…
0
votes
1 answer

android native Opengl ES 3.0 PBO rendering empty screen

I'm developing camera preview app with android. My App Flow is like below. 1) JAVA : Grab the camera preview buffer and pass it to JNI 2) CPP : Make texture from camera preview buffer with OpenGL ES 3.0 3) CPP : Render texture with OpenGL ES 3.0 So,…
Suhyeon Lee
  • 569
  • 4
  • 18
0
votes
1 answer

Android Opengl ES 3.0 Pixel Buffer Object And glReadPixel

I want to improve glReadPixels() performance using PBO(for Android 4.3+), As glReadPixels takes about 30~50ms(1280*960) for each frame in my test device.But I can't use glReadPixels directly in Java, since the last param cannot be zero or "null". I…
yu yang
  • 1
  • 2
0
votes
1 answer

OpenGL: Read Framebuffer's Depth Texture

I'm using LWJGL in Java, which has identical function names to the C++ OpenGL. Note that I'm forced to use OpenGL's "old" Fixed Function Pipeline. I'm currently successfully drawing a Framebuffer's RGB contents to PixelBufferObjects using the…
CrushedPixel
  • 1,152
  • 2
  • 13
  • 26
0
votes
1 answer

why glReadPixel GL_RGB from PBO got error 0x502 INVALD OPTION

I saw format specifies the format of the returned pixel values; accepted values are: GL_ALPHA GL_RGB GL_RGBA RGBA color components are read from the color buffer. Each color component is converted to floating point such that zero intensity…
flyuuo
  • 3
  • 5
0
votes
0 answers

PBO Indexed Color Texture Rendering with Palette in Fragment Shader not working

I am working on a game with 8bit graphics. I provide a Pixelbuffer (OSXRenderer.pbo) to my gameloop to fill it up. Then texsubimage it onto a texture (OSXRenderer.ScreenTexture). The texture is rendered to the screen via a quad. I got it working…
amto
  • 141
  • 1
  • 4
0
votes
0 answers

efficiently copy subimage from host to opengl pixel buffer object

I am currently moving data from the CPU host to OpenGL memory and I am using pixel buffer object to do that. I can copy the whole image like so: glBindBuffer(GL_PIXEL_UNPACK_BUFFER, buffer); GLubyte * data = (GLubyte…
Luca
  • 10,458
  • 24
  • 107
  • 234
0
votes
0 answers

error 0x0502 when reading pixels to PBO from FBO

I was trying to use FBO and PBO together, read pixels from FBO to PBO, everyframe. Codes are below: //at the beginning: //fbo glGenFramebuffers(1, &m_fBO); glBindFramebuffer(GL_FRAMEBUFFER, m_fBO); glFramebufferTexture2D(GL_FRAMEBUFFER,…
alex
  • 11
  • 3
0
votes
1 answer

Could this pass as a secured lock file?

I made a lock file to see whether people are logged in on certain pages and I was curious as to if it is actually secure enough to put live or if people can easily bypass this lock. Here is my code currently:
user1895377
  • 201
  • 1
  • 3
  • 17
0
votes
1 answer

OpenGL + PBO + FBO + some ATI cards - color and pixel shifting

We are developing software for slide show creation and use OpenGL. We use FBO + PBO for fast data reading from VGA to RAM but on some video cards from ATI we faced with the following problems: swapping RGB components pixel shifting There are no…
okarpov
  • 864
  • 14
  • 22
0
votes
1 answer

glReadPixels or glCopyTexSubImage2D tooo slow?

I need to draw N passes, for each pass, I read one pixel from fbo, and I find that it's too slow to read one pixel for each pass. And then, I use another texture(rectange:N*1) to cache the pixel, which means that for each pass, I copy one pixel to…
tanglei
  • 347
  • 2
  • 6
0
votes
1 answer

Best way of using textures/sprites in OpenGL (including PBO)

I have a little game in C# which uses mainly fixed sprites (bitmaps loaded from disk) and some videos. Now our current approach is Loading: texture.ID = GL.GenTexture(); GL.BindTexture(TextureTarget.Texture2D,…
Flamefire
  • 5,313
  • 3
  • 35
  • 70
0
votes
0 answers

Use of PBO and VBO

My application (QT/OpenGL) needs to upload, at 25fps, a bunch of videos from IP camaras, and then process it applying: for each videos, a demosaic filter, sharpening filter, LUT and distortion docrretion. Then i need to render in opengl (texture…
0
votes
1 answer

Race Condition with PBO

I read something about PBO's in OpenGL and I got a question regarding a race condition. Let's take the following example: I got two PBO's and I want to transfer their pixel data in turns to a texture object. So when I start an asynchronous pixel…
Stan
  • 721
  • 10
  • 24