Building optimized metasprite from image?

Discussion of hardware and software development for Super NES and Super Famicom. See the SNESdev wiki for more information.
Forum rules
  • For making cartridges of your Super NES games, see Reproduction.
djcouchycouch
Posts: 97
Joined: Sat May 28, 2011 10:30 am

Building optimized metasprite from image?

Post by djcouchycouch »

Hi,

I have many large sprites that I want to break down into individual hardware sprites, maximizing sprite coverage while minimizing the number of used sprites. I'm doing it manually but I wonder if there's a tool that can do it automatically. There probably isn't one, but I figured I'd ask :)

Assuming there isn't one, what problem domain is this kind of image analysis? What solutions are usually used? What should I be looking at in terms of theory?

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

Re: Building optimized metasprite from image?

Post by tepples »

There used to be something called Objective that worked by first converting an image as a set of columns, then converting it as a set of rows, and keeping the one with the fewest tiles.
For example, converting as a set of rows turns the top image in this post into the bottom image.
See also Tilificator.