Guramidev Posted August 18, 2016 Share Posted August 18, 2016 Hi guys, I am having troubles with quality when down-scaling images with PIXI. Here is a demonstration of the issue. Right one is original image, and left one is 0.3 scaled image. The problem is that the scaled image has lost quality by a lot. Can anyone share whether they have had similar issues with PIXI and how did they solve it probably? Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted August 18, 2016 Share Posted August 18, 2016 That's a standart problem. Either use power-of-two texture (256x256 or so) , pixi will enable mipmapping by default. Either use textures scaled 0.5 times. For canvas both 2d/webgl all scale between 0.5 and 1 is good, everything smaller is bad, you have to scale texture multiple times by 0.5 to get good result. Quote Link to comment Share on other sites More sharing options...
Fatalist Posted August 18, 2016 Share Posted August 18, 2016 If you use Pixi v3 you also need to set baseTexture.mipmap = true. I modified your example to use mipmaps: http://codepen.io/anon/pen/Bzbgyw?editors=0010 labrat.mobi 1 Quote Link to comment Share on other sites More sharing options...
Guramidev Posted August 18, 2016 Author Share Posted August 18, 2016 @ivan.popelyshev @Fatalist Thank you guys, i got the point 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.