Zander Pedalo Posted February 6 Share Posted February 6 i have a texture changer script and would like to know if there is a way to have textures go in order and restart on the first texture on rez so if i have say 10 textures and i scroll thru 5 then i pick up/detach and start over it starts on the first texture Link to comment Share on other sites More sharing options...
Qie Niangao Posted February 7 Share Posted February 7 It's certainly possible for such a script to exist. This seems a pretty specialized requirement, though, so it's pretty unlikely you'd find a suitable script already written, but it's also not a particularly difficult script to write. Some specs to work out, off the top of my head: Does it only restart when the item is attached (meaning it needs to handle the attach() event) or also when the user logs in with the item already attached (need the on_rez() event)? or also after teleporting (CHANGED_TELEPORT)? What happens after it's gone through all the textures? Does it stay with the last one, or cycle back to the first? How long between texture changes? How should the order be specified, or is it random? Are these textures going to be "regular" (Blinn-Phong) textures (for which llSetTexture() might suffice), or the new PBR (glTF) Materials? or both? (various options to llSetLinkPrimitiveParamsFast()) Are the texture/material assets going to be in the object's inventory, or referenced by UUID in the script? Which of these decisions can be hard-coded in the script, and which need to be options set by the user somehow? If you're writing your first texture change script, it's pretty important to have a "pre-load" surface where the next-to-appear texture can be painted at full transparency so it will already be in viewer memory when it's shown on the target surface. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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