Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Moving Textures In A Prim (Wrong Direction)

Zed Kiergarten
Registered User
Join date: 19 Jan 2008
Posts: 138
04-06-2008 19:29
I'm trying to create a sphere where a texture rolls from the top down. I'm using this scripting:

default {
state_entry() {
llSetTextureAnim(ANIM_ON | SMOOTH | LOOP, ALL_SIDES, 1, 1, 0.0, 0.0, 0.1);
}
}

However, no matter what I do, the texture flows the wrong way. I can't rotate the texture as the script seems to follow it.

I looked at IISetTextureAnim and it doesn't look like I can tell it to roll in the other direction.

Is there something else I can use for this?
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
04-06-2008 20:39
Unfortunately, I believe you'll have to upload a rotated version of the texture.
Dekka Raymaker
thinking very hard
Join date: 4 Feb 2007
Posts: 3,898
04-07-2008 03:10
have you tried rotating the prim?
Zed Kiergarten
Registered User
Join date: 19 Jan 2008
Posts: 138
04-07-2008 04:58
From: Hewee Zetkin
Unfortunately, I believe you'll have to upload a rotated version of the texture.


This was tried. What I'm uploading is a simple line from left to right (with most of the texture being transparent), wanting to have it go from up to down (simulating a circle around a teleport area). When I run this it spins in line with itself from right to left. When I upload a rotated version, the bar runs from right to left. Since its a sphere, you can't really rotate it.

I could probably pull it off with a box, but that won't give me the curcular effect.
Squirrel Wood
Nuteater. Beware!
Join date: 14 Jun 2006
Posts: 471
04-07-2008 06:16
Solution:

default {
state_entry() {
llSetTextureAnim(ANIM_ON | SMOOTH | LOOP, ALL_SIDES, 1, 1, 0.0, 0.0,-0.1);
}
}

Rotate the texture on the prim and use negative values in llSetTextureAnim.

That may "fix" your problem.
Zed Kiergarten
Registered User
Join date: 19 Jan 2008
Posts: 138
04-07-2008 07:37
From: Squirrel Wood
Solution:

default {
state_entry() {
llSetTextureAnim(ANIM_ON | SMOOTH | LOOP, ALL_SIDES, 1, 1, 0.0, 0.0,-0.1);
}
}

Rotate the texture on the prim and use negative values in llSetTextureAnim.

That may "fix" your problem.


I will try this tonight. I hope that it goes top down and doens't just reverse direction (180) completely and go left to right.

I might be better off trying to do a particle ring vs. using a texture and phantom prim... hmmm...

Thanks.
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
04-07-2008 11:51
Yes, you'll have to do BOTH: use the uploaded texture that is rotated such that it animates in the correct direction, AND rotate the texture on the prim face.