Jump to content

animate a texture face of a mesh?


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

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

Recommended Posts

_Hello I am making a tree and I wanted to animate smoothly and slowly the leaves faces, but , I tried a simple script and put inside the mesh but doesn't work , if I put the script in a prim it works , any idea what could be wrong or how to do this?

 

 

Link to post
Share on other sites

Actually looking better its animating only one face, leaving the others still ...

what is strange is that using the develop / rendering / select texture info basis shows always the same face 0 for all faces of the mesh ... perhaps there is some other kind of face evaluation for meshes?

 

I used:

 

 llSetTextureAnim(ANIM_ON | ROTATE | LOOP | PING_PONG | SMOOTH, 0, 0,0,0,PI/180,0.21);

 

 

And

 

 llSetTextureAnim(ANIM_ON | ROTATE | LOOP | PING_PONG | SMOOTH, ALL_SIDES, 0,0,0,PI/180,0.21);

Link to post
Share on other sites

The faces receiving one (animated) texture in SL are collections of polygons assigned to different materials in the 3D authoring software. If there is only one material, the default, then the mesh has only one face, face 0. To be able to apply textures and/or animations to different parts of the mesh, you have to create (a mximum of eight) different materials in you 3D authoring program, and assign the appropriate mesh polygons to them. These then appear as numbered faces in SL.

That applies to a single mesh object. If the leaves and the rest of the tree are separate (linked) objects, then of course you can texture/animate them independently, but each will be only face 0 unless it has multiple materials.

 

Link to post
Share on other sites
You are about to reply to a thread that has been inactive for 2085 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
×
×
  • Create New...