Flint Particle System Forum - [SOLVED] Using a Renderer as a Mask2016-06-03T01:10:04+01:00http://flintparticles.org/forum/
Lussumo Vanilla & Feed Publisher
[SOLVED] Using a Renderer as a Maskhttp://flintparticles.org/forum/comments.php?DiscussionID=583&Focus=1987#Comment_19872013-01-10T20:06:31+00:002013-01-11T16:02:45+00:00ew_holmeshttp://flintparticles.org/forum/account.php?u=649
I saw a similar question in the discussion forums, but I never saw an answer, so I thought I would ask it again.
I have 2 images on top of eachother. I want to use a Renderer as a mask for the ...
I have 2 images on top of eachother. I want to use a Renderer as a mask for the foreground image, to reveal the background image.
front.addChild(renderer);
I have followed the Grass example for my renderer, which works great. as soon as I add the renderer into the front image, it works fine, but as soon as I apply it as the mask, it no longer appears, or removes the image.
front.mask = renderer; // Failing
Is this possible?]]>
[SOLVED] Using a Renderer as a Maskhttp://flintparticles.org/forum/comments.php?DiscussionID=583&Focus=1988#Comment_19882013-01-11T15:56:43+00:002016-06-03T01:10:04+01:00ew_holmeshttp://flintparticles.org/forum/account.php?u=649
The solution:
Apply cacheAsBitmap to your renderer!
renderer.cacheAsBitmap = true;
Apply cacheAsBitmap to your renderer!