Questions tagged [pbo]

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

79 questions
3
votes
1 answer

glUnmapBuffer while keeping glMapBuffer memory valid as read-only

Is it possible to glUnmapBuffer a GL_STREAM_DRAW pixel-buffer-object and still keep the data pointed to by the pointer returned previously by glMapBuffer valid for read-only operations using SSE 4.1 streaming loads? If not, is there any technical…
ronag
  • 49,529
  • 25
  • 126
  • 221
3
votes
1 answer

Storing RGBA32 pixels directly into an OpenGL ES texture

I'm using a library which provides me frames I have to blit to the screen. I allocate a buffer, and this library writes directly into this buffer. When I'm required, I have to blit a specified part of this buffer to the screen. I'm rendering using…
Luca Carlon
  • 9,546
  • 13
  • 59
  • 91
3
votes
3 answers

Cant get data from a form to my mysql database

I have problem to get my code working in php I want to move data from a form in html to my mysql database but it dont work?? Form part
För namn:
user5122241
3
votes
1 answer

CUDA OPENGL Interoperability: slow mapping

My application is going to take the rendered results from openGL (both depth map and the rendered 2D image information) to CUDA for processing. One way I did is to retrieve image/depth map by glReadPixel(..., image_array_HOST/depth_array_Host)*,…
3
votes
1 answer

OpenGL PBO for texture upload, can't understand one thing

Okay , I read everything about PBO here : http://www.opengl.org/wiki/Pixel_Buffer_Object and there http://www.songho.ca/opengl/gl_pbo.html , but I still have a question and I don't know if I'll get any benefit out of a PBO in my case : I'm doing…
Lex
  • 413
  • 1
  • 7
  • 19
3
votes
1 answer

how to copy a texture into a pbo in PyOpenGL?

after having used PyOpenGL happily for some time, I'm now seriously stuck. I am working on a Python package that allows me to use GLSL shaders and OpenCL programs for image processing, using textures as the standardized way to get my data in and out…
Joost Rekveld
  • 81
  • 2
  • 11
2
votes
1 answer

Allocating PBOs on separate thread?

I've got a multithreaded OpenGL application using PBOs for data transfers between cpu and gpu. I have pooled the allocation of PBOs, however, when the pools are empty my non-opengl threads have to block for a while until the OpenGL thread reaches a…
ronag
  • 49,529
  • 25
  • 126
  • 221
2
votes
0 answers

Android glReadPixels from PBO blocking/performance

I'm having an unusual problem while working on an openGL project. Essentially I require frame data in GRAYSCALE single channel format for some CV stuff. I'm using a custom shader, an FBO and PBO's to get the task done. The flow of the program is as…
2
votes
1 answer

Using CUDA, SFML, and OpenGL: Texture Refuses to Appear on Quad

Using various tutorials/examples/documentations/forums online, I have typed out code to allow CUDA to manipulate OpenGL textures such that it can be outputted to the screen. My method of displaying is to use PBO and an allocated texture image of…
SKK
  • 51
  • 3
2
votes
1 answer

PBO not working Properly in Integrated GPU

For benchmarking purpose lets take this famous PBO Read-back code. Problem: Using PBO is having no effect in my PC. Even with Latest driver Update & correct Pixel format BGRA. Update 1: I have also tried the same example with 3 PBO's. But there is…
Balaji R
  • 1,805
  • 22
  • 41
1
vote
1 answer

WebGL color conversion during gl.readPixels()

I'm copying a framebuffer to a pixel buffer object. Is there a way during the call of gl.readPixels() to go from RGBA to only RED ? In OpenGL, we can control the glReadPixels() transfer with glPixelTransfer(), but I can't find the couterpart in…
1
vote
1 answer

Delayed Pixel Buffer Read from Multiple Framebuffers on GL_TEXTURE_2D_ARRAY

Using Android, OpenGL ES 3.0 Attempting to write multiple layers of a GL_TEXTURE_2D_ARRAY using framebuffer objects to create heightmaps in sequence, and then read from all of the layers of the GL_TEXTURE_2D_ARRAY in sequence in a later looped…
G. Putnam
  • 1,262
  • 5
  • 10
1
vote
1 answer

OpenGL: Is there a way to do PBO transfers with DSA?

Recently I looked into improving texture submissions for streaming and whatnot and despite my long searches I have not found any material presenting or even mentioning any way of using PBOs with DSA only functions. Am I not looking in the right…
Jack Fenech
  • 108
  • 2
  • 7
1
vote
1 answer

Uploading texture to GPU by PBO not working (OpenGL version 4.1)

I have read the famous tutorial OpenGL Pixel Buffer Object (PBO). I tested the sample code on my computer and it works (although with PBO on, its performance didn't improve but at least it's rendering correctly). The problem is in the sample code…
Zieng
  • 453
  • 1
  • 7
  • 17
1
vote
1 answer

PBO on Android doesn't improve glReadPixels performance

I want to take screenshot of current frame in OpenGL for further processing and I'm trying to improve the performance of glReadPixels by using PBO to asynchronously read framebuffers. I'm under the impression that glReadPixels after…
Ziju Feng
  • 327
  • 1
  • 4
  • 13