I have made a custom rig and I want to be able to swap clothes at run time. I am attempting to use WrapTarget and WrapLayers in order to achieve this. In this post I have used a shirt as an example.
Currently when wrapping clothes to the rig holes will appear in random faces across the mesh (Issue with Hidden Surface Removal). These holes only appear when the character mesh has a texture or an empty surface appearance and only seem to appear on the upper side of the mesh, even when trying a different piece of clothing like shoes.
Examples of holes in faces due to HSR
The rig uses a custom cage, but I have also tried using the cage provided by Roblox and had the same problem occur.
Mesh topology
Mesh outer cage / Shirt inner cage
Shirt outer cage
Cage uvs
I have tried changing all properties within the WrapLayer and WrapTarget. I have tried applying all transforms in blender. I have tried varying the sizes of each cage. I have tried editing uvs of both the base mesh and the cage.
None of these methods seem to have had any significant effect on the results other than the hidden faces being in different places across the mesh.
If I could disable HSR all together I would but it seems like that isn’t possible. If anyone has any potential solutions I would love to know about them.






