🪰 Viewer Bug Reports

• Use concise, precise descriptions• Do not include sensitive information. • Create a support ticket at https://support.secondlife.com for individual account issues or sensitive information.
Scripted PBR Material swapping glitch
Working on a mesh lantern, the materials are doing a weird thing when I apply the scripting function to swap the material via UUID. Both materials have identical maps, one material has a different emissive tint (the lamp lighting in places). The function I am using in the script is llSetLinkPrimitiveParamsFast, no scripting changes were made to the material properties, just swapped out the whole material, A for B / B back to A, over the entire mesh object UV, not individual faces. The script has no errors, and though the materials are fully rendered and clear the materials are showing up with these odd edges, like the normals or smoothing groups are messed up, but they were not before scripting (see pictures). These artifacts are not everywhere on the whole object, but in random places all over it. In the FS client, If I rez the scripted object from inventory, it shows the glitched material. If I then drag and drop that same material onto the mesh from inventory, it suddenly looks fine. If I click the button to activate the script, it reverts back to the glitch and remains so no matter how many times it is turned on or off. So the script changing the material is causing the issue. I and others have checked all aspects of the scripting and the code and UUIDs are correct. Next I used the latest SL client and when I rezzed the item from inventory, the glitch was visible on the material, HOWEVER If I dropped the material from inventory onto the item, it cleared up and looked correct AND the fix was persistent before and after running the script that made the glitch revert back in FS. So initially, it showed the glitch, then if I drop the material onto it, it is fixed permanently. If I drag a "fixed" one back into inventory, rez it again to see if it remains fixed, it does so. Problem solved in SL client. When I went back in to FS, the ones I had fixed and left out while in the SL client looked correct still. When I clicked to run the script, they glitched again. If I dragged the material onto it, fixing the material, then clicked, it glitched then also. If I dropped the material onto it from inventory, fixing it, then took it back into inventory fixed, when I rezzed it, it was glitched again and operating the script would continue to be glitched. No permanent fix for the visual glitch, in or out of inventory. I repeated all these tests in the FS, FS Beta, Alchemy Beta, Black Dragon client and the results were all the same in every client except the official SL client, so I am assuming it is an issue with the script handling of PBR materials in all 3rd party clients. The SL client was able to consistently reproduce the correct rendering using the script, also upon taking the item into inventory and rezzing it again.
2
Ā·

needsĀ info

Load More
→