GIF to SL-Animation-Ready Image - SLUniverse Forums
 
Navigation » SLUniverse Forums > Community Discussion > General SL Discussion » GIF to SL-Animation-Ready Image


General SL Discussion Discuss topics related to Second Life

Reply
 
LinkBack (1) Thread Tools Display Modes
Old 06-01-2008, 12:26 AM   1 links from elsewhere to this Post. Click to view. #1 (permalink)
InfoAddict
 
Gonta Maltz's Avatar
:V
 
Join Date: Nov 2007
Location: Michigan, USA
Posts: 114
My Mood:
SLShopper Ads: 8
SL Join Date: 9/28/2005
GIF to SL-Animation-Ready Image

Ever seen animated textures in SL? Those are done with a texture tiled with the various animation "frames" and a script that sets the texture offsets quickly. One of these images looks something like this:



The idea of making one of these textures by hand was horrific, so I made a little tool to generate them. Woot, woot!

GIF 2 SL Animated Texture

The LSL script for playing the animations is on the page too. The program names the created image so that it can just be uploaded and thrown into a prim with the script.

Note: Unfortunately it only works on Windows machines for now, and you need the .NET 2.0 Framework. This software is distributed with no guarantees, it doesn't work for all GIF images and sometimes crashes with a cascade of application exceptions!

However, it works most of the time
Enjoy!
Gonta Maltz is offline   Reply With Quote
4 Users Said Thanks :
Old 06-01-2008, 12:28 AM   #2 (permalink)
Account Closed
 
Joshua Nightshade's Avatar
Unedited
 
Join Date: Jun 2007
Posts: 33,567
My Mood:
WOOT!

Have you seen the tool Flip made for this though? Do you know if yours works any better?
Joshua Nightshade is offline   Reply With Quote
Old 06-01-2008, 12:31 AM   #3 (permalink)
InfoAddict
 
Gonta Maltz's Avatar
:V
 
Join Date: Nov 2007
Location: Michigan, USA
Posts: 114
My Mood:
SLShopper Ads: 8
SL Join Date: 9/28/2005
Quote:
Originally Posted by Joshua Nightshade View Post
WOOT!

Have you seen the tool Flip made for this though? Do you know if yours works any better?
I didn't know there was one already out there. It might not crash as much as mine. Link?
Gonta Maltz is offline   Reply With Quote
1 User Agreed:
Old 06-03-2008, 04:21 AM   #4 (permalink)
Snoring Tiger Clan
 
Saucey Barbecue's Avatar
I nommed yer girlfriend
 
Join Date: Nov 2007
Location: I'm over there ======>
Posts: 158
My Mood:
SL Join Date: May 7, 2006
Quote:
Originally Posted by Gonta Maltz View Post
I didn't know there was one already out there. It might not crash as much as mine. Link?
http://www.peregrinesalon.com/anim/
Saucey Barbecue is offline   Reply With Quote
1 User Said Thanks:
Old 06-03-2008, 05:25 AM   #5 (permalink)
vs. Godzilla
 
Verkin Raven's Avatar
:D
 
Join Date: Sep 2007
Location: Vermont
Posts: 1,068
My Mood:
SLShopper Ads: 3
SL Join Date: 1/4/05
Blog Entries: 2
Ralph Bakshi's rendition of LOTR = o.O
Verkin Raven is offline   Reply With Quote
1 User Laughed:
Old 06-03-2008, 08:36 AM   #6 (permalink)
1+1=10
 
CrystalShard's Avatar
 
Join Date: Apr 2008
Location: Israel
Posts: 54
SL Join Date: 2/6/2004
Business: Script-Foo!
Looks great, wonder if I can get this compiled on Mono to get it to work on MacOS X.
CrystalShard is offline   Reply With Quote
Old 06-03-2008, 08:51 AM   #7 (permalink)
Evil Incarnate!
 
FlipperPA Peregrine's Avatar
Recursion is beautiful!
 
Join Date: Jun 2007
Location: Philadelphia, PA
Posts: 6,378
My Mood:
SLShopper Ads: 1
SL Join Date: 2003-11-14
Business: Peregrine Salon
Send a message via Yahoo to FlipperPA Peregrine
Very cool! The one I did had several known issues, and I never really had the time to solve them:

(1) ImageMagick doesn't carry transparency from GIF through to targa - there is no exception handler for going from the sort of "fake" transparent pixel hack used by GIF 89a through to a true alpha layer in targa. So GIF transparent pixels are forced to white (yuck) instead of 100% alpha.

(2) GIFs with a frame count (say, 47) that won't tile nicely into an X by Y grid fail, miserably. You can't really have a 47 x 1 layout with only 1024 pixels. Does yours do any duplicating or dropping of frames to make reasonable X by Y layouts? That was something I wanted to get to, eventually, but never did.

(3) Does your program automatically resize to SL conforming graphic sizes - a nice little feature I added since SL's resizing is too brute-force for my liking.

Great work! I'll play around with it a bit when I get a chance. I just figured I'd do a brain dump on some of the known issues I ran into.

Regards,

-Flip
__________________
Peregrine Salon: Flip & Jenn's thang.
FlipperPA Peregrine is offline   Reply With Quote
Old 06-03-2008, 12:23 PM   #8 (permalink)
Account Closed
 
Joshua Nightshade's Avatar
Unedited
 
Join Date: Jun 2007
Posts: 33,567
My Mood:
Yah the transparency thing was why I couldn't play with your program too much.
Joshua Nightshade is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


LinkBacks (?)
LinkBack to this Thread: http://www.sluniverse.com/php/vb/general-sl-discussion/12050-gif-second-life-animation-ready.html
Posted By For Type Date
Marcus Endicott's Second Life Travel Guide - SecondLife Animation This thread Refback 06-15-2008 06:13 AM