Comments (4)
Fixed in 710664d. It does the palette fixing for you but it does do it silently.
from bmp2tile.
Selecting two palettes and assigning one per tile is a much more tricky problem than bmp2tile solves right now. It could try to detect if the image is already suitably divided into 8x8 blocks of matching palettes, I suppose.
from bmp2tile.
I understand. The worst part is to select which of the 32 colors should be on which of the 2 palettes.
But it will be easier if you add the requisite that the artist must have worked with two separate palettes himself.
Then, to populate the palettes on the conversion, you just would have a preliminary step to group the 32 colors as they appear together on the file. Scan tile for tile, then create the two color tables separately, both ordered from the most used color to the least used.
If one of the tables ends up with more than 32 colors, you can issue a warning and:
- Move the excessive least used colors from one table to the other
- Change the offending pixel of that tile to the closest color in the palette that tile uses
Not perfect, but better than nothing. :)
from bmp2tile.
Selecting two palettes and assigning one per tile is a much more tricky problem than bmp2tile solves right now. It could try to detect if the image is already suitably divided into 8x8 blocks of matching palettes, I suppose.
This would be very handy. I suppose while loading the image it could detect that and ask the user if he wants to continue in dual-palette mode, where tiles would work as expected, tilemaps would use the palette bit according to image and palettes would export a 'dual palette' (32 bytes for SMS).
from bmp2tile.
Related Issues (20)
- Export to a binary file HOT 2
- Can't load plugins (in Wine) HOT 1
- Palette image doesn't reflect what's in the saved data HOT 6
- BMP2Tile 0.5 "Unsupported bitmap format Format32bppArgb"... HOT 4
- Command line parameters can trigger a de-optimization
- GUI doesn't seem to close the image file handle
- "Blank" tile ignoring
- swap the palettes in image HOT 2
- Need to release 0.51 HOT 1
- Bundle release with at least raw codec HOT 1
- add -h for brief help
- export a tilemap from an image using an existing tileset (feature request) HOT 9
- problem with a dual-palette image
- BMP2TileGUI.exe exports a SMS (6-bit RGB) palette even when GG (12-bit RGB) is selected HOT 1
- Plugins not recognized HOT 1
- Non-flip tilemap atttribute bits missing when saved as binary/compressed HOT 1
- Reading Color from Image Palette instead Of from Color Usage HOT 2
- ... a checkbox to keep 4bpp images palette untouched HOT 2
- width and height swapped when calling the CompressTilemap plug-in function HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bmp2tile.