Jump to content
You are about to reply to a thread that has been inactive for 1516 days.

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

Recommended Posts

Posted (edited)

I'm making a HUD and just stuck on small problem with texturing.

so I was trying reference to other objects and found some like tricky way for me that applying multiple texture in a prim.

 

Screenshot_1040_edited.png.c33817a2e24b59a391681568d1f34bc3.pngScreenshot_1041_edited.png.b7ba123d7a6fb0bb5a0f4655f7477888.png

it is a part prim of AO HUD and applied wrapping a texture on all faces. ( not into individual faces )

and when it's clicked the textures are just changed to each textures.

but none of textures were in the prim's inventory.

 

I used to put textures in prim's inventory and use script to apply multiple textures,

but I wonder how I can do like this.

Edited by Jaewise Hinterland
Posted

You can always apply a texture to any face on a scripted object if you know the texture's UUID.  If you hard-code the UUID into the script and set the script to no-mod, you have the added advantage that the texture (and its UUID) cannot be lifted from the script or the object's inventory.  Any of the LSL functions that handle textures can be used this way: 

llSetTexture

llSetLinkTexture

llSetLinkPrimitiveParams

llSetTextureAnim

llSetLinkTextureAnim

  • Like 2
  • Thanks 1
Posted

nice, I just tested and figured it out clearly now. 

I just thought that those textures should be in prim's inventory,

and didn't know about the UUID could even be worked like this way.

thank you for the guidance and tip Rolig. have a nice day :)

    

You are about to reply to a thread that has been inactive for 1516 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
×
×
  • Create New...