Closed TheMaskedMan00 closed 1 year ago
@FlailingFog Has already fixed this issue a while ago though? https://github.com/FlailingFog/KK-Blender-Porter-Pack/pull/138/commits/418b4e88f29f504e277283c74b22e17f99a73e4f
@FlailingFog Has already fixed this issue a while ago though? 418b4e8
oh, my bad, I did not know
The eye materials are separate in the blender plugin, but I haven't changed importeverything.py to use the data in KK_MaterialData.json yet so the same values are still loaded in for both. I also don't believe the exporter plugin gives you two eye maintex/ot1/etc images if they're different colors or pupil types
I also don't believe the exporter plugin gives you two eye maintex/ot1/etc images if they're different colors or pupil types @FlailingFog
Oh yeah... but are there cards like that? If so, do you have one?
I don't have one in mind, but I remember trying with a heterochromia character and it gave me one image. There's a toggle on the bottom of the Iris category that lets you edit eyes individually:
I don't have one in mind, but I remember trying with a heterochromia character and it gave me one image. There's a toggle on the bottom of the Iris category that lets you edit eyes individually:
Cool! I'll make the eye textures export separately, thanks for letting me know!
I also don't believe the exporter plugin gives you two eye maintex/ot1/etc images if they're different colors or pupil types @FlailingFog
Oh yeah... but are there cards like that? If so, do you have one?
Yes there are cards that can have diff main Tex for the eyes, and not just the main Tex, all the textures can be different for each eye. Eye white is a pretty rare thing to have diff Color’s for each eye white, so we can prob ignore the textures in the eye whites, but the eyes themselves can have all different textures so it is important to export all the textures and values within to their corresponding side. Also while looking through material editor settings and code, I found out that it replaces all materials with a copy to Improve performance, which is why we always get (instance) (instance). It is a setting that can be turned off but in terms of interference it might be the cause of some issues, for example making new materials for things that use the same materials. But that’s just a hunch.
Cool! I'll make the eye textures export separately, thanks for letting me know!
Thanks for adding this in. It appears the materialdata.json wasn't needed
If you want to actually separate the eye material, you need to actually modify the kk plugin. the way koikatsu does the eyes is this:
Both eyes and both eyewhites actually do use the same material, but they are seperate meshes: cf_Ohitomi_R : Eyewhite Right cf_Ohitomi_L: Eyewhite Left cf_Ohitomi_L02: Left Eye cf_Ohitomi_R02: Right Eye
In unity, you can have 2 different meshes that use the same material, but have different values. The way to get around this is by simply searching for the eye meshes, and getting their respective materials.
Below is a snippet of my mod, and below that is the explanation:
I know the code is really messy but I will break it down since this is just the code from my material exporter
Sadly, i cannot see where i can put this into your existing plugin as you only include the .dll and not the source. But feel free to use this code. I would love to help you guys with this project as our views on the game and its potential are very similar.