Results 1 to 2 of 2

Thread: problems using FBO's in ES 2

  1. #1
    Junior Member
    Join Date
    Sep 2007
    Posts
    10

    problems using FBO's in ES 2

    I'm working with creating a histogram overlay. I created a shader witch generates a 8x8 histogram. I would like to draw it as a tiny overlay in the corner of the screen as a realtime feature of a videostream. Everything work fine when working on screen. I render local histograms all over then picture and then reduce them with another shader and finally reads back it to the CPU memory. Then I draw an overlay and renders it back to the screen.

    The problems starts when using a FBO. It works great when rendering but finally I want to read back data from the FBO to the CPU memory. In ES 2.0 specification GetTexImage(..) isn't supported and readBuffer(..) is also gone. When working online readPixels(..) works but I won't work with offScreen rendering. readPixels(..) works for off screen pBuffers but I really want to use FBO.

    I'm working with the Imagination simulator. Maybe there will be some extensions?

    best regards,
    Fredrik Berglund

  2. #2
    Senior Member
    Join Date
    May 2006
    Posts
    353
    ReadPixels is supposed to read from the currently bound framebuffer. If this doesn't work there is a bug in the emulator library, and we'll try to fix it as soon as possible.

    Note however that pixel readback can cause substantial slowdowns because it requires synchronization between CPU and GPU.
    Georg Kolling, Imagination Technologies
    Please ask questions specific to PowerVR hardware or SDKs on the PowerVR Insider Forum
    DevTech@imgtec.com | http://www.powervrinsider.com

Similar Threads

  1. FBO's and ES 2
    By freber in forum OpenGL ES general technical discussions
    Replies: 2
    Last Post: 12-03-2007, 08:41 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •