FlailingFog / KK-Blender-Porter-Pack

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

Support for NSFW materials #7

Closed MediaMoots closed 3 years ago

MediaMoots commented 3 years ago

Hello.

It would be great if there was a way to add nipples/genitals to the body shader.

Nipples have some support in V3 but it's not easy to scale them. As for the genitals, they have a material based on this template https://github.com/DeathWeasel1337/KK_Plugins/blob/master/src/UncensorSelector.Core/Template.xml

By the way, what is "Grey's Mesh Exporter"? Thanks.

MediaMoots commented 3 years ago

Update: It appears that the genitals are applied from the material cf_body_00_t Attached is a sample of that texture.

cf_body_00_t-DXT5.zip

MediaMoots commented 3 years ago

image Got it partially working with the above nodes, but the shading is not correct.

FlailingFog commented 3 years ago

I admit the mapping portion is wonky. At the moment scale and location seem like they're linked so I need to see if there's some way to unlink them.

The texture you attached has a white background so multiplication could be used to apply it to the skin color image Thanks for showing this, if all of them are like this I can add an easy way to use it in the V4 version of the shader

Since you asked, Grey's Mesh Exporter is a very useful plugin by Grey on the Illusion soft discord. It exports textures like material editor does, but it exports all of them at once and it exports them with consistent naming, so instead of manually exporting each texture and manually loading each texture into the material templates, it can all be done automatically (with a 90% success rate). I plan on utilizing it in the V4 version of the script/shader pack.

MediaMoots commented 3 years ago

@FlailingFog Very cool, thank you. I'll check the exporter out.

I admit the mapping portion is wonky. At the moment scale and location seem like they're linked so I need to see if there's some way to unlink them.

Maybe the texture would need to be positioned individually, I tried that, and it is hard to get the positions right.

The texture you attached has a white background so multiplication could be used to apply it to the skin color

To think it was that easy XD Of course, the hue is not adjustable, but it's a step in the right direction, thanks.

MediaMoots commented 3 years ago

Alright, got the hue working image There's probably a better way to do this though XD

FlailingFog commented 3 years ago

In V4.1.2, I put a spot for loading these body_00_t textures into the NSFW texture group in the Body material, plus some sliders to adjust the hue I also added an easier way to scale things (including nipples)

MediaMoots commented 2 years ago

@FlailingFog Hi, great update, works flawlessly.

Is there a way to add pubic hair? Thanks.

FlailingFog commented 2 years ago

You can probably just do something similar to this.

MediaMoots commented 2 years ago

Yup, thanks