fix(mapgen-studio): odd-Q flat-top orientation, canonical hex-space lattice, and tile-mesh contract#1638
Merged
Merged
Conversation
This was referenced Jun 12, 2026
Merged
refactor(studio): decompose App.tsx non-React corpus into feature modules and shared utilities
#1608
Merged
Merged
|
Railway preview (MapGen Studio): not provisioned for this PR. Policy (Graphite stacks): previews are created only for the top-of-stack PR by default.
Debug: |
This was referenced Jun 12, 2026
This was referenced Jun 12, 2026
Merged
mateicanavra
force-pushed
the
design/tile-orientation
branch
from
June 12, 2026 20:44
df29c71 to
edc6c49
Compare
Owner
Author
Merge activity
|
mateicanavra
changed the base branch from
design/grid-icon
to
graphite-base/1638
June 12, 2026 21:56
…space lattice + tile-mesh contract (transparent noData, shared border ink)
mateicanavra
force-pushed
the
design/tile-orientation
branch
from
June 12, 2026 21:58
edc6c49 to
dd1b7c0
Compare
This was referenced Jun 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes
tile.hexOddQlayers rendering with the wrong hex orientation and establishes a consistent tile-mesh visual contract.Hex orientation fix
tile.hexOddQwas incorrectly rendered using pointy-top geometry — the same path astile.hexOddR— producing rotated tiles on a sheared lattice. Column-offset (odd-Q) layouts are flat-top by construction. The fix aligns odd-Q rendering with mapgen-core's canonical hex space (projectOddqToHexSpace): columns √3·size apart, rows 1.5·size apart, odd columns shifted down 0.75·size. This is the same coordinate frame the Delaunay mesh and allworld.xylayers are built in, so tile layers now co-register correctly with mesh and world stages.A new
hexPolygonOddQfunction produces the flat-top hexagon that exactly tiles this lattice (vertical pitch compressed to the 1.5·size row spacing, no gaps or overlaps). The grid geometry builder dispatches tohexPolygonOddQorhexPolygonPointybased on space. TheboundsForTileGridodd-Q branch is corrected to cover the same lattice. The intermediate pointy-top axial conversion helpers that were previously used for both spaces are removed.Tile-mesh contract
UNKNOWN_COLOR(noData and non-finite values) is now fully transparent, so unfilled tiles draw nothing and leave no phantom mesh over the canvas background.TILE_BORDER_COLOR, a mid-luminance slate that remains legible against white, black, and graphite canvas backgrounds.Tests added