Kirill.Afonin Posted February 4, 2021 Share Posted February 4, 2021 (edited) Hello, everyone! I tried to draw a table with PixiJS and I faced with some problems. Maybe it is my mistake in Application/Renderer Options, but I can't figure out where exactly. The essence of problem is that if devicePixelRatio is non-integer the image is deformed, as on screenshoots. dpr = 0.75 https://prnt.sc/y9oatq dpr = 1.25 https://prnt.sc/y9o6gv dpr = 1.75 https://prnt.sc/y9o56p But if devicePixelRatio is integer, then everything is ok. dpr = 1 https://prnt.sc/y9oc0a dpr = 2 https://prnt.sc/y9od4e Here is an code example jsfiddle . Edited February 5, 2021 by Kirill.Afonin Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted February 4, 2021 Share Posted February 4, 2021 Does antialias turned on? Drawing grid.. yeah, that's tricky , especially with resolution. Cant really explain that in one post, its hard. Try native lines maybe? lineStyle allows to use 1-pixel lines Quote Link to comment Share on other sites More sharing options...
Kirill.Afonin Posted February 5, 2021 Author Share Posted February 5, 2021 Yes, antialias turned on. I tried use lines for drawing grid, but i had the same problem. dpr = 1.1 https://prnt.sc/yecogm dpr = 1.25 https://prnt.sc/yed2b1 Here is example with lines jsfiddle. Also I fixed link to jsfiddle example in first post. 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.