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

opengl video freeze

I have an IDS ueye cam and proceed the capture via PBO to OpenGL (OpenTK). On my developer-pc it works great, but on slower machines the video freezes after some time. Code for allocating memory via opengl and map to ueye, so camera saves processed…
freakinpenguin
  • 831
  • 14
  • 24
0
votes
1 answer

how to match pbo buffer with a texture?

From question/answer i know that once I bind GL_PIXEL_UNPACK_BUFFER, OpenGL will feed texture2D using the data in buffer bind to GL_PIXEL_UNPACK_BUFFER. But while there are various shapes of textures, such as GL_TEXTURE_3D, GL_TEXTURE_1D... there is…
SZYoo
  • 147
  • 7
0
votes
1 answer

Can I create PBO in this way?

To create a buffer in OpenGL, we need to write following code down: GLuint buffer; glCreateBuffers(1,&buffer); glNamedBufferStorage(buffer,size,data,flags); I know that we can create a PBO in this way: GLuint…
SZYoo
  • 147
  • 7
0
votes
1 answer

Read pixels from SFML texture using PBOs

I am creating a render texture in SFML (sf::RenderTexture for off-screen rendering), drawing to it and trying to read the pixels asynchronously using PBOs. Here is a minimal example of what I'm doing: #include #include…
math.husky
  • 193
  • 1
  • 8
0
votes
1 answer

Do i need to recreate a texture when using opengl/CUDA interoperability?

I want to manipulate a texture which I use in opengl using CUDA. Knowing that I need to use a PBO for this I wonder if I have to recreate the texture every time I make changes to the PBO like this: // Select the appropriate buffer glBindBuffer(…
Dirk
  • 1,789
  • 2
  • 21
  • 31
0
votes
0 answers

Generate mipmap with pbo is too slow?

I'm developing a video-like application. In order to accelerate the speed of the texture uploading, I use pbo to increase it. In order to deal with the aliasing artifact, I use mipmap to help this. Well, let me show you the major code // Step 1:…
hao li
  • 367
  • 2
  • 13
0
votes
1 answer

How to use QOpenGLBuffer:: PixelUnpackBuffer

I can't figure it out how to properly write and read from a QOpenGLBuffer:: PixelUnpackBuffer. What is the proper setup before writing into a PBO? QOpenGLBuffer::write will not work using with a simple QImage.bits(), or glReadPixels() to pass the…
Carlos R
  • 3
  • 2
0
votes
0 answers

Using PBOs when memory address is already fixed?

I'm trying to optimize the upload of textures from CPU memory to OpenGL. Initially I was using glTexImage2D and that works, but obviously isn't using DMA, so I'm trying to use PBOs. Unfortunately, the API I have to use that provides the texture data…
Roddy
  • 66,617
  • 42
  • 165
  • 277
0
votes
0 answers

Opengl asyncronous PBOs read

I am developing an application that needs to read back the whole frame from the openGL frame buffer. In order to improve the performance, I'm using asynchronous glReadPixels with multiple PBOs: glBindBuffer(GL_PIXEL_PACK_BUFFER,…
iome
  • 153
  • 7
0
votes
0 answers

Can't read texture values using PBO and glReadPixels

I created a texture by rendering to an FBO and I've been trying to read the texture with no success for quite some time. After my failed attempts with glReadPixels() and glGetTexImage()(access violation errors) I decided to try with a PBO. Here is…
John Katsantas
  • 571
  • 6
  • 20
0
votes
0 answers

OpenGL Pin PBO memory

Is it possible to pin a PBO for read and/or write to system memory? Ideally it would be nice to avoid having to synchronize with glMapBuffer and glUnmapBuffer, and use some other way to send the frame via DMA to/from system memory to the GPU.
MateoConLechuga
  • 561
  • 4
  • 23
0
votes
0 answers

OpenGL pixel transfer inside GPU

I have been working with VR recently and encountered some OpenGL related problem. The API i use for VR capture a video stream and write it to a texture, I, then, want to submit this texture to a headset. But there is an incompatibility in the API :…
FPN
  • 1
  • 1
0
votes
1 answer

Video stream by GPU with a PBO load an ImageQT in OpenGL

I plan to develop a tool for realtime video manipulation using C++, QT 4.7.4 and OpenGL and i'm on visual studio 2008. I check many web site but my code doesn't work since I try with PBO. At the moment I imagine a following sequence of steps: load…
0
votes
0 answers

nVidia GL driver states: Texture 0 is base level inconsistent

I am using glDebugMessageCallback to capture the OpenGL driver messages. When I enable all message sources and severities, my program triggers this message: Texture state usage warning: Texture 0 is base level inconsistent. Check texture size. The…
Bram
  • 7,440
  • 3
  • 52
  • 94
0
votes
1 answer

Non blocking glReadPixels of depth values with PBO

I am reading a single pixel's depth from the framebuffer to implement picking. Originally my glReadPixels() was taking a very long time (5ms or so) and on nVidia it would even burn 100% CPU during that time. On Intel it was slow as well, but with…
Bram
  • 7,440
  • 3
  • 52
  • 94