Jump to content

GUI feature request - Mask


royibernthal
 Share

Recommended Posts

Able to, for sure but will require time to code it :)

It looks similar in some ways to this (It contains masking with the similar scaling tiling and so on questions)

 

Pixi seems to rely on shape but we do not have such support so far I am wondering how could we simulate that ? 

Once found we could open a Gihub issue to see when it could be done.

Link to comment
Share on other sites

I suppose it has similarities, but I'm not sure if it's the right direction given the bigger scope of the feature I'm talking about.

If I recall correctly we need to use stencil buffer in order to achieve the mask.

Here's how PIXI handles graphics & shapes:

https://github.com/pixijs/pixi.js/tree/dev/src/core/graphics

It would be a nice addition to GUI as well, but it is a big feature in itself.

Otherwise I suppose we could have very basic and less flexible data structures for common shapes such as rectangle, circle and triangle, and use their data in the masking process. Maybe even just use the existing Rectangle and Ellipse containers for now if it'd make sense.

Needless to say, nested scale, position and rotation will need to be taken into account - GUI already knows how to handle these, need to see how it can be integrated into the masking process.

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