Jump to content

Animate texture on Y axis


Suki Hirano
 Share

You are about to reply to a thread that has been inactive for 3314 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

Is it even possible to animate a texture on Y axis? I've been fumbling around with this super simple function, llSetTextureAnim, for the last hour and simply can't do it. It keeps on animating on the x axis no matter what values I set for sizex and sizey variables. For example I set

llSetTextureAnim(ANIM_ON | SMOOTH | LOOP, ALL_SIDES, 1,5,0,5,-0.5);

 It still slides texture from left to right. In fact it doesn't matter what values i set for the first 4 variables, it has absolutely no effect on the animation. Only the last variable, the framerate and direction, has any effect. For example this has the exact same animation as above:

llSetTextureAnim(ANIM_ON | SMOOTH | LOOP, ALL_SIDES, 255,1,0,255,-0.5);

 

I know that I can rotate the object or the texture, but that won't work because my texture is not perfectly symmetrical on both axis. Here's a simple animation I did to illustrate the problem.

This is what the animation looks like right now: http://imgur.com/E9NjjNf

gif1.gif

This is what it looks like when I either rotate the object or rotate texture by 90 degrees: http://imgur.com/e9oBX1b

 gif2.gif

This is what I want it to look like: http://imgur.com/MJn2PG0

gif3.gif

 

A really dumb way would be to actually edit the textures themselves by rotating them 90 degrees... but that's not really a feasible solution as A) sometimes I'm not the owner of the textures and B) that would mean I have to redo every single texture whenever I want to animate it.

 

  • Like 1
Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 3314 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...