Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Major Grid doesn't work for staggered maps #3583

Closed
eishiya opened this issue Feb 20, 2023 · 3 comments · Fixed by #3586
Closed

Major Grid doesn't work for staggered maps #3583

eishiya opened this issue Feb 20, 2023 · 3 comments · Fixed by #3586
Assignees
Labels
bug Broken behavior.
Milestone

Comments

@eishiya
Copy link
Contributor

eishiya commented Feb 20, 2023

On Staggered maps, it looks like every grid line is rendered as if it were a Major Grid line, making the major grid impossible to see.

Compare Isometric vs Isometric (Staggered), no other settings changed:
imageimage
Note how the grid lines in the staggered map are all as thick as the major grid lines in the non-staggered map.

Reproduce

  1. Set the major grid to something larger than 1x1, but small enough that you can clearly see the major grid lines, e.g. 10x10
  2. Create an Orthogonal or Isometric map that's larger than the Major Grid, so you can see the grid lines
  3. Observe the clear visual distinction between regular and major grid lines
  4. Change the map orientation to Isometric (Staggered) or to Hexagonal (Staggered)
  5. Observe how every grid line appears thick like a major grid line

This was reported via Discord on Tiled 1.9.2 on MacOS. I was able to reproduce it in Tiled 1.9.1 (Qt5) and 2023.02.17 (Qt6) on Win10 x64.

@eishiya eishiya added the bug Broken behavior. label Feb 20, 2023
@bjorn
Copy link
Member

bjorn commented Feb 21, 2023

It's not supported because I wasn't sure how that should be rendered. Which lines would you expect to be "major" for staggered (or hexagonal, since that's the same renderer) maps? Probably it would be a staggered line rather than a straight diagonal one?

@eishiya
Copy link
Contributor Author

eishiya commented Feb 21, 2023

I would expect the line to be staggered, that would make it easiest to gauge distances along a particular row/column.

I'm curious why all the grid lines on staggered maps are currently rendered bolder than the plain grid lines on non-staggered maps xP

@bjorn
Copy link
Member

bjorn commented Feb 21, 2023

I'm curious why all the grid lines on staggered maps are currently rendered bolder than the plain grid lines on non-staggered maps xP

Before major grid was implemented, the grid had alpha 128. When the major grid feature was implemented, it was changed to 96 for non-major lines and 192 for major lines. Rather than using the old opacity for staggered, it currently just renders all lines as major, which is why the grid got a bit brighter since a1a9e18.

I think the way I'm currently drawing the hex/staggered grid may not really make it easy to render the major lines differently, but I will have a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Broken behavior.
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants