d13 Posted September 26, 2019 Share Posted September 26, 2019 Hi Everyone! I have an odd problem (in v5) where setting `antialias: true` works with sprites, text and rectangular graphics, but not sprites containing Pixi-created graphics with rounded edges (such as circles and rounded rectangles.) Has anyone seen this problem before or understand what I'm describing? (Sorry, I would upload an image of what I'm seeing but the board won't let me upload files for some reason.) Thanks! Rex Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted September 26, 2019 Share Posted September 26, 2019 antialias cant work on extra framebuffers, such as RenderTexture, only on main one. Several ways to fix it 1. generate textures of bigger resolution and convert them to resolution=1 afterwards. 2. generateCanvasTexture() exists only in pixi-legacy.js , https://github.com/pixijs/pixi.js/releases/tag/v5.1.5 - just take the file with canvas2d support. 3. wait when I make PR for MSAA framebuffers in webgl2. wont work in webgl1. 4. New way, was discovered not so long ago: render it in separate canvas, with another webglrenderer and use Texture.from() on it, then draw part of those contexts to a new renderTexture. Its as fast as MSAA variant but it'll work in webgl1 too, basically its the same as blitFramebuffer. One extra problem - Texture.from(anotherCanvas) will have to be updated (texture.update()) every time you draw something new on temporary webgl canvas. Summary: its old problem that has no easy automatic solution for all existance of webgl. We slowly crawling to solve it but its still there. Quote Link to comment Share on other sites More sharing options...
shlajin Posted September 30, 2019 Share Posted September 30, 2019 Quote wait when I make PR for MSAA framebuffers Just wanted to say that your work is very much appreciated! Do you have a rough idea when it's going to happen? I'm on a waitlist for it since the initial release of v5 ? ivan.popelyshev 1 Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted September 30, 2019 Share Posted September 30, 2019 > Do you have a rough idea when it's going to happen? I'm on a waitlist for it since the initial release of v5 ? One or two months. It will come with webgl1 fallback too, since we discovered that new way i mentioned shlajin 1 Quote Link to comment Share on other sites More sharing options...
shlajin Posted September 30, 2019 Share Posted September 30, 2019 That's amazing news. Looking forward to try it out! Quote Link to comment Share on other sites More sharing options...
d13 Posted October 1, 2019 Author Share Posted October 1, 2019 Thanks so much, Ivan! I, too, can probably afford to "wait" on this one. Otherwise I'll investigate option too - sounds promising ?. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.