-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Add configurable layer height offset #4
Comments
I'd do it more flexibly, by having a layer offset for both vertical and horizontal (positive as well as negative). |
In addition to the heightmap offset, |
@nobody-special666, that sounds like an offset option for the tileset rather than the layers. See also issue #16. |
#75 has been closed as a duplicate of this one. |
I've begun work on this on eropple/tiled, branch layeroffset. I may need some help finding my way around the Qt bits; I'll be hanging around #tiled while I work. |
Is there any update on this? For now, I'm working around this by adding a "heightOffset" layer property and then correctly handling it in my engine (offsetting their location in the grid while keeping them drawn in the same place). It would be really nice if Tiled supported it directly, though. |
No update, sorry--got frustrated by the poor communication on the -Ed (mobile) On Jul 21, 2012, at 3:03 PM, Noam Chitayat
|
Sorry to hear that @eropple. I generally try answering questions as fast as possible on both mailing list and IRC, but I'm also busy with my job, family and other projects, which can cause more time-consuming issues to lay around for a long time. In any case if it was easier for you to write an in-engine editor than to add this feature to Tiled, then this was probably the right approach for you. |
Hey, it's no big deal - everyone gets busy. =) Dogfooding in the -Ed (mobile) On Jul 22, 2012, at 3:16 AM, "Thorbjørn Lindeijer"
|
Go easy on bjorn. He has worked hard to bring us a really great editor. :) |
Any news on this? I would be really happy if there were a feature like this, if only it'd make isometric maps less esoteric and would also really help me as I use tiled to preview isometric tiles for this one weird project where the layers alternate between 20x20 tiles and 32x32 tiles. |
Any news on this? :) Im also thinking about second way of doing this: global layer height offset - configurable when creating/editing map - so you have enter: tile width, tile height and layer height offset (tile depth?). Default layer offset = tile height. Then it can be changed in layer creation in same way as tile size can be changed in new tileset. PS: Maybe just add one global layer offset without per-layer offsets as a quick-fix? It should be easy to implement. And if one need layers of "full-height" and "half-height" one can type "half-height" as offset, and use one empty layer over half-height to reserve space for full-height tiles. PPS: I love this editor! |
@stawii Please be careful with statements like "It should be easy to implement." unless you're willing to have a go at it yourself. While I have an idea of how it could be done, I can see numerous tricky things to solve like grid, selection and brush preview rendering becoming dependent on the currently selected layer and the map view needing extra space. Also, my spare time is severely limited so I have to make priorities. Implementing features that I don't personally need is not something I can afford to spend time on, unless somebody offers to sponsor it for example. Still, it's great to hear you love Tiled! |
I'm interested in this feature too, so I will give it a go. Anyway, I would apreciate if someone could give a look to the fork where I'm working at; this is my first time using C++ and Qt (I'm learning as I go) so I'm afraid I may be doing something unnecesary or wrong. Lastly, thanks for the great editor 😄 |
Hi again. I think I was able to reach an usable state of this feature on isometric maps. |
@asermax If you feel you would benefit from a code review, please open a pull request. I don't have much time and a pull request makes it much easier to see and discuss changes than digging through the commits in another repository. I see you've done a lot of work so please be patient with me! |
Allright, will do 👍 |
* Can be changed in Properties view (with undo) * Is written to/from TMX and JSON map formats * Is not used for anything yet Issue #4
This affected the following: * Applying the layer offset to the TileLayerItem * Translating pixel positions to tile positions in AbstractTileTool * Determining the bounding rect of the map in MapScene * Determining the area to repaint when map regions are changed * Adjusting the position of brush previews and tile selection rendering * Applying the layer offset in mini-map control * Applying the layer offset when exporting a map as image * Updating tmxviewer to support the layer offset * Updating tmxrasterizer to support the layer offset Issue #4
The most complicated bit was to adjust the object selection tool to take into account the layer offset during rotation and resize. The other part that needed some adjustment was the create object tool. Issue #4
Awesome! Next version is gonna be exciting! |
Placing it between the main content and the footer seems suitable to me. Closes #4
updated qbs file for libtiled to solve naming conflict
Some tilesets allow layers to be stacked to create varying heights. An example of such a tileset can be seen on Lost Garden:
http://www.lostgarden.com/2007/05/dancs-miraculously-flexible-game.html
Or for example this isometric outside tileset:
http://opengameart.org/content/isometric-64x64-outside-tileset
It would be nice if Tiled supported these kind of tilesets, by allowing maps to define a height offset between (tile) layers.
This issue replaces the following issue from the old issue tracker:
http://sourceforge.net/apps/mantisbt/tiled/view.php?id=88
The text was updated successfully, but these errors were encountered: