FlailingFog / KK-Blender-Porter-Pack

Plugin pack for exporting Koikatsu characters to Blender.
350 stars 29 forks source link

Remove Blue Lines, Fix Tear weighting, Improve Gageye blendshapes, Fix Iris clipping on Export #320

Open BTHP5 opened 1 year ago

BTHP5 commented 1 year ago

Adding this as a feature request as well, it would be great if there was a way to completely eliminate the blue pixels found on the textures of models. I was able to remove them within blender temporarily by changing the filter (?) on the textures node from sRGB to something else and then back to sRGB, but when it came to baking and applying the baked textures, the pixels reappeared again. Here’s an image of what I mean by blue pixels. Screenshot_20221130_040601

As well as this, small and medium tears, as well as the gageyes don’t appear upon export from blender when activating the blendshapes, I'm not sure why, but I’d love to see them supported!

As well as this, the tears do not appear to be weighted properly. They tend to dip in and out of the face as the eyes move. Looking forward: image Looking downward: image

And lastly, when exporting my model from Blender to make into a VRM, the eyes would be clipping into the eye whites despite not messing with them. This may be because I’m using a different headmod, though. Here’s what I mean: Screenshot_20221130_023418 On the Left is after I moved the irises forward in unity, and the Right is the original after exporting from Blender Screenshot_20221130_031356

Thank you for reading, and I hope this was helpful!

FlailingFog commented 1 year ago

, small and medium tears, as well as the gageyes don’t appear upon export from blender

These are setup in blender through drivers. You'll have to recreate these drivers in the program you want to use them in to get the same effect (or activate the gag / tear object's shapekeys manually)
Small and medium tear shapekey setup is currently broken for all models

the eyes would be clipping into the eye

I see what you mean now. These are the eyes with the eyewhites set to alpha blend: image

And this is when it's set to alpha clip image

You can see in edit mode that the eyewhite is clipping into the iris. Not sure why it looks normal when set to alpha blend (maybe this explanation?), and I also don't know why your eyes are clipping in the default position image

I have no idea how to activate the blendshapes in Unity so I can't try it with half closed eyes, but mine looks normal with the default position. Are you sure you're setting the eyewhites and eye materials to Transparent rendering in Unity? If it's set to Cutout it will probably replicate the Blender alpha clip setting shown above image

If it's still causing an issue and you only need it to work for one or two shapekeys, you can just edit the shapekey to move the eyewhite back

completely eliminate the blue pixels found on the textures of models.

the tears do not appear to be weighted properly

I can't replicate these

BTHP5 commented 1 year ago

The blue lines were / are caused both on the face and body when you use the maintex instead. E.g. if you have makeup or tattoos

FlailingFog commented 1 year ago

That's the slider I've been using: image

Do the blue lines show up on the exported maintex png in the ####_character_name folder, or do they only show up after being imported to blender?

BTHP5 commented 1 year ago

Heyo! I haven't been able to reply until now, the blue lines would mainly only be on the body or face when it had overlays like freckles or tattoos, which can only be seen when using the maintex slider. I believe it would be blue in the maintex folder as well, I'll do more digging though