Fill Effect

How to create a fill effect? I have an irregular closed shape created using:


	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.

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.

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

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.