Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Prim or Texture Rotation

Lunar Tripsa
Registered User
Join date: 2 Feb 2007
Posts: 38
06-28-2007 17:08
Hi, I'm not a scripter, but I love using simple ones and I am hoping this might be a simple question.

I want to animate a single prim, a cylinder or a tube. It needs to rotate slowly in place. The texture, whichis an alpha texture needs to be visible on only one surface of the prim, not the "top and bottom" of the cylinder or the inside of the tube. It also needs to be seen trough the prim in reverse as it cycles around.

I'm not sure if that should be a texture or prim animation. But if anyone has an open source script that would work please let me know. Or alternatibely if you'd like to sell me one please contact me in world.

Thanks!
DoteDote Edison
Thinks Too Much
Join date: 6 Jun 2004
Posts: 790
06-28-2007 18:37
There is no backside to the face of a prim, so the only way you can do what you want is to simulate the effect. You'll need to hollow the cylinder and use the inside face as the backside texture (just put the same texture on the inside face and flip it horizontally so it matches.) It probably won't be perfect, but nobody can see both sides at once anyway (until we get true mirrors in SL).

As for the script, you already have it. It's the Rotation Script found in your inventory Library/Scripts folder. Use it to rotate the entire prim.

Note: It may render funky at some angles as the 3D renderer tries to figure out which alpha texture should be in front. LL has done some good work towards fixing the alpha-sorting issue, but I'm not sure if the fix applies to moving textures. In other words, it may appear that the back-side is in front of the front-side at times.
Lunar Tripsa
Registered User
Join date: 2 Feb 2007
Posts: 38
06-28-2007 20:13
Okay I was using the wrong script from my libray. Works perfectly now. Thank you.