Search the Community
Showing results for tags 'triangular'.
The new triangular grid is really neat. It helps me make hexagonal assets for a game I'm working on. An obstacle I'm facing is that the grid spacing value corresponds to the hypotenuse of the triangle and not the base of the triangle. When using a whole number (actually any rational number) for the spacing (e.g. 32px), the base (i.e. x-coordinate spacing) works out as an irrational number (27.71281292px...). It's not possible to enter a spacing value that results in integer x-coordinate spacing since the coefficient between the base and hypotenuse is irrational (square-root of 3). As a result of this the triangular grid is never aligned with the pixel grid. Since the slice persona requires that slice coordinates and dimensions are all aligned with the pixel grid it's not possible to precisely slice shapes that are aligned with the triangular grid. There are a few possible fixes, any would work: * Allow the user to space the triangular grid using the base instead of the hypotenuse. * Allow non-integer values for the x and y coordinates in the slice persona. * Allow the user to enter expressions that result in irrational numbers in the spacing field . I attached a screenshot showing the misaligned grids in a zoomed-in slice persona.  This is allowed presently, but the result is resolved to an insufficient precision. Even on a small canvas (500px by 500px) the accumulating difference means that the two grids become misaligned fairly quickly.