does anyone have any ideas on how to fill an area surrounded by a closed line in a texture?
For example, imagine an all-white texture with a black line in it, like a circle. Suppose we want to ‘detect’ that circle, and fill the white area inside of the circle with another color. Ideally this should work automatically, but picking 1 pixel inside the area and starting to fill from there until a ‘very different color’ is found, would be great already.
Maybe the solution could be pixel-shader based (it doesn’t need to be efficient, because it should only be done once), but maybe there is another way.
Maybe even someone has already done something similar, and I just couldn’t find it on the forums? Don’t want to reinvent the wheel…
Thanks a lot.