ifru Posted January 9, 2018 Share Posted January 9, 2018 Hi, I am using pixi to display a texture that consists of alternating black and white rows of pixels. Unfortunately, pixi doesn't show these as black and white, but rather shows grey wave-like patterns that look like there is a lot of aliasing happening. That would make sense if the size of the texture did not match the size of the pixi view on which it is shown. Yet in both cases, width and height are 256. An alternative explanation for this could also be that pixi is attempting some form of pixel interpolation, yet my application is created with roundPixels=true and resolution=1. Where am I going wrong here? Thank you, ifru ivan.popelyshev 1 Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted January 9, 2018 Share Posted January 9, 2018 //for all new textures PIXI.settings.scaleMode = PIXI.SCALE_MODES.NEAREST; //only for one texture texture.baseTexture.scaleMode = PIXI.SCALE_MODES.NEAREST; That's webgl texture filtering settings. If it doesnt help, make a fiddle. Also, roundPixels is avery limited thing, it wont help you Quote Link to comment Share on other sites More sharing options...
ifru Posted January 9, 2018 Author Share Posted January 9, 2018 Thank you that solved the parts that were not my own bugs. 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.