SL anim creator v0.2.1
Animated GIF89a to SL texture


Creating a Second Life animated texture is now SIMPLE!

Step 1. Select an animated GIF file from your hard drive using the "Browse" button below.
Step 2. Enter how many frames per second you would like the animation to play at in SL.
Step 3. Press "Process".

GIF Source File:


Frames Per Second:




History:
0.2.1: Added user definable frames-per-second to automatically output LSL code with the user select frames per second. Default of 8 fps selected.
0.2.0: Fixed bug outputing a non-perfect final sized picture. It would be mistuned for Second Life depending ont he total number of frames.
0.1.0: Initial release.

Known issues:

- number of frames in original GIF file. The way SL animated textures work is by laying them out in a "grid" and then showing different parts of the texture. To make a two-dimensional grid on a graphic, you need to consider the number of frames. For example, a 47 frame GIF original file would have to be gridded at 47 x 1 - which, with a maximum width of 1024, would look horrible. However, if you duplicate one of those frames, you'd have 48 frames, which is a much more reasonable 8 x 6 grid (the script picks the most efficient lay out given the number of frames in the original graphic). With some tweaking in ImageReady from Adobe, or your choice of graphic editor, you can get pretty good results with minimal effort.

- the other big issue is transparency. GIF files only have an 8-bit color pallette, and when I convert to the Targa format, any transparency layers are lost and replaced with white. I've tried all kinds of "preserve transparent" options, however, it appears that ImageMagick sees 8-bit transparency as different from 32-bit transparency. I've filed bug reports on this.

- (rare) some GIF files look at the first frame, and then only save the pixels that change from frame to frame, instead of saving each frames entire pixel set. ImageMagick has problems with these.

I hope this helps clarify, and gives you some ideas on making it look better!