Naiman Broome Posted April 21, 2021 Share Posted April 21, 2021 Hello Could someone tell me how could I make a script to just change shape of a mesh ? I do not mean an animation , just change on touch a mesh type with another, basically replacing it with all connected links ? like for example click on an item and shapechange it to another item ? Link to comment Share on other sites More sharing options...
Evah Baxton Posted April 21, 2021 Share Posted April 21, 2021 You could combine both meshes and make sure they use different materials. After that, you can use llSetAlpha(); to toggle between them. You are limited to 8 materials, so there can only be 8 mesh states using this method. Link to comment Share on other sites More sharing options...
Naiman Broome Posted April 21, 2021 Author Share Posted April 21, 2021 That would increase prim count , I would like to avoid that . Link to comment Share on other sites More sharing options...
KT Kingsley Posted April 21, 2021 Share Posted April 21, 2021 You can't change the shape of a mesh object using a script unless you animate it. And animesh has an LI penalty all of it's own. Link to comment Share on other sites More sharing options...
Naiman Broome Posted April 21, 2021 Author Share Posted April 21, 2021 replace an object with another? Link to comment Share on other sites More sharing options...
Evah Baxton Posted April 21, 2021 Share Posted April 21, 2021 Maybe llRezObject and llDie is what you are looking for? I've never used them so I don't know the limitations. http://wiki.secondlife.com/wiki/LlRezObject http://wiki.secondlife.com/wiki/LlDie Link to comment Share on other sites More sharing options...
Naiman Broome Posted April 21, 2021 Author Share Posted April 21, 2021 Problem is the player will be sitting on the object and I want it to shapechange while he is sit or keep it sitting there Link to comment Share on other sites More sharing options...
Evah Baxton Posted April 21, 2021 Share Posted April 21, 2021 You might be able to create a single prim with all your sit positions set up. That prim could then llRezObject and llDie when someone sits or stands. I assume this would require build permission on the land. ...or ... The last thing I can think of would be to rig your item for animesh. If it's just one state to another then your BVH would simply be 30 seconds or so of the state you want. No movement. Like @KT Kingsley said, it will increase prim count simply by enabling animesh. Theorizing here ... sorry I don't have time to test these today. Link to comment Share on other sites More sharing options...
Quistess Alpha Posted April 21, 2021 Share Posted April 21, 2021 You can texture-swap Sculpties, but you can't object-swap mesh. Sculpties are a bit limited, but you can create an decent chair with them (I picked up a "1-prim Victorian chair" in Caledon I think; Quite useful when I just need something to sit on or a chair to test scripts with) Finding good sculpties is a bit hard though, and I'm not sure if the tools to make them are still around&working. Link to comment Share on other sites More sharing options...
Lucia Nightfire Posted April 22, 2021 Share Posted April 22, 2021 UUID flipping mesh is no longer possible. It was possible during the beta period and allegedly the first week it was released on agni, but it was stopped as it easily facilitated IP theft. There have been requests to bring it back in a controlled environment but developers do not like the potential impact it could have on the asset servers, the CDN service and the physics engine. 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