Mat Groves

Pixi.js Now with masking! (webGL and canvas)

Recommended Posts

Hi Mr_Cutia,

 

Seems like the webGL Renderer is having issues with your mask. This is most likely not your fault (especially if its working in ie10). Its on my to do list but webGL masking has a few edge case issues when multiple masks are used at once. Hopefully not a show stopper for you?

 

Sorry about that :/

Share this post


Link to post
Share on other sites

Hi Mr_Cutia,

 

Seems like the webGL Renderer is having issues with your mask. This is most likely not your fault (especially if its working in ie10). Its on my to do list but webGL masking has a few edge case issues when multiple masks are used at once. Hopefully not a show stopper for you?

 

Sorry about that :/

 

This is not a stopper to my... I'll use PIXI.CanvasRenderer.
How I'm using Pixi in my company site, it must work to lay people who do not know how updating the vga drive ... sorry for my poor English, may not have expressed myself right.

Share this post


Link to post
Share on other sites

Thats a good point! at the moment masking has no impact on the interactivity of objects it only deals with it in a visual sense. Even if items are masked they are still be clicked on. I will make sure to add this to my todo list though.

Hey guys, I noticed this comment from last year, that masking has no affect on interactive objects.

 

Well I just tried clicking a masked object using PIXI version 2.0, and the issue still has not been resolved. Was this forgotten, or are we still waiting for someone to address it? Any workarounds available??

Share this post


Link to post
Share on other sites

Hey guys, I noticed this comment from last year, that masking has no affect on interactive objects.

 

Well I just tried clicking a masked object using PIXI version 2.0, and the issue still has not been resolved. Was this forgotten, or are we still waiting for someone to address it? Any workarounds available??

 

Hi kid_karma, were you able to find a solution or any workaround for this issue. I am also working on a game where I need to mask interactive objects. Thanks.

Share this post


Link to post
Share on other sites

Hi kid_karma, were you able to find a solution or any workaround for this issue. I am also working on a game where I need to mask interactive objects. Thanks.

I had this issue before, the workaround I used was to simply do a check to see if the part of the interactive object you click on is within the masks bounds.

Share this post


Link to post
Share on other sites

I had this issue before, the workaround I used was to simply do a check to see if the part of the interactive object you click on is within the masks bounds.

 

Yup that's exactly what I did. Thanks for the reply achexi. :)

Share this post


Link to post
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...

  • Recently Browsing   0 members

    No registered users viewing this page.