M
Muffy
Well-known Member
This is done using alpha masking and materialeditor. If you use a shader like "MainItemOpaque" or "MainItemAlphaPlus", you will have the option of importing an alpha mask. This is basically like a mask you would use in photoshop, in which anything colored white would be visible, while anything colored black would be hidden. I can't remember if KK treats it the other way around or not, a lot of masks seem to be counterintuitive with the colors you would use for hiding/showing so I'm inclined to think whatever you color as black will be visible, while whatever is white is hidden.
You can easily create your own alpha mask for pretty much any clothing item in the game. What I generally do is export the UV and maintex and overlay the two of them together in Photoshop, and set the UV on top so I can see how the maintex lines up. Then I make a new layer which will be my alphamask, and simply paintbrush what I want hidden and what I want visible with the requisite black/white colors. This can take a lot of trial and error as you have to think in terms of an unwrapped UV: how the game will apply the maintex and therefore how it will apply the alpha mask. I imagine this would be easier to do if you just imported the clothing object into blender and did painting there right on a wrapped UV, but whatever.
Further tweaks can be done in KK once you import the alpha mask, such as cutoff, which determines "how much" of the mask is applied. You can get interesting results with this. If you wanted a wet shirt or somewhat of a see-through effect, but ONLY on the chest, you would do this with an alpha mask with not full black/white for the particular part you want to hide, maybe put some feathering on it so it has a gradation effect, and further tweak it with various cutoff sliders in KK to achieve a softer effect.
This is how people get nipples to show through shirts, if you were wondering. You can take it a step further and dick around with render queues and additional alpha masks for an hour if you want to get the bra to be visible through the shirt too, like so:
There are also specific alpha masks you can use as skin overlays, which are known as bodymask overlays. If you've ever removed the clothes from a character and wondered why their entire torso is invisible, it's because they have a bodymask in their overlays and you have to go remove it for that particular outfit selection. Bodymasks are used to reduce or completely eliminate clipping. You can mask out entire parts of the body so they don't show through clothing at all, as the game will simply pretend those sections colored in the mask are not there.
Last edited: