Flint Particle System Forum - [SOLVED] Using a Renderer as a Mask 2016-06-03T01:10:04+01:00 http://flintparticles.org/forum/ Lussumo Vanilla & Feed Publisher [SOLVED] Using a Renderer as a Mask http://flintparticles.org/forum/comments.php?DiscussionID=583&Focus=1987#Comment_1987 2013-01-10T20:06:31+00:00 2013-01-11T16:02:45+00:00 ew_holmes http://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 Mask http://flintparticles.org/forum/comments.php?DiscussionID=583&Focus=1988#Comment_1988 2013-01-11T15:56:43+00:00 2016-06-03T01:10:04+01:00 ew_holmes http://flintparticles.org/forum/account.php?u=649 The solution: Apply cacheAsBitmap to your renderer! renderer.cacheAsBitmap = true;
Apply cacheAsBitmap to your renderer!


renderer.cacheAsBitmap = true;]]>