Garment support from scratch
Adding garment support to a mesh that doesn't have it
Summary
Created on: 29. 12. 2023 by manavortex
This guide uses the following versions:
Difficulty
You should know what garment support does, because it won't be explained here.
This guide assumes that you know your way around in Wolvenkit. If you don't and you want to mess with this, kudos — I salute your frustration tolerance. In this case, the wiki's search function will be your new best friend.
Prerequisites
Step 0: export and join the base
As a preparation for our garment support, we need a base that we'll shrinkwrap to. For this guide, we'll be using the full player body in a single mesh.
You need the following files:
Female body gender
Male body gender
Import all those meshes to Blender, then join them all into a single mesh:
in the viewport, click anywhere to deselect everything
press
A
to select everything visible againShift-click on something (e.g. the head) to deselect it
shift-click again to re-select it (you need a most recent selection)
press
Ctrl+J
to join all those meshes together
Optional: Clean up
In the outliner on the right, delete all empty collections
Double-click on your mesh and rename it to something, e.g.
body
You should be looking at something like this:
![](https://wiki.redmodding.org/~gitbook/image?url=https%3A%2F%2F1427525421-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F4gzcGtLrr90pVjAWVdTc%252Fuploads%252Fv2LWJK27Muy9VJMAJxcN%252Fcustom_garment_support_step1.png%3Falt%3Dmedia%26token%3D7ae70f9d-e364-495e-af53-218fcec03821&width=768&dpr=4&quality=100&sign=1f6ff604&sv=1)
This is the base that your items will shrink to, thus not-clipping. Neat, isn't it?
Step 0.5 (optional): activate garment support
You only need this if you're layering garment support — for example, shrinking a custom-made decal under a jacket. Don't do this with the base body, it will shrink on its own to stay underneath the clothes!
If you're using a custom mesh as the base, you need two prerequisites:
Join everything, so that you have only one mesh. This mesh must cover everything that yours can potentially shrink to - if you fit the Netrunnner suit without the head mesh as part of the body, the collar will clip into the neck when you're wearing a coat
You need to activate garment support on the mesh. You do this by switching to the Data tab and setting its
Value
to 1:
Step 1: Add garment support
Import a mesh that needs garment support. In Object mode, select it by clicking on it so that it has a yellow outline like the body in the picture above, and switch to the Data
tab on the right:
![](https://wiki.redmodding.org/~gitbook/image?url=https%3A%2F%2F1427525421-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F4gzcGtLrr90pVjAWVdTc%252Fuploads%252FukH2kV0YCcQXz9it6JhR%252Fcustom_garment_support_step2.png%3Falt%3Dmedia%26token%3D9086cc7c-565b-4af9-b220-f14c8be75e62&width=768&dpr=4&quality=100&sign=44c0d56a&sv=1)
The Shape Keys
dropdown should be empty. (Otherwise, hit the -
button until it is).
Click on the
+
button to create a shape key with the nameBasis
. This is the garment's original shape and will tell Cyberpunk how it looks when it's not squished.Repeat this process for every submesh (
submesh_01_LOD_1
andsubmesh_02_LOD_1
on the screenshot above)Switch to the
Modifiers
tab (the blue wrench icon, it's active in the first screenshot)Add a
shrinkwrap
modifierTarget it to the mesh from the previous step (e.g.
body
):
![](https://wiki.redmodding.org/~gitbook/image?url=https%3A%2F%2F1427525421-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F4gzcGtLrr90pVjAWVdTc%252Fuploads%252FXCuCBsFASCXhe9Olargi%252Fcustom_garment_support_shrinkwrap.png%3Falt%3Dmedia%26token%3Dd2c911d9-8b34-414c-892a-f8ce5b35e439&width=768&dpr=4&quality=100&sign=a7cc19de&sv=1)
optional: Add a small
offset
(e.g.0.001
) to make it not-clip. If the mesh you're shrinking to has garment support and you haven't enabled it, this isn't necessary.You will now see that the garment has shrunk down to the body's dimensions — this is how the game avoids clipping.
Apply the modifier as shapekey:
![](https://wiki.redmodding.org/~gitbook/image?url=https%3A%2F%2F1427525421-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F4gzcGtLrr90pVjAWVdTc%252Fuploads%252FC6D1H8aBvNQ4ZHA7UeEB%252Fapply_as_shapekey.png%3Falt%3Dmedia%26token%3Da2e045bc-b5bf-4258-a6ad-b362bb7ed9ee&width=768&dpr=4&quality=100&sign=c23dbea4&sv=1)
You will now see that the garment un-shrinks itself: that is because the shapekey isn't active.
Switch to the
Data
tab again (the green triangle). There is a new shapekey now; it's calledShrinkwrap
.If you want to see it in action, set its
Value
to 1.Rename it to
GarmentSupport
(capital G and S, no spaces — double-click on the name):
![](https://wiki.redmodding.org/~gitbook/image?url=https%3A%2F%2F1427525421-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F4gzcGtLrr90pVjAWVdTc%252Fuploads%252FYl6BSpKYgBNkq6JNEr08%252Fcustom_garment_support_rename_shapekey.png%3Falt%3Dmedia%26token%3D65568577-e007-48d7-9278-3f428eed80e6&width=768&dpr=4&quality=100&sign=6c89e327&sv=1)
That's it, your mesh has now garment support. Rinse and repeat the process with the other submeshes, then export everything back.
Troubleshooting
My garment support isn't working!
You still need to use component name prefixes for garmentSupport to become active. If that wasn't it, check your shapekey names for typos or trailing spaces.
My garment support is clipping into the body!
Try re-doing the shrinkwrap, but with a higher offset instead. Try something like 0.002 or so, whatever works for you.
Last updated