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

export a tilemap from an image using an existing tileset (feature request) #22

Open
sverx opened this issue Oct 27, 2021 · 9 comments
Open

Comments

@sverx
Copy link
Contributor

sverx commented Oct 27, 2021

Since I don't think this is currently possible I marked this as a 'feature request'.
I would love if BMP2Tile could accept an image and an uncompressed binary tileset and generate the tilemap for the image using the provided tileset. Using this, one would be able to generate more images from the same shared tileset.

@maxim-zhao
Copy link
Owner

I think #2 would cover the same idea - namely, to draw a bunch of art on an image and have the tileset be the common tileset (perhaps defined carefully in an upper area to control the ordering) but then also be able to extract tilemaps built from this shared tile set.

@sverx
Copy link
Contributor Author

sverx commented Oct 28, 2021

well, very similar but slightly different in usage, as the tileset would be generated the 'usual' way from a single source image (for instance the meta-tileset used in Tiled or similar map editors) and then additional images would re-use that generated tileset in a subsequent BMP2Tile processing.

@sverx
Copy link
Contributor Author

sverx commented Dec 8, 2021

As an alternative, would it be possible to have an option to generate the tileset from a second BMP/PNG instead?
So that I would use the tileset image to generate the tileset and the source image to generate the tilemap?

It would work this way:

  • load the 'tileset' input image
  • generate the tileset
  • load the 'source' input image
  • generate the tilemap from this image using the tileset created beforehand

(of course the point here is to save the tilemap)

@sverx
Copy link
Contributor Author

sverx commented Dec 8, 2021

(command line option could be)
-sourcetiles <filename>

@maxim-zhao
Copy link
Owner

It makes sense and is similar to what currently happens in the Sonic 1 editor...

@sverx
Copy link
Contributor Author

sverx commented Dec 9, 2021

the icing on the cake would be to support both an image (used then to generate the tileset) or an uncompressed binary file tileset as the -sourcetiles parameter

@maxim-zhao
Copy link
Owner

Well, that's already supported - you can load VRAM dumps (with extension .bin) but it doesn't make sense to create a palette or tilemap from them.

@sverx
Copy link
Contributor Author

sverx commented Dec 9, 2021

I don't think I get what you mean here... can you load a source image and a VRAM dump? 🤔

@maxim-zhao
Copy link
Owner

No - you can load a VRAM dump and save the tiles, but of course there's no dual-loading mode available yet. So in one respect, you can already load VRAM dumps.

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

No branches or pull requests

2 participants