Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

DJ Speakers

Dioxide DeSantis
Registered User
Join date: 2 Feb 2007
Posts: 63
05-04-2007 17:28
I have created a simple speaker but would like to animate it like many i have seen in SL they look like the speakers thump and move to the music.

Does anyone have any idea how they do the animation?

Any help would greatly be appreciated.
DoteDote Edison
Thinks Too Much
Join date: 6 Jun 2004
Posts: 790
05-04-2007 17:44
It uses cel animation. The texture has two (or more) frames. One frame is the texture in the un-thumped stage, the other frame is the speaker in the thumped stage.

llSetTextureAnim() will animate the cels like a cartoon. That's all there is to it. You can even delete the script once it's going.
Dioxide DeSantis
Registered User
Join date: 2 Feb 2007
Posts: 63
05-04-2007 22:27
From: DoteDote Edison
It uses cel animation. The texture has two (or more) frames. One frame is the texture in the un-thumped stage, the other frame is the speaker in the thumped stage.

llSetTextureAnim() will animate the cels like a cartoon. That's all there is to it. You can even delete the script once it's going.


So its like an animated gif? How would I make a separate frame?
Deanna Trollop
BZ Enterprises
Join date: 30 Jan 2006
Posts: 671
05-04-2007 22:50
The frames are just tiled across the image.
Sterling Whitcroft
Registered User
Join date: 2 Jul 2006
Posts: 678
05-05-2007 05:24
Doesn't have to BE a GIF, but it can be. There's even a tool to change an animated GIF into an SL texture! See:
http://slboutique.com/anim/

But basically, SL wants a grid of 'frames' on a single texture, like a storyboard or comic strip. You can find details on this by searching here in the forums.
Then a simple script in the 'speaker' would play the Animation, by stepping through the frames. Look up this in the wiki:
http://lslwiki.net/lslwiki/wakka.php?wakka=llSetTextureAnim

You can find script examples here in the forums if you need 'em.
Dioxide DeSantis
Registered User
Join date: 2 Feb 2007
Posts: 63
05-10-2007 17:15
I used the link you provided and it worked great. I opened the image in photoshop and was able to see the frames in the image.

Thanks everyone for all your help!