Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Texture Animation: 2 faces on 1 prim.

Sean Martin
Yesnomaybe.
Join date: 13 Sep 2005
Posts: 584
12-29-2005 21:47
I need 2 faces animated on a single prim. I figured out just typing a number, where ALL_SIDES is usualy set, will animate a selected side.
I've been looking on the Wiki to no avail. :o

The two faces would also need to be scrolling in the same direction.
Each one needs to be on opposite ends of a cube while leaving the rest with no animation.
If anyone could help that would be great! :D

CODE
llSetTextureAnim(ANIM_ON | SMOOTH | LOOP, ALL_SIDES,1,1,1.0, 1,0.25);


I also tried this code, posted below, to only find the last line working while the first line is apparently ignored?

CODE

llSetTextureAnim(ANIM_ON | SMOOTH | LOOP, 1,1,1,1.0, 1,0.25);
llSetTextureAnim(ANIM_ON | SMOOTH | LOOP, 2,1,1,1.0, 1,0.25);

In this one I replaced the ALL_SIDES with values 1 for line one. And 2 for the second line. (Thinking I would get both side 1 and 2 to work.)
But it doesn't :(
_____________________
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
12-30-2005 01:20
That code ought to work, and I have a waterfall made of hollowed cylinders with different anims running on the inside and outside where it does work using just that approach.

There are times when it appears to "freeze" but then it usually freezes both of them.
Candide LeMay
Registered User
Join date: 30 Dec 2004
Posts: 538
12-30-2005 03:16
From: Eloise Pasteur
That code ought to work, and I have a waterfall made of hollowed cylinders with different anims running on the inside and outside where it does work using just that approach.

There are times when it appears to "freeze" but then it usually freezes both of them.

Huh? The docs (wiki&linden reference) and my own experience says that you can only have one texture animation on an object (be it on all sides or on one).
Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
12-30-2005 18:58
you can only have 1 animation setting per prim, soone said it couldnt be different textures per side
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
12-30-2005 19:42
you can only animate all faces or a single face.
The texture on the faces do not matter.
On the faces you don't want to appear to be animated, put a solid color texture.
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey
Sean Martin
Yesnomaybe.
Join date: 13 Sep 2005
Posts: 584
12-30-2005 20:42
Wow I knew LSL was limited but I didn't think it was this bad. I thought having that option would be a given. :rolleyes:
So I have to use 2 prims which cound toward the limit.
This means when we all try to make mutli-uses out of one prim, to cut back on lag and prim count, then we get a slap in the face and sold short for our efforts at this end too. :confused:

What was LSL origonally made for? I'm just curious why it has gaps like that. If it wasn't ment for doing this kind of thing in the first place then I could understand.
Oh well.
Either way thanks for the help guys. :)
_____________________
Carson Hadlee
They're coming to take me
Join date: 18 Jun 2004
Posts: 60
Use Alpha Textures
12-31-2005 02:13
From: someone
I need 2 faces animated on a single prim. I figured out just typing a number, where ALL_SIDES is usualy set, will animate a selected side.


Sean you might also try just setting alpha textures on those sides you dont want seen or animatedly so.

Set the textures you want to animate on the proper faces...then set Alpha (transparent) textures on all the other faces...then drop your one script in them.

Although the script will animate ALL SIDES, you simply won't see the Alpha sides..and you achieve the same effect...

Hope that helps. :)
_____________________
"Obey Gravity - It's the LAW!"

"There's no place like 127.0.0.1"



Custom Signs - Security Systems - Model Trains
Soul Soothers - Light Moves System
Ticket Please Access Systems
Eggy Lippmann
Wiktator
Join date: 1 May 2003
Posts: 7,939
12-31-2005 09:30
From: Sean Martin
Wow I knew LSL was limited but I didn't think it was this bad. I thought having that option would be a given. :rolleyes:
So I have to use 2 prims which cound toward the limit.
This means when we all try to make mutli-uses out of one prim, to cut back on lag and prim count, then we get a slap in the face and sold short for our efforts at this end too. :confused:

What was LSL origonally made for? I'm just curious why it has gaps like that. If it wasn't ment for doing this kind of thing in the first place then I could understand.
Oh well.
Either way thanks for the help guys. :)

LSL isn't THAT limited... this function is :)
I believe LSL was originally intended to allow us to add simple behaviors to objects in a way that was easy to modularize and compose such behaviors on a script level, so that each script only had to do a single function, and you could let end users create the composite behaviors simply by dragging and dropping scripts onto objects, without knowing anything about programming.
Scripting was already fairly advanced by the time Beta started, though. Most of the core stuff was already present on version 0.1 as far as I know. I have no idea how powerful scripting was in Alpha but it was a different language (which is why it's now called LSL2).
Ben Bacon
Registered User
Join date: 14 Jul 2005
Posts: 809
01-03-2006 00:00
From: Sean Martin
Wow I knew LSL was limited but I didn't think it was this bad...
It's not.
SL prims are this limited. Any individual prim is only capable of one animation. That is a limition of the renderer, not the language.

I realise you may regard this as splitting hairs, but I really like the language and tend to jump to its defence when it gets slapped in the face or sold short :)
DianaJones Dawn
Registered User
Join date: 19 Dec 2003
Posts: 20
A final workaround
01-03-2006 05:03
Depending upon the textures involved you could use the suggestion above to alpha out the unused sides either via script of full alpha texture. Make your prim very thin through some torture, or via normal means if a slight displacement will not hurt the effect, and if the two textures can put up with a light amount of alpha to make the sides just slightly transparent, then you will get a close approximation to what you are looking for.

Animate each side with its own script call and you are set. Worksbest with prims that have flat faces or that can be encouraged to have two flat faces nearly behind each other. Many a beautiful fountain uses this phenomenon.

If you need some help, drop me a line when I am around.
_____________________
DianaJones Dawn from the House of the Twisted Prim
My page of designs available at SLBoutique