Torin Golding
Misanthropic Humanist
Join date: 13 Sep 2005
Posts: 41
|
12-01-2005 01:01
Hi there
I'm trying to use the llSetTextureAnim feature and running into a problem I haven't been able to figure out with the Wiki. Basically I want the texture that is animated to display at 5x5 while it is being animated. I fooled around with plugging different numbers into the x and y axis parts of the llSetTextureAnim command (the first two 1's in the example below, I think called the x and y frames), but everything just gets stretched out or blurred, and I can't achieve the 5x5 resolution I'm trying for:
llSetTextureAnim(ANIM_ON | SMOOTH | LOOP, ALL_SIDES, 1, 1, 1, 1, 0.5);
Any scripters know how I can get the texture to display at 5X5 size while animating smoothly?
Thanks in advance!
-Torin
|
Ben Bacon
Registered User
Join date: 14 Jul 2005
Posts: 809
|
12-01-2005 01:28
If you mean that you want the texure repeated across the face 5 times horizontally and 5 times vertically, I'm afraid you're out of luck. Animated textures (or each tile of the tex) are always displayed at a single repeat. If you need more repeats you would need to do the tiling in your graphics app before uploading. Or have I misunderstood the question? 
|
Torin Golding
Misanthropic Humanist
Join date: 13 Sep 2005
Posts: 41
|
12-01-2005 15:06
Yep that's what I wanted Ben. Poo. Oh well, i guess I'll play around with photoshop and see if i can create a 5X5 version of the texture i have. Thanks! 
|
Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
|
12-01-2005 19:16
for the record if you set smooth animations to 0,0 for the frame info it allows (or untill recently) you to manually set the repeats, altho as soon as you leave the region it will correct its self ... ive not tried but im shure theres a way to script it to reset. I like to bring att to this, becuase its darn nifty, it works (altho for a limited time), and hopefully it will be establised as a feature one day 
|
Torin Golding
Misanthropic Humanist
Join date: 13 Sep 2005
Posts: 41
|
12-01-2005 19:44
yeah i found i could indeed manually change the display, but it reverted back to the 1x1 display the next time i logged in. I really wish we could keep better control over the texture anim.
|
Oasis Perun
Registered User
Join date: 2 Oct 2005
Posts: 128
|
12-02-2005 10:35
would this work? on_rez() { llSetPrimitiveParams([PRIM_TEXTURE, 0, "66864f3c-e095-d9c8-058d-d6575e6ed1b8", <XRepeats ,Yrepeats, 0>, <.5,.5,0>, PI / 4]) }
Im assuming since the object is going to different sims with you that ita an attachment? you can read up more on this here http://secondlife.com/badgeo/wakka.php?wakka=llSetPrimitiveParams
|