ZFGC

Projects => Other Projects => Topic started by: Infinitus on January 04, 2009, 12:42:31 am

Title: Sprite Sheet Maker
Post by: Infinitus on January 04, 2009, 12:42:31 am
Explanation


Basically sprite sheet maker is a program I wrote for my own use for one of my projects (written over the amazing time frame of about an hour u_u). I've decided to clean it up and post it here.

Basically it allows you to take poorly formatted sprite sheets and run them through this program and produce well laid out sprite sheets capable of being easily imported into most game engines.

Blah, blah, blah. Simply put I needed to convert a bunch of sprite sheets from some well known websites, none of them were laid out very well so I decided to write this little tool rather than spend ages ripping all of them.

The tool is crude, and its slow, and its far from complete (new version soon hopefully, hate the current algorithem) but it does the job I need it for. Perhaps you may find use of it *shrugs*.

Next thing I'm going to do if I can get the chance is to change the algorithm (my god its slow u_u), and to add a window where you can change the index of each frame, as well as making slight positioning changes (saves opening paint and doing it XD).

Example


An example of its use might be if you had a sheet like this;

(http://www.binaryphoenix.com/projects/SpriteSheetMaker/firehero.gif)

You could remove the text and general crap, to get this kind of sheet;

(http://www.binaryphoenix.com/projects/SpriteSheetMaker/firehero.png)

Then run it through the program to get something like this;

(http://www.binaryphoenix.com/projects/SpriteSheetMaker/sheet.png)

+ A few positioning tweeks and you have a sprite sheet thats easily importable into a game engine.

Downloads


Build 1: http://www.binaryphoenix.com/index.php?action=download&id=125

Screenshot


(http://www.binaryphoenix.com/projects/SpriteSheetMaker/screenshot.png)

Heres the contents of the readme file, save me from typing it all again;

Quote
---------------------------------
Sprite Sheet Maker
Copyright (C) 2008 Binary Phoenix
---------------------------------

This tool is pretty simple to use. All you do is drag an image onto the
left hand panel and the tool will try and process it into a more game
friendly format.

At the moment this tool is still very early in development and will
probably crash now and again. I apologise for this, all I can say is you'll
have to bear with my while I fix the problems.

Tips on use

 - Remove text or exterenuous data from the image first.
   If you don't do this the algorithem may pick up individual text
   letters as frames. You really don't want this to happen as it may
   cause very long progress times, and very messed up sprite sheets.

 - Keep images small
   The bigger the image, the longer its going to take to progress! Keep all
   images as small as possible to keep everything going smoothly!

 - Try and keep all things on one row
   This isn't neccessary, but it helps fix indexing problems in the final sprite sheet.

There are a number of currently know problems, mainly;

 - Very slow
   This is due to the inefficient segmenting algorithem the system
   currently uses. I'm currently working on implementing a faster
   more efficient one.
   
 - Emitted frames may not be in the correct order.
   This is simply a problem on the side of the computer. Deciding exactly
   which frames should go where is hard to determine, especially if they
   are not lined up in the original image. The program will try as hard
   as it can to organise them in a top-left to bottom-right grid but occassionaly
   you may have to reorganise some yourselves.

 - Problems with indexed color images (palleted images)
   This is due to the method I'm using to read data from images. This should
   be fixed soon.

 - Problems with artifacts around a frame (dust, particles, .etc)
   This is a problem with the algorithem currently in use. If the
   artifact dosen't touch the main body of the frame it will be considered
   a different frame by the algorithem. I'm currently implementing a
   "tolerance threshold" into the system so it will accept artifacts within
   a certain range of a frame.
   
 - Progress bar may hang at 100% for a few minutes
   This is due to some extra calculations which may take time but aren't
   factored into the progress bar. Should be fixed in the next release.
Title: Re: Sprite Sheet Maker
Post by: King Tetiro on January 04, 2009, 12:35:18 pm
Although I don't use other people's sprites, that looks awesome. 10/10. Well done.
Title: Re: Sprite Sheet Maker
Post by: sjegtp on January 09, 2009, 08:30:59 pm
:O That's a great idea! Very nice and very useful.
Good luck trying to make it faster. :)
Title: Re: Sprite Sheet Maker
Post by: wildex999 on January 12, 2009, 07:49:03 pm
Whooo, Looks usefull, I'm tired of manually positioning and tweaking sprites in a spritesheet ;)
Title: Re: Sprite Sheet Maker
Post by: OriZak on January 30, 2009, 10:07:37 pm
Haha the icon made me laugh :)
It errors out when I hit Process, but it looks like a really good tool and when I have more time I'll definitely try to get it to work.
Title: Re: Sprite Sheet Maker
Post by: Moon_child on February 19, 2009, 02:09:25 am
That looks like a really usefull tool! I'll wait for a stable and faster version!
Title: Re: Sprite Sheet Maker
Post by: OriZak on March 04, 2009, 08:17:57 pm
Finally got around to dropping this on my main desktop, works great! It also helped me realize why some of my graphics were weird in my game (due to gimp saving an odd resolution along with the png, all I had to do was re-export with the resolution box unchecked).

Also, the link is broken in your post. It should be http://www.binaryphoenix.com/index.php?action=projects&id=11
Title: Re: Sprite Sheet Maker
Post by: LTGH on March 04, 2009, 09:54:37 pm
Totaly awesome!
i give it a 8/10 becouse it can be faster. I think.
Title: Re: Sprite Sheet Maker
Post by: Dumb_Ass on March 10, 2009, 04:21:50 am
So it's fully automatic? How does it work?
Title: Re: Sprite Sheet Maker
Post by: Smooth on March 10, 2009, 08:14:56 pm
Looks awesome, im gonna check it out :)
Title: Re: Sprite Sheet Maker
Post by: clem04 on March 10, 2009, 09:25:57 pm
Could we ajust the type of positioning ?

(center in frame, all the sprite in a common rectangle ...)

Contact Us | Legal | Advertise Here
2013 © ZFGC, All Rights Reserved