Edison4 Posted January 29, 2017 Share Posted January 29, 2017 Check link my demohttp://51.15.38.31/ PIXI.settings.DEFAULT = PIXI.SCALE_MODES.NEAREST; does not work Quote Link to comment Share on other sites More sharing options...
Sambrosia Posted February 1, 2017 Share Posted February 1, 2017 The method you're using for setting the default scale mode is deprecated. The current way to do it is like this: PIXI.settings.SCALE_MODE = PIXI.SCALE_MODES.NEAREST; I took a look at the values of the baseTexture on your vulcan sprite, and the scaleMode seems to be set to 1 (nearest), so I think it should be working as-is. Maybe your auto-resizing of the game view is at fault here. Or maybe setting PIXI.settings.SCALE_MODE has some side effects that will fix the problem. It might help you to take a look at the source in the github repo. Quote Link to comment Share on other sites More sharing options...
PainKKKiller Posted February 8, 2017 Share Posted February 8, 2017 It may be off topic, but I really wonder why with enabled setting PIXI.settings.SCALE_MODE = PIXI.SCALE_MODES.NEAREST; my fonts looks broken. Are there any ways to avoid that? Quote Link to comment Share on other sites More sharing options...
bubamara Posted February 8, 2017 Share Posted February 8, 2017 20 minutes ago, PainKKKiller said: It may be off topic, but I really wonder why with enabled setting PIXI.settings.SCALE_MODE = PIXI.SCALE_MODES.NEAREST; my fonts looks broken. Are there any ways to avoid that? That's how nearest (point) texture filtering works. If you want smooth filtering use LINEAR instead http://pixijs.download/release/docs/PIXI.html#.SCALE_MODES 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.