[0.981][BUG] Tile selection on strategic map is inaccurate

I've run into this in several different builds now, on and off. Sometimes it is fine, and sometimes the mouse tile selection is way off.
I'll try to demonstrate with screenshots, but since the mouse cursor isn't captured, I have indicated its position with a red dot:

 

As you can see, small mouse movements within one tile can often result in a nearby tile being highlighted. I can get the selection to blink between tiles just by moving the mouse a few pixels in random directions. 

This doesn't always happen, but when it does it is very annoying. I seem to remember seeing this problem on tactical maps as well, but don't have a definite confirmation of that.

I will pose a guess:

As I rotate and zoom the camera, I can vary the amount of error, and the error is always greater towards the edges of the screen (nearly a full tile) and smaller in the center (just under half a tile). Perhaps it is due to a mismatch in the 3d projection of the world and the inverse projection used for the mouse position calculation? Perspective projection would account for the higher error at the edges, but possibly also the position of the viewport within the larger map makes a difference, explaining why some games are fine (spawn near the center of the world) while others are really bad (spawn near the edge).

 

1,756 views 5 replies
Reply #1 Top

Seen this too, helps to restart the game.

Really annoying.

Sincerely
~ Kongdej

Reply #2 Top

I believe the engine captures the mouse position three-dimensionally at some height above (z-axis) the terrain.  If you want more accurate mouse positioning, rotate the camera so you're looking straight down.

 

Reply #3 Top

Also, I don't like it that when you click an activity button, most buttons will suffice, the cursor often jumps and so you click on the wrong square on the tactical or strategic map.  It is really disconcerting!

Reply #4 Top

I've seen this too, and have used mqpiffle's technique of rotating the camera to circumvent it.  It's really annoying.

Reply #5 Top

This also seems localized to some areas (Particular low areas, compared to the hills next to them).

Sincerely
~ Kongdej