Jump to content

Texture animating vs Texture scaling


Kayaker Magic
 Share

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

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

Recommended Posts

I have a prim that changes size, but I want the texture to stay constant and not scale with the prim. No problem, I can calculate new repeat values every time I change the prim size and call llSetPrimitiveParams(PRIM_TEXTURE to make the texture map the way I want.

Problem is, I also want the texture to slowly slide across the prim. (It is supposed to look like flowing water). After I call llSetTextureAnim(ANIM_ON|LOOP|SMOOTH, it resets the texture repeat to 1,1 every frame! For a minute I thought changing the sizex and sizey parameters in this function would do the same thing as the repeat values, but these parameters are integers and I need fractional values. Am I SOL? Is there away to animate a texture (sliding, not frame based) and set the texture repeat at the same time?

 



Link to comment
Share on other sites

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...