Hello Guest, please login or register.
Did you miss your activation email?
Login with username, password and session length.

Pages: [1]   Go Down

Author Topic: Sprite Sheet Maker  (Read 3577 times)

0 Members and 1 Guest are viewing this topic.
Sprite Sheet Maker
« on: January 04, 2009, 12:42:31 am »
  • *
  • Reputation: +3/-0
  • Offline Offline
  • Gender: Male
  • Posts: 6629
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;



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



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



+ 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




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.
« Last Edit: January 04, 2009, 12:46:51 am by Infini »
Logged

King Tetiro

Leader of Phoenix Heart
Re: Sprite Sheet Maker
« Reply #1 on: January 04, 2009, 12:35:18 pm »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 3549
Although I don't use other people's sprites, that looks awesome. 10/10. Well done.
Logged
  • Phoenix Heart
Re: Sprite Sheet Maker
« Reply #2 on: January 09, 2009, 08:30:59 pm »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 1141
:O That's a great idea! Very nice and very useful.
Good luck trying to make it faster. :)
Logged
Re: Sprite Sheet Maker
« Reply #3 on: January 12, 2009, 07:49:03 pm »
  • The devil in the mirror.
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 238
Whooo, Looks usefull, I'm tired of manually positioning and tweaking sprites in a spritesheet ;)
Logged
Working on my Masters Degree in Computer Science.
Hey look, Zelda Coop....later.
Proud user of C++ for 9 years, and counting!
Re: Sprite Sheet Maker
« Reply #4 on: January 30, 2009, 10:07:37 pm »
  • MetalRidley was here
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 235
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.
Logged



THE MUSIC IS REVERSIBLE, BUT TIME IS NOT. TURN BACK... turn back... turn back...
Re: Sprite Sheet Maker
« Reply #5 on: February 19, 2009, 02:09:25 am »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 6206
That looks like a really usefull tool! I'll wait for a stable and faster version!
Logged
Re: Sprite Sheet Maker
« Reply #6 on: March 04, 2009, 08:17:57 pm »
  • MetalRidley was here
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 235
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
Logged



THE MUSIC IS REVERSIBLE, BUT TIME IS NOT. TURN BACK... turn back... turn back...
Re: Sprite Sheet Maker
« Reply #7 on: March 04, 2009, 09:54:37 pm »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Posts: 212
Totaly awesome!
i give it a 8/10 becouse it can be faster. I think.
Logged
Re: Sprite Sheet Maker
« Reply #8 on: March 10, 2009, 04:21:50 am »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Female
  • Posts: 2374
So it's fully automatic? How does it work?
Logged

Smooth

I hurt myself today, to see if i still feel.
Re: Sprite Sheet Maker
« Reply #9 on: March 10, 2009, 08:14:56 pm »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 15
Looks awesome, im gonna check it out :)
Logged
Re: Sprite Sheet Maker
« Reply #10 on: March 10, 2009, 09:25:57 pm »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 9
Could we ajust the type of positioning ?

(center in frame, all the sprite in a common rectangle ...)
Logged
Pages: [1]   Go Up

 


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



Page created in 0.307 seconds with 60 queries.

anything