Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KKBP Importer 8.0 #663

Open
wants to merge 35 commits into
base: master
Choose a base branch
from
Open

KKBP Importer 8.0 #663

wants to merge 35 commits into from

Conversation

FlailingFog
Copy link
Owner

@FlailingFog FlailingFog commented Jan 12, 2025

The KKBP importer loads textures and colors in a way that is really hard to follow. This PR aims to simplify that by reducing the number of json files used from 7 down to 3. The way the material templates and json colors are loaded in, as well as the blender nodes themselves have all been reworked to be more straightforward.

This PR requires you to use KKBP exporter 4.35 (net35 DLL zip attached below, source code is here)
KKBP_Exporter 4.35.zip

TODO:
*

Changelog:

  • Remove the exporter plugin from the importer zip
  • Replaced linked hair materials with a button to update all hair materials on an object at once
  • Removed raw shading light linking
  • Removed raw shading hue passthrough
  • Combined raw shading normal map parsing into one group
  • Removed all rims
  • Shadowcast and bonelyfans are now deleted
  • Fixed longstanding issue with white clothes / overlays
  • Recreated almost every single material shader from scratch
    • including automatic generation of detail colors, so those will be different
  • Removed KK Fangs
  • Added a switch to use eyeline main textures with color
  • Added a switch to use eyebrow main textures with color
  • Added a new cycles shading option (choose between toon or default principled BSDF)
  • Removed the shader to rgb nodes on KK General's color inputs
  • Merged Eyewhite materials
  • Removed unused LUT images
  • Removed baked image slot on all materials
  • Outfits, hair and alts get their own collections now
  • Character name is used in collection now
  • Character name is used in all objects now to ensure they are unique
  • Character name is used in all materials now to ensure they are unique
  • Character name is used in all node groups now to ensure they are unique
  • Hard code some colors because the ones being loaded in were not great
  • Materials that are supposed to be semi transparent are now automatically set to blended
  • Dark main textures now keep their alpha channel when generated
  • Node groups related to the KKBP shaders will no longer show up in the material node search
  • Glasses materials are now transparent instead of being completely white (only the glass part, not the frame)

add alpha for dark main texture creation
make most of the node groups from the KK library file hidden in the node search
fix shine incorrectly being white
fix eyeline material order inconsistency
added exception to detect when a material should have a null color mask when a maintex is loaded in
automatically make alpha material's render method set to blended
removed template placeholder from colormask slot
fix for clothes repeated names
remove template placeholder for nose, eyelines
@FlailingFog FlailingFog marked this pull request as ready for review January 19, 2025 21:21
make hair colormask behaviour more accurate to how it works in game
remove hair maintex sliders
rename hair colormask colors to root / tip
remove unused detail contrast slider from KK General
load in body and face overlays automatically
Fix loading normal map detail for items
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment