Reading the pixels values from the Frame Buffer Object (FBO) using Pixel Buffer Object (PBO)
- 阅读更多 关于 Reading the pixels values from the Frame Buffer Object (FBO) using Pixel Buffer Object (PBO)
问题 Can I use Pixel Buffer Object (PBO) to directly read the pixels values (i.e. using glReadPixels) from the FBO (i.e. while FBO is still attached)? If yes, What are the advantages and disadvantages of using PBO with FBO? What is the problem with following code { //DATA_SIZE = WIDTH * HEIGHT * 3 (BECAUSE I AM USING 3 CHANNELS ONLY) // FBO and PBO status is good . . glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, fboId); //Draw the objects Following glReadPixels works fine glReadPixels(0, 0, screenWidth