Jump to content

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


Mat Groves
 Share

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 :/

Link to comment
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.
Link to comment
Share on other sites

  • 1 year later...

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

Link to comment
Share on other sites

  • 3 months later...

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.

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

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