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

Multiple terrain levels of detail #974

Closed
TristanBomb opened this issue Jun 9, 2015 · 3 comments
Closed

Multiple terrain levels of detail #974

TristanBomb opened this issue Jun 9, 2015 · 3 comments
Labels
feature It's a feature, not a bug.
Milestone

Comments

@TristanBomb
Copy link

The current terrain system is extremely handy and a vast improvement over simple tile placement, but the current 16-state system (4 corners) doesn't give much room for details like U-shaped tiles. Perhaps a variable grid can be implemented: the default being 2x2 (current system), but can be altered to 3x3 (corners, edges, and middle; sufficient for pretty much everything) or higher. This would also allow for single-tile brushes that still connect to other terrain.

Of course, it's still pretty viable to just add the details by hand, and I'm sure such a suggestion wouldn't be too simple to implement.

@bjorn bjorn added the feature It's a feature, not a bug. label Jun 9, 2015
@bjorn bjorn changed the title Feature Request: Multiple terrain levels of detail Multiple terrain levels of detail Jun 9, 2015
@bjorn
Copy link
Member

bjorn commented Jun 9, 2015

Even with the monthly support on Patreon allowing me to spend one full day a week on Tiled, it is currently unlikely that I would get around to supporting this use-case. That said, I would like to make improvements to the terrain tool at some point and this would be one possible improvement.

Unfortunately this amount of detail is not just making the implementation trickier, but it also raises some questions on how the editing should work. With 3x3 points of terrain on a single tile, the current way of painting the terrain onto the tiles will get rather fiddly. Also, you get into the situation where a huge amount of variations will never actually exist in the tileset.

That said, there seem to be ways of dealing with these things and it would definitely be an interesting topic to look into.

On a sidenote, I want to point out that even though the terrain tool is using 4 corners, it is not a 16-state system. This is because each of the 4 corners can be assigned any of up to 255 different terrain types. So with a byte per corner rather than a bit per corner, actually it's a 256^4 (or 2^32) state system. This allows it to handle tilesets like https://github.com/tales/sourceoftales/blob/master/tiles/terrain.png

@TristanBomb
Copy link
Author

Okay, thanks.

@bjorn
Copy link
Member

bjorn commented Oct 8, 2020

The "3x3" setup (except the middle, for now) is now supported by the Wang Brush using a "Mixed" Wang set. This improved Wang Brush is replacing the Terrain Brush in Tiled 1.5.

@bjorn bjorn closed this as completed Oct 8, 2020
@bjorn bjorn added this to the Tiled 1.5 milestone Oct 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature It's a feature, not a bug.
Projects
None yet
Development

No branches or pull requests

2 participants