8000 Ability to zoom in to part of Tilemap · Issue #115 · Sprytile/Sprytile · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Ability to zoom in to part of Tilemap #115

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

Open
noio opened this issue Jan 29, 2019 · 3 comments
Open

Ability to zoom in to part of Tilemap #115

noio opened this issue Jan 29, 2019 · 3 comments

Comments

@noio
Copy link
noio commented Jan 29, 2019

When using a really large tilemap, sometimes it would be nice to 'zoom in' to use just a part of that tilemap.

I thought that's what "Margins" were for, but those are per tile.

The screenshot shows the issue.

screen shot 2019-01-29 at 11 28 15

Of course one could start with a smaller tilemap, but that would mean having to adjust all the UVs later when the tilemap is resized.

@ologon
Copy link
Contributor
ologon commented Feb 19, 2019

I also wanted this feature, will try to implement it in my spare time :)
Since Ctrl+scroll is already being used for switching tile size, I would go with Alt+scroll to zoom the tilemap, and middle mouse button to move it around.

Of course one could start with a smaller tilemap, but that would mean having to adjust all the UVs later when the tilemap is resized.

Another feature I would like to implement is "recovering" the uvs when the tilemap is resized and new tiles are added to it. Right now changing the tilemap seems to break all uvs, which can be a deal breaker for large levels.

@noio
Copy link
Author
noio commented Feb 21, 2019

"recovering" the uvs when the tilemap is resized and new tiles are added to it.

This is a problem in blender in general. That is why I am starting out with a huge tilemap, to prevent having to resize later.

However, the "Multi UV Edit" plugin has helped me with this! It allows you to scale the UV coords of all objects in the file simultaneously. And usually it's just a matter of Scale * 0.5 when the tilemap is doubled in size.

Alt+scroll to zoom the tilemap

screen shot 2019-02-21 at 16 53 09

In my case it would be preferable for the "crop regions" to be linked to the Grid Settings presets. That is actually what I initially thought Padding and Margins were for, until I realized those were 'per tile'. Then Ctrl+Scroll will also iterate through those presets! (though ctrl+scroll doesn't work on a Mac because that has a different binding already.)

@ologon
Copy link
Contributor
ologon commented Feb 22, 2019

This is a problem in blender in general. That is why I am starting out with a huge tilemap, to prevent having to resize later.

However, the "Multi UV Edit" plugin has helped me with this! It allows you to scale the UV coords of all objects in the file simultaneously. And usually it's just a matter of Scale * 0.5 when the tilemap is doubled in size.

Yes, I would like to avoid starting with a huge tilemap, because I can't really predict how large the tilemap will end up being and I may end up wasting a lot of texture memory. Multi UV Edit looks like a nice workaround, however considered this feature shouldn't be too hard to implement I will try adding it :)

In my case it would be preferable for the "crop regions" to be linked to the Grid Settings presets.

This sounds like a very good idea. If each grid "remembers" its tilemap zoom, this becomes possible, and you can easily change the crop region later by dragging it with the Alt + middle mouse button.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0