Tool that breaks up bitmap, removes duplicate tiles, etc?

A place for your artistic side. Discuss techniques and tools for pixel art on the NES, GBC, or similar platforms.

Moderator: Moderators

Post Reply
djcouchycouch
Posts: 97
Joined: Sat May 28, 2011 10:30 am

Tool that breaks up bitmap, removes duplicate tiles, etc?

Post by djcouchycouch »

Any suggestions for a tool that:

- takes a bitmap
- breaks it into 8x8 tiles
- removes duplicates
- saves the tiles into a separate bitmap
- creates array of tile indexes to rebuild the bitmap as tiles
- saves array to a file

Thanks!
djcc
tepples
Posts: 22705
Joined: Sun Sep 19, 2004 11:12 pm
Location: NE Indiana, USA (NTSC)
Contact:

Re: Tool that breaks up bitmap, removes duplicate tiles, etc

Post by tepples »

I made one, and it even handles NES attributes if you give it a palette to work with.

Homebrew Projects > Graphics editor for NES
User avatar
thefox
Posts: 3134
Joined: Mon Jan 03, 2005 10:36 am
Location: 🇫🇮
Contact:

Re: Tool that breaks up bitmap, removes duplicate tiles, etc

Post by thefox »

Shiru's NES Screen Tool can import a bitmap and optimize out duplicate tiles, but I'm guessing you're looking for a solution that's not limited to NES?
Download STREEMERZ for NES from fauxgame.com! — Some other stuff I've done: fo.aspekt.fi
djcouchycouch
Posts: 97
Joined: Sat May 28, 2011 10:30 am

Re: Tool that breaks up bitmap, removes duplicate tiles, etc

Post by djcouchycouch »

thefox wrote:Shiru's NES Screen Tool can import a bitmap and optimize out duplicate tiles, but I'm guessing you're looking for a solution that's not limited to NES?

That's correct. I'd be using it for my genesis project but its the sort of tool that's useful no matter the platform.
Shiru
Posts: 1161
Joined: Sat Jan 23, 2010 11:41 pm

Re: Tool that breaks up bitmap, removes duplicate tiles, etc

Post by Shiru »

I have such tool in my personal use, not limited to NES and small pictures, but it is so user unfriendly so even I have difficulties with it. If you won't be able to find something better, I can fix it a bit to be more useful for users other than me.
User avatar
Kasumi
Posts: 1293
Joined: Wed Apr 02, 2008 2:09 pm

Re: Tool that breaks up bitmap, removes duplicate tiles, etc

Post by Kasumi »

Pyxel Edit
It can do everything in your list. (though the way it saves an array to a file may not be best for you. But whatever)
Import an image with 8x8 tile size. It will check for duplicates, even transformations. (Sadly you can't choose which transformations. For instance, You want it to check for X and Y flipped tiles but not rotations.)

It's a pretty self explanatory program.
User avatar
byemu
Posts: 297
Joined: Mon Sep 05, 2011 5:56 pm
Contact:

Re: Tool that breaks up bitmap, removes duplicate tiles, etc

Post by byemu »

djcouchycouch wrote:Any suggestions for a tool that:

- takes a bitmap
- breaks it into 8x8 tiles
- removes duplicates
- saves the tiles into a separate bitmap
- creates array of tile indexes to rebuild the bitmap as tiles
- saves array to a file

Thanks!
djcc
I think I can make one!

The idea:
1 convert bitmap to 64 colors
2 convert bitmap to chr
3 removes duplicates(chr)
4 make nametable(pal...) from bitmap and chr

Is it right?
djcouchycouch
Posts: 97
Joined: Sat May 28, 2011 10:30 am

Re: Tool that breaks up bitmap, removes duplicate tiles, etc

Post by djcouchycouch »

byemu wrote: I think I can make one!

The idea:
1 convert bitmap to 64 colors
2 convert bitmap to chr
3 removes duplicates(chr)
4 make nametable(pal...) from bitmap and chr

Is it right?
I was looking for more of a generalized tool since I'm not working on NES at the moment. It wouldn't need to be platform specific at all. Ideally it would handle various pixel bit depths correctly. It just takes a bitmap of whatever depth and covert it to a tile set bitmap and an array (in C, in text, in asm, whatever).

I'll be checking out people's suggestions. Thanks!
ccovell
Posts: 1045
Joined: Sun Mar 19, 2006 9:44 pm
Location: Japan
Contact:

Re: Tool that breaks up bitmap, removes duplicate tiles, etc

Post by ccovell »

There was one made for the GBA that did this (can't find it on my computer anymore, tho... nor remember the name.) and since it worked with 4bpp tiles, SNES and PCE tilemaps could be made as well. It did have a bug where it dropped about 3 tiles per tilemap, but it served its purpose well enough.

I dunno, try searching GBA dev sites for map creation tools.
dasi
Posts: 1
Joined: Sat Sep 01, 2012 4:01 pm

Re: Tool that breaks up bitmap, removes duplicate tiles, etc

Post by dasi »

djcouchycouch wrote:Any suggestions for a tool that:

- takes a bitmap
- breaks it into 8x8 tiles
- removes duplicates
- saves the tiles into a separate bitmap
- creates array of tile indexes to rebuild the bitmap as tiles
- saves array to a file
This is easily done with grit: grit input.png -m -fx tiles.png. See the manual for details.
Last edited by dasi on Tue Dec 11, 2012 1:00 pm, edited 2 times in total.
User avatar
TmEE
Posts: 960
Joined: Wed Feb 13, 2008 9:10 am
Location: Norway (50 and 60Hz compatible :P)
Contact:

Re: Tool that breaks up bitmap, removes duplicate tiles, etc

Post by TmEE »

I use my GFX converter for such a job, it supports 4 or 8 bit BMP files and can generate just tiles, tiles arranged for sprites and as optimized image file that holds a tilemap and tiles with dupes removed. Made for MD but can do SMS/GG too (and possibly other machines too with some adjustments).
No user interface nor command line, only takes a configuration file with parameters laid out. No error checks so there will be some possibly spectacular fails on bad input :P
User avatar
hawken
Posts: 79
Joined: Sun Jan 25, 2015 6:51 pm
Location: Tokyo
Contact:

Re: Tool that breaks up bitmap, removes duplicate tiles, etc

Post by hawken »

I am using a combination of pyxel edit and photoshop for this process.
twitter: http://twitter.com/hawkun
Pirate Pop Plus - gameboy styled game for 3DS, WiiU & Steam
nintendo8
Posts: 54
Joined: Tue Jul 10, 2012 1:37 pm

Re: Tool that breaks up bitmap, removes duplicate tiles, etc

Post by nintendo8 »

Retro Graphics Toolkit should be able to do that see viewtopic.php?f=21&t=9894
If you want a custom tile bit-depth or size that will be available soon. Also with Lua scripting you will have lots of possibilities to do what you want.
Post Reply