buntafujiwaraaa Posted April 29, 2020 Share Posted April 29, 2020 hey guys, is it not possible to draw perfect rounded circle using sprite? If i draw with graphics, it looks perfectly round. But drawing with texture sprite, it looks very jagged. I would love to use Sprite since I'm drawing like 2000 circles and moving them. Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted April 29, 2020 Share Posted April 29, 2020 use pixi-legacy (npm pixi.js-legacy, vanilla pixi-legacy.js file) , it has generateCanvasTexture() - that will be AA-ed in canvas2d buntafujiwaraaa 1 Quote Link to comment Share on other sites More sharing options...
buntafujiwaraaa Posted May 5, 2020 Author Share Posted May 5, 2020 Thanks! it works!! Just wondering is there any performance difference between generateCanvasTexture vs generateTexture? Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted May 5, 2020 Share Posted May 5, 2020 yeah, but the difference doesnt matter in long run, its only one frame and i do like 10 operations like that in frame without slowing down canvas2d->webgl upload is actually much faster than people think about it - most of info is already on gpu, the only cpu->gpu upload is actually alpha mask for circle because of super-AAA algorithm on CPU buntafujiwaraaa 1 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.