Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

llSetTextureAnim troubles

Linnian Sugar
Registered User
Join date: 30 Mar 2005
Posts: 31
08-18-2006 16:06
I'm trying to make a wheel that turns but if I set the face for ALL_SIDES the two sides spin in opposite directions.

Is there a way to make two textures animate independently? I tried

llSetTextureAnim(ANIM_ON | ROTATE | SMOOTH | LOOP,0,1,1,1.0, 3.5,1.5);
llSetTextureAnim(ANIM_ON | ROTATE | SMOOTH | LOOP,2,1,1,1.0, 3.5,-1.5);

but the anim for face 2 only works and the other wont move.
Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
08-18-2006 17:31
From: someone
Animates the texture on side of a prim. Only one animation can be run per prim, although all sides of a prim can be animated at the same time by setting side to ALL_SIDES.


which means all sides, or 1 side per any given call... adding another llSetTextureAnim function just resets the prim property (works along the same basis as sit target)

1 prim
1 animation setting =/
DoteDote Edison
Thinks Too Much
Join date: 6 Jun 2004
Posts: 790
08-18-2006 17:35
You can only use one llSetTextureAnim() per prim. So, maybe try a different prim for your wheel, such as a 'tube' or a 'torus'.

Or maybe try llTargetOmega().
Lex Neva
wears dorky glasses
Join date: 27 Nov 2004
Posts: 1,361
08-19-2006 07:21
I think with a llSetTextureAnim() in rotation mode, if you check the "flip" checkbox on one of the faces, that won't be changed/overridden by the texture anim... the result should be that both faces will spin the same direction. That's pretty much a cheap trick though... in general, it's not possible to animate two faces of a prim independently.
Linnian Sugar
Registered User
Join date: 30 Mar 2005
Posts: 31
08-19-2006 21:58
:'(
BamBam Sachertorte
floral engineer
Join date: 12 Jul 2005
Posts: 228
08-20-2006 09:06
Did you try changing the texture angle on the prim face that is rotating in the wrong direction?
Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
08-20-2006 10:57
thats how texture rotation works, so if you punch in a angle the animation property overides it in less than a second :)