How do I use the tool?
Once you have selected your image simply click on grid intersections until the grid looks right. To get the fastest results try to click intersections that the currently proposed grid is far away from.
There is also a demo video that walks through a quick example.
The tools is suggesting a tiny grid!
The largest grid that adequately explains the points you have given will be displayed. There are two main reasons that you get a smaller grid than you expected.
- Inaccurate clicks can cause the grid to become smaller than expected. For example if you clicked roughly in the middle of a grid cell halving the grid size will "explain" that point, without causing extra error in the others. In this case the best option is generally to start over and click carefully, although sometimes making many more accurate clicks can result in the correct prediction.
- The map isn't actually a square grid. It is not uncommon to find battlemaps online that have non-square grids. Often the grid will be on an angle, skewed or change size throughout the map. This is frequently seen on maps that were designed for tabletop-use where an accurate grid was not important like it is on today's virtual tabletops. Unfortunately there is no great solution in this case. If you want to find the best aproximation try selecting points in a small area of the map, then once you have the approximate cell size import into your VTT and try to find an acceptable offset manually.
Why is it suggesting a non-integer cell size?
The cell sized is based off of the farthest away points in either dimension. This will be the farther apart pair of the top and bottommost points, or left and rightmost points. If these points are not accurate the cells size won't be perfect.
You can either round the number in your head and see if it works, or carefully select points as far away as possible to get the most accurate calculation.
The suggested grid is too large!
If the suggested grid is too large simply click on the missed corners and the suggestion will adjust. Note that there is a hardcoded minimum of 8 pixels per cell.
Can I remove a point?
Sure thing, just middle click it!
I have a suggestion or would like to help out!
The code is free on GitLab and report issues in the tracker.