Rick Murray
Junior Member
Join date: 11 Sep 2003
Posts: 2
|
05-02-2004 12:29
|
Zero Grace
Homunculus
Join date: 13 Apr 2004
Posts: 237
|
05-02-2004 14:28
I have a total newb question to add to the list: Does SL support animated GIF textures? I assume so based on what I've seen inworld but couldn't find search results for "gif" in the Knowledge Base.
|
Reitsuki Kojima
Witchhunter
Join date: 27 Jan 2004
Posts: 5,328
|
05-02-2004 16:21
From: someone Originally posted by Zero Grace I have a total newb question to add to the list: Does SL support animated GIF textures? I assume so based on what I've seen inworld but couldn't find search results for "gif" in the Knowledge Base. No. Textures can be animated one of two ways. Make multiple frames and script the animation as cycling the frames. Thats one way. Much like animated gifs. Harder, but in my opinion producing better results, is to make one texture with all the frames on it, and change what is getting displayed at any one time.
|
Zero Grace
Homunculus
Join date: 13 Apr 2004
Posts: 237
|
05-02-2004 17:01
Thanks, Reitsuki- I now recall seeing old game textures (Quake maybe?) with animation frames on them. Now that I know about how animation is done from a texture angle, I need to find a script to reposition the texture to specific coordinates to simulate animation.
|
Rick Murray
Junior Member
Join date: 11 Sep 2003
Posts: 2
|
same here
05-03-2004 05:25
|
Julian Fate
80's Pop Star
Join date: 19 Oct 2003
Posts: 1,020
|
05-03-2004 12:09
The scripting side is pretty straight forward. If you have a texture that contains the frames of your animation just use llSetTextureAnim. It has parameters that let you describe the layout of frames in your texture so you can do it as a block (example: 4x4 frames) or a strip (1x16). Just be sure your texture's dimensions conform to powers of 2. It's unrelated to animation but it prevents on the fly resizing in-game and possible loss of quality.
|
Zero Grace
Homunculus
Join date: 13 Apr 2004
Posts: 237
|
05-03-2004 12:20
Thanks for the handy tip, Julian!
|