Jump to content

Multiple mask issues


jrjgg
 Share

Recommended Posts

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!!!

post-5410-0-25581500-1383846925_thumb.pn

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...