Water texture for example....

These forums are CLOSED. Please visit the new forums HERE
Another noob question...animated? |
|
|
Myranua Eichel
Registered User
Join date: 10 Dec 2007
Posts: 37
|
01-01-2008 15:02
In Active Worlds they use jpeg filmstrips to create an animated texture. Is it as simple here?
Water texture for example.... ![]() |
|
Ceera Murakami
Texture Artist / Builder
Join date: 9 Sep 2005
Posts: 7,750
|
01-01-2008 15:26
Pretty close. In Sl, the "frames" in an animation are arranged in a single texture, either as a strip or as a multiple row array. A script then animates changes between these frames, by using offsets and repeat values. Scripts can also simply animate a single texture to crawl across a surface, wrapping back to the other side, for something simple like moving water.
Look on the following WIKI page for more info: http://wiki.secondlife.com/wiki/LlSetTextureAnim Textures for an animation need to be sized in powers of two (16, 32, 64, 128, 256,512, 1024), with a maximum of 1024 in any direction. So you could do a 4-frame animation of a 512 x 512 texture area in one 1024 x 1024 animation texture, or a 16 frame animation of a 256 x 256 texture area, etc... _____________________
Sorry, LL won't let me tell you where I sell my textures and where I offer my services as a sim builder. Ask me in-world.
|
|
Myranua Eichel
Registered User
Join date: 10 Dec 2007
Posts: 37
|
01-01-2008 15:40
OK Ill check out the wiki thank you!
If it involves scripts I will prolly start with something simple, 2 frames, which is what Im dying to upload and use anyway. LOL |
|
Ceera Murakami
Texture Artist / Builder
Join date: 9 Sep 2005
Posts: 7,750
|
01-01-2008 15:47
Glad to help. Also. look in your inventory, in the "Library" folder, aand you'll find some animation scripts there already. Animsmooth is I believe the name of one of them, and it wraps a single texture across a prim face so it flows across the face like water. It's in the examples for making waterfalls and fountains.
_____________________
Sorry, LL won't let me tell you where I sell my textures and where I offer my services as a sim builder. Ask me in-world.
|
|
Myranua Eichel
Registered User
Join date: 10 Dec 2007
Posts: 37
|
01-01-2008 15:49
That was a little confusing--what do I do with this command line of info? Create a new script? Will just a copy and paste of the examples work?
EDIT...sorry posted before I read what you said. I will go check that out too! |
|
Myranua Eichel
Registered User
Join date: 10 Dec 2007
Posts: 37
|
01-01-2008 16:03
Well that would be great for water, but how do I make a 2 frame jpeg switch back and forth so fast it looks animated. Wow this stuff is complicated-LOL And I was JUST getting the hang of particles emitters in AW.
![]() |
|
Hunter Stern
Web Weaver
Join date: 7 Oct 2004
Posts: 377
|
01-01-2008 16:07
in the animation script use PING_PONG instead of LOOP
_____________________
|
|
Myranua Eichel
Registered User
Join date: 10 Dec 2007
Posts: 37
|
01-01-2008 16:34
didnt work-its not doing anything....*sighs*
If this works I have recorded a sample of my logs in AW and how the texture looks there. |
|
Hunter Stern
Web Weaver
Join date: 7 Oct 2004
Posts: 377
|
01-01-2008 17:18
better example would be
default { state_entry() { llSetTextureAnim(ANIM_ON|LOOP | PING_PONG,ALL_SIDES, 0,2,2,0, ;//the last variable of 8 is how fast you want it to go, this can be changed to 1 as in ever 1 seconds etc. } } _____________________
|
|
Sylvia Trilling
Flying Tribe
Join date: 2 Oct 2006
Posts: 1,117
|
01-01-2008 18:09
Here is a good tutorial on animating textures.
http://www.kan-ed.org/second-life/using-LSL.html#texture |
|
Hunter Stern
Web Weaver
Join date: 7 Oct 2004
Posts: 377
|
01-01-2008 18:32
ty Sylvia. For the life of me I know I had Flipper Peregrine's Tutorial bookmarked twice, and it still seems to vanish on it's own over time from my list, so this will help to have a new guide reference.
_____________________
|
|
Myranua Eichel
Registered User
Join date: 10 Dec 2007
Posts: 37
|
01-02-2008 07:49
That worked like a dream!! Thank you SO much!
Now could I essentially use this same script or similar so that I could always use filmstrips? Does PING_PONG only work cause its a 2 frame jpeg? |
|
Ceera Murakami
Texture Artist / Builder
Join date: 9 Sep 2005
Posts: 7,750
|
01-02-2008 07:57
That worked like a dream!! Thank you SO much! Now could I essentially use this same script or similar so that I could always use filmstrips? Does PING_PONG only work cause its a 2 frame jpeg? _____________________
Sorry, LL won't let me tell you where I sell my textures and where I offer my services as a sim builder. Ask me in-world.
|