PapyElGringo Posted March 24, 2015 Share Posted March 24, 2015 Hello ! I have a problem similar to http://www.html5gamedevs.com/topic/2244-sprites-of-odd-dimensions-blurred-when-flipped/ But im not using Phaser so I don't achieve to resolve my problem. Im working with Pixel Art sprites, and when I want to set the position of an odd width or height with the anchor set at 0.5 the result is blurred because the renderer try to interpolate the pixel. What is the solutions in PIXI to resolve this? Im sorry if my english is hard to read and/or understand. Kind regards of a French Developer who start with Pixi.js Quote Link to comment Share on other sites More sharing options...
PapyElGringo Posted March 24, 2015 Author Share Posted March 24, 2015 (edited) After some research I found that the option roundPixels is the answer of my problem but I don't find how to enable it... Any ideas? EDIT: I found how to enable it and It's WORK !this.renderer = new PIXI.autoDetectRenderer(window.innerWidth, window.innerHeight,renderOptions);this.renderer.renderSession.roundPixels = true; Edited March 24, 2015 by PapyElGringo Quote Link to comment Share on other sites More sharing options...
cloakedninjas Posted August 2, 2015 Share Posted August 2, 2015 Is there an equivalent when using WebGL ? The above only works for Phaser.CANVAS rendering. Quote Link to comment Share on other sites More sharing options...
xerver Posted August 2, 2015 Share Posted August 2, 2015 Is there an equivalent when using WebGL ? The above only works for Phaser.CANVAS rendering. https://github.com/pixijs/pixi.js/issues/27 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.