kaloyan.zykov Posted October 17, 2018 Share Posted October 17, 2018 We have atlas exported with Texture Packer. Run-time every texture is cropped by 1 pixel. This pixel is added to the opposite of the texture. Likewise https://github.com/pixijs/pixi.js/issues/5087. Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted October 17, 2018 Share Posted October 17, 2018 Try common divisor 2 for both xy. Probably precision problems again. Also, enable this for iphones. before you create application/renderer: PIXI.settings.PRECISION_FRAGMENT = PIXI.PRECISION.HIGH; AndreasLoew 1 Quote Link to comment Share on other sites More sharing options...
kaloyan.zykov Posted October 18, 2018 Author Share Posted October 18, 2018 It`s working, only when set precision , "PIXI.settings.PRECISION_FRAGMENT = PIXI.PRECISION.HIGH", without change common divisor ! THANK YOU VERY MUCH @ivan.popelyshev ! ivan.popelyshev 1 Quote Link to comment Share on other sites More sharing options...
FNevesFMQ Posted February 22, 2019 Share Posted February 22, 2019 The issue quoted above (https://github.com/pixijs/pixi.js/issues/5087) was created by me, and once no one was able to give a solution for this problem, I found this and tried setting: PIXI.settings.PRECISION_FRAGMENT = PIXI.PRECISION.HIGH And it worked! Many thanks Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted February 25, 2019 Share Posted February 25, 2019 Since October we fixed a precision bug in pixi, somewhere in 4.8.x , it existed since 4.0 . Maybe you need to update pixi.js file Quote Link to comment Share on other sites More sharing options...
FNevesFMQ Posted February 25, 2019 Share Posted February 25, 2019 I'm always using the last stable version. Right now I have v4.8.6 and it occurs. Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted February 25, 2019 Share Posted February 25, 2019 How big is your texture? Quote Link to comment Share on other sites More sharing options...
FNevesFMQ Posted February 25, 2019 Share Posted February 25, 2019 2048x2048 Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted February 25, 2019 Share Posted February 25, 2019 ok, lets look: https://github.com/pixijs/pixi.js/pull/5218 Please open https://www.pixiplayground.com/#/edit/sr8e~10Ueu1aaaVlj~Rsd on your device, and tell me the top number. Try it also on 2048 (swap 1024 on 2048, dont save demo please) Quote Link to comment Share on other sites More sharing options...
FNevesFMQ Posted February 25, 2019 Share Posted February 25, 2019 For 1024, values are: "was 247, now 255" For 2048, values are: "was 239, now 255" Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted February 25, 2019 Share Posted February 25, 2019 hm, then it has the same precision as in desktop chrome. Are you sure that you didnt place it on non-integer coords? Quote Link to comment Share on other sites More sharing options...
FNevesFMQ Posted March 6, 2019 Share Posted March 6, 2019 On 2/25/2019 at 9:18 PM, ivan.popelyshev said: hm, then it has the same precision as in desktop chrome. Are you sure that you didnt place it on non-integer coords? No, for sure, I always apply a Math.round when setting position Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted March 6, 2019 Share Posted March 6, 2019 yeah, but odd width with anchor=0.5 ... Quote Link to comment Share on other sites More sharing options...
FNevesFMQ Posted March 6, 2019 Share Posted March 6, 2019 9 minutes ago, ivan.popelyshev said: yeah, but odd width with anchor=0.5 ... Oh I see, probably that's it! Thanks, I will check ? 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.