Jump to content

cacheAsBitmap


Yusef
 Share

Recommended Posts

Hello and Welcome to the forums!

This issue is based on webgl limitations. There's no antialias in custom framebuffers. For more information, search "antialias" both in this subforum and in pixijs issues: https://github.com/pixijs/pixi.js/issues?utf8=✓&q=is%3Aissue You can find out how other people worked around it.

Antialias for framebuffers exists in webgl2 and you can try to use it in latest pixi dev version. For more details on that you can read https://github.com/pixijs/pixi.js/pull/6296 , but its an experimental feature and you better be able to hack cacheAsBitmap yourself.

Edited by ivan.popelyshev
Link to comment
Share on other sites

Alternatively: hack cacheAsBitmap that way it uses resolution:2 or 3 . Here's example of hack, I just CTRL+Ced some code from cacheAsBitmap and changed it to check if it fixes a bug: https://www.pixiplayground.com/#/edit/CGFVg3fv6Rx_4nxcZS2yS

Edited by ivan.popelyshev
Link to comment
Share on other sites

  • 2 months later...
On 2/28/2020 at 1:09 PM, ivan.popelyshev said:

Alternatively: hack cacheAsBitmap that way it uses resolution:2 or 3 . Here's example of hack, I just CTRL+Ced some code from cacheAsBitmap and changed it to check if it fixes a bug: https://www.pixiplayground.com/#/edit/CGFVg3fv6Rx_4nxcZS2yS

I've read the _initCachedDisplayObject function several times to try to figure out where to add a resolution property. Where would you do that?

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