Hi,
You could use a shader, like the example /examples/shader/05_alphaMasking.
That example uses two images, but you could use an ofFbo for the alpha mask instead, like this:
Hi,
In the same spirit you can use setAlphaMask() instead of a shader:
1- draw the shape into a ofFbo
2- set the mask for the image: image.getTexture().setAlphaMask( fbo.getTexture() )
3- draw the image
You’ve got a code example here, with a video instead of an image. You had to replace the ofVideoPlayer by a ofImage.