jackquake
Member
Hi All,
First off, a little background... I'm creating a "paint" program for kids, but a little different than a typical paint program:
1) An untainted image is used in a sprite
2) The object then uses a shader to completely paint the sprite gray and copies to a surface
3) Then the original sprite is drawn under the surface
4) Then the "paintbrush" is used to remove the surface to reveal the real image.
All works perfectly, but when the surface has been totally depleted, we need to load another picture for them to paint.
How can I detect that the image is now fully visible or say, 95% visible and load the next image? In other words, the surface would very much be transparent at this point. How can I detect that?
As always, thank you in advance!
JQ
First off, a little background... I'm creating a "paint" program for kids, but a little different than a typical paint program:
1) An untainted image is used in a sprite
2) The object then uses a shader to completely paint the sprite gray and copies to a surface
3) Then the original sprite is drawn under the surface
4) Then the "paintbrush" is used to remove the surface to reveal the real image.
All works perfectly, but when the surface has been totally depleted, we need to load another picture for them to paint.
How can I detect that the image is now fully visible or say, 95% visible and load the next image? In other words, the surface would very much be transparent at this point. How can I detect that?
As always, thank you in advance!
JQ