nuthinking

Combining multiple draw calls

Recommended Posts

As you can imagine, determining the resulting polygon of multiple added shapes is not so fun

 

But you want us to add it in core?

 

There are quite a few libraries out there for manipulating and building polygons. I don't think that the drawing context is the place for that kind of functionality.

Share this post


Link to post
Share on other sites

In canvas 2d is pretty cool how you can draw use different operations (source-in, out, etc...). No idea how complex that would be to replicate in WebGL. But I guess it would be great to have similar functionalities.

 

Will search for some polygons library, I used to do these things with Processing so I am sure there are some scripts around.

 

Thanks, chr

Share this post


Link to post
Share on other sites

In canvas 2d is pretty cool how you can draw use different operations (source-in, out, etc...). No idea how complex that would be to replicate in WebGL. But I guess it would be great to have similar functionalities.

 

Extremely complicated!

 

If you want to use canvas feature to create a texture just draw to a canvas and use PIXI.Texture.fromCanvas()

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.