Thread: Grid
View Single Post
08/29/14, 04:31 PM   #13
merlight
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 671
Originally Posted by skyraker View Post
Thanks Garkin. You really made that easy to understand.

Though I found something odd in my first implementation. With a line thickness of 2+, everything looks like nice, even squares (except on the bottom and right which is expected with screen dimensions).

Thickness 2

With one thickness, you can tell that it doesn't seem to make nice squares. I looked and made sure that the line data is correct.

Thickness 1

Sorry about using links. I'm not very proficient at uploading images to these posts.
I don't know, try postimg.org, those you posted are shrinked; looks like some lines are missing, but I can't tell whether it's caused by the resize or by the game

Textures have methods IsPixelRoundingEnabled(), SetPixelRoundingEnabled(bool). Not sure what's the default, try setting the opposite

Also, there's GetUIGlobalScale(). In Map control they use it to compute mapPixels = mapUnits * GetUIGlobalScale().
So I'd try hline:SetHeight(1 / GetUIGlobalScale()) and see how it looks.
  Reply With Quote