Chaos Project

General => Electronic and Computer Section => Topic started by: G_G on December 21, 2010, 01:34:57 pm

Title: Sprite Sheet Animator
Post by: G_G on December 21, 2010, 01:34:57 pm
Sprite Sheet Animator



Intro

Have a sprite that you want to show off? Well its easy to do that but if its an animated sprite and you want to show off the animation well then that requires some image cropping, a program that turns images into a gif and blah blah blah. Well this handy dandy program takes a sprite sheet and turns each column into an animated sprite.


Features



Screenshots

Images of GUI
Spoiler: ShowHide
(http://i56.tinypic.com/29yf9rr.png)
(http://i53.tinypic.com/1z1639l.png)


Example Products of Program
Turns This: ShowHide
(http://i52.tinypic.com/148f6m0.png)

Into This: ShowHide
(http://i55.tinypic.com/nl3147.gif)
(http://i53.tinypic.com/34ydz5l.gif)
(http://i54.tinypic.com/qsw7kn.gif)


Video (http://www.youtube.com/watch?v=Da7ssKh1usI&feature=youtube_gdata_player)


Download

Download (Mediafire) (http://www.mediafire.com/download.php?6vl0zt9pm6abe20)


Instructions

There are some instructions in the download's README file.


Credits

Title: Re: Sprite Sheet Animator
Post by: The Niche on December 21, 2010, 01:51:37 pm
G_G you are awesomeness personified.
Title: Re: Sprite Sheet Animator
Post by: WhiteRose on December 21, 2010, 03:15:51 pm
<3
Title: Re: Sprite Sheet Animator
Post by: Dweller on December 21, 2010, 04:01:41 pm
Fantastic, this is a very usefull tool if you work with makers animations. Really great work g_g.
Title: Re: Sprite Sheet Animator
Post by: G_G on December 22, 2010, 09:43:09 am
Glad you guys like it. I plan on making a set of tools for sprite sheets. A merger, a seperator, and then include this the animator.

That way it'll help people seperate sheets then place them together into an easier nicer sheet.
Title: Re: Sprite Sheet Animator
Post by: Spaceman McConaughey on December 23, 2010, 03:56:25 pm
http://www.youtube.com/watch?v=Da7ssKh1usI&feature=youtube_gdata_player

G_G asked me to upload a video of it, so there you guys go.
Title: Re: Sprite Sheet Animator
Post by: G_G on December 27, 2010, 02:00:49 am
Updated video link and download link. Download is now on mediafire which is pretty reliable. One more thing, I got bored so I fully commented the entire thing. Except a few things here and there. I was curious if anyone wanted to check out the source code. Lemme know and I'll upload it and post it to the public.
Title: Re: Sprite Sheet Animator
Post by: ForeverZer0 on December 27, 2010, 12:26:29 pm
Quote from: game_guy on December 27, 2010, 02:00:49 am
Updated video link and download link. Download is now on mediafire which is pretty reliable. One more thing, I got bored so I fully commented the entire thing. Except a few things here and there. I was curious if anyone wanted to check out the source code. Lemme know and I'll upload it and post it to the public.


I'd be very interested. I recently picked up a few books on XNA and C# and am gonna start getting into that, so a fully commented example would be a perfect.  :D
Title: Re: Sprite Sheet Animator
Post by: G_G on December 27, 2010, 12:33:14 pm
One thing real fast. Not sure if anyones realized it but ProtoLib.dll has been in quite a few of my recent programs and games. Its my library I've coded and still coding to make some of the things I need to do way easier. So if you end up using ProtoLib give credit to me. I will be releasing the library once I think its ready. Some of the methods in there are pretty useful. I have a string to array method, very helpful for converting text data. I have quite a few image methods. And I have binary serialize and deserialize methods for on the fly.

http://www.sendspace.com/file/oj4ems (source)

Oh and my coding probably isn't the most efficient so...
Title: Re: Sprite Sheet Animator
Post by: ForeverZer0 on December 27, 2010, 02:23:56 pm
Thanks.
* hugs *
Title: Re: Sprite Sheet Animator
Post by: megaman30796 on January 12, 2011, 07:31:12 am
nice 1. thanks! :D
Title: Re: Sprite Sheet Animator
Post by: The Niche on April 08, 2011, 05:36:56 pm
Just thought I'd bump the shit out of this. :ninja:

Seriousl, G_G, you're aware of the fact that it marks any black pixels as transparent, right? It's been mentioned a few times in various places, so I just thought I'd make sure you know.

Translation: Please fix this, I wanna use it!
Title: Re: Sprite Sheet Animator
Post by: G_G on April 08, 2011, 05:41:03 pm
Try setting the background of the image a pinkish color. Its really not under my control as the person who created the Gif creation library has the control and responsibility of fixing the issue.
Title: Re: Sprite Sheet Animator
Post by: G_G on October 14, 2012, 02:22:12 am
Sorry to major necro, but for those who are interested, I've decided to try and fix the transparency issues with the program. How so? Well, after much needed research, I learned the proper structure of GIF files. Now knowing the structure is half the battle. With the gathered information, I'm going to attempt to create my own GIF reader and writer. If all goes well, I should be able to fix this the image issues I've been having. I'll be sure to post updates and let you know if I fail or succeed.
Title: Re: Sprite Sheet Animator
Post by: winkio on October 14, 2012, 02:28:25 am
Nice, I'll be looking forward to those updates :)
Title: Re: Sprite Sheet Animator
Post by: Calintz on October 14, 2012, 02:29:10 am
didn't even know this was around, but this will be useful. LevelUp++
Title: Re: Sprite Sheet Animator
Post by: Aqua on December 26, 2012, 07:01:52 am
You have columns and rows mixed up... :P

Also, could you add an option to adjust the frame rate (or upload the source again)?

<3
Title: Re: Sprite Sheet Animator
Post by: G_G on December 28, 2012, 02:19:20 pm
Hey Aqua. I lost the source code to this awhile ago. You have two options. A) Wait for me to finish my GIF Decoder/Encoder. Which is almost done, just haven't worked on it for a long time or B) Use a .NET reflection program to decompile the source code. I don't believe this program is obfuscated so viewing the source should be pretty easy.
Title: Re: Sprite Sheet Animator
Post by: Aqua on January 01, 2013, 12:16:16 pm
I figured it out.

I used ImageMagick to do some weird stuff and created a batch script that lets me drag & drop spritesheets to turn them into gifs :D
Title: Re: Sprite Sheet Animator
Post by: G_G on January 01, 2013, 12:27:57 pm
Awesome job Aqua! :3 Haha, I wish you'd pop up onto the forums more often. I miss talking to you. D:
Title: Re: Sprite Sheet Animator
Post by: G_G on July 04, 2013, 08:17:42 pm
Hey guys! Guess what? I finally freaking figured out LZW Encoding. Here's a test result of a GIF I made. :3

Spoiler: ShowHide
(http://i.imgur.com/O6mpWeg.gif)


Notice how there aren't two random color pixels at the end of the image anymore? :)

EDIT: Woo hoo! I got transparency working good too. :3 I haven't gotten it to work completely, you have to have a colored background on the images that you'd like to be transparent. (And if you're on a light theme, yes the first gif in this post does not have a transparent background)

Spoiler: ShowHide
(http://i.imgur.com/E7mQfA4.gif)