Results 1 to 4 of 4

Thread: Fill Effect

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

    Fill Effect

    How to create a fill effect? I have an irregular closed shape created using:
    Code :
    	glBindFramebufferOES(GL_FRAMEBUFFER_OES, viewFramebuffer);
            (.......) 
    	glVertexPointer(2, GL_FLOAT, 0, vertexBuffer);
    	glDrawArrays(GL_POINTS, 0, vertexCount);
            (.......) 
    	glBindRenderbufferOES(GL_RENDERBUFFER_OES, viewRenderbuffer);

    Now I would like to have an "fill/paint bucket" effect like in photoshop. The background inside the shape is white (for example) and by clicking inside the shape I want to change the color to red or green.

    Can somebody give me some hints, please.

  2. #2
    Junior Member
    Join Date
    Nov 2011
    Posts
    4

    Re: Fill Effect

    I too am looking for a method by which I could make a fill effect. Good to see that you are intending for a fill paint bucket effect similar to that in Adobe Photoshop. Anyway, I will try and see if I come up with anything regarding Fill effect and update here.
    “Read Today, Lead Tomorrow”

  3. #3
    Senior Member
    Join Date
    May 2008
    Posts
    104

    Re: Fill Effect

    You could just replace drawing your texture with a draw that has texturing disabled and colored verts or materials if lightning is enabled.

  4. #4
    Junior Member
    Join Date
    Mar 2012
    Location
    Cleveland, OH
    Posts
    1

    Re: Fill Effect

    Thanks @jpilon. I think your advice did the trick. It's really great to use the fill effect.

Similar Threads

  1. Fill array
    By shiftreduce in forum OpenCL
    Replies: 1
    Last Post: 11-19-2009, 01:24 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
  •