Results 1 to 4 of 4

Thread: How to remove pixel from the framebuffer?

  1. #1
    Junior Member
    Join Date
    Oct 2011
    Posts
    5

    How to remove pixel from the framebuffer?

    Hello,

    I want to draw a square and then dig a smaller rectangle hole in it. Is it possible to clear some pixels from the framebuffer for this purpose? Thank you very much!

    Best wishes,
    Pine

  2. #2
    Junior Member
    Join Date
    Oct 2011
    Posts
    5

    Re: How to remove pixel from the framebuffer?

    I know that I can do this by only drawing the parts except the hole. But I am wondering whether it is possible to draw something in the framebuffer and then remove pixels from it? Thank you very much!

  3. #3
    Junior Member
    Join Date
    Oct 2011
    Posts
    5

    Re: How to remove pixel from the framebuffer?

    I have used the stencil buffer to do this but found that stencil buffer seems not work in Firefox and only Chrome. Does anyone have similar problem? Thank you!

  4. #4
    Junior Member
    Join Date
    Jan 2012
    Posts
    2

    Re: How to remove pixel from the framebuffer?

    Have you drawn something into the framebuffer before? If yes, you can render your square into an extra texture (renderbuffer object) and blend that over the framebuffer. For making a hole you can set the alpha value in this texture to zero.

Similar Threads

  1. [Anti-aliasing] how do i remove aliasing problem on ES1.0?
    By balladry in forum OpenGL ES general technical discussions
    Replies: 0
    Last Post: 02-09-2012, 05:58 PM
  2. How to read Pixel data from the MultiSampled framebuffer ?
    By nitinsharma0608 in forum OpenGL ES 1.X - fixed function hardware
    Replies: 4
    Last Post: 01-06-2012, 08:30 PM

Posting Permissions

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