jrjgg Posted November 7, 2013 Share Posted November 7, 2013 Hello, I know that pixi.js's mask capabilities are relatively new and will improve, I'm running into an issue when multiple sprites with masks are added to the stage. These sprites have larger images as textures. Attached is what is rendered in firefox and chrome.Each quadralatteral is one sprite. As you can see it seems that masks are shared between sprites. Why would this be? I'm running through a loop that generates a new sprite and mask and adds it to the stage. I tried putting both in a container and then adding the container to the stage. I tried NOT adding the mask to stage or container. And I also tried replacing the large image sprites with simple rectangles. Everything shares the masks. How do i separate the masks? Is this a bug or am I doing it wrong? Thanks for your help!!! Quote Link to comment Share on other sites More sharing options...
jrjgg Posted November 7, 2013 Author Share Posted November 7, 2013 I switched to using a canvas renderer and it works as expected, so I guess it is a webgl issue. Help would still be appreciated! Quote Link to comment Share on other sites More sharing options...
Mat Groves Posted November 7, 2013 Share Posted November 7, 2013 Hey there! perfect timing If you use the latest dev branch of pixi - you should find that the masks work as expected in webGL now. Hope that helps! Quote Link to comment Share on other sites More sharing options...
jrjgg Posted November 8, 2013 Author Share Posted November 8, 2013 Yes, thankyou! It renders as expected using webgl. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.