Traben-0 / Entity_Model_Features

Other
90 stars 18 forks source link

[Bug - models] multiple textures in a single .jem file are overlaying instead of replacing each other #151

Open Shiagur opened 6 months ago

Shiagur commented 6 months ago

Hello there! I'm working on a resource pack that turns villagers into player-like humans, which I want to be compatible with any player skin so I added the brim of the hats (like the straw hat of the farmer villager) as a separate texture in the .jem file. the brim texture is a 16x16 texture that is completely filled. The villager model has a block for the brim, which has a transparent texture on the normal villager, which gets replaced if they have a job with a brim, like a farmer via a .properties file. The problem is, that the textures get layered on top of each other, instead of getting replaced.

In Optifine (HD_U_I5 for 1.20.1) it's supposed to look like this: Screenshot 2023-12-17 130211 but with EMF it looks like this: Screenshot 2023-12-17 143741

As you can see, the whole texture of the villager is rendered on the brim with the separate brim texture layered under it. (you can't see it on the left side but there is a tiny pink dot inside the head, which is the mostly transparent texture for the invisible brim.) This happens both, with the regular boxes method and the extra, separate .jpm file method

Additional stuff: With sodium 0.5.5 and iris shaders 1.6.14 it flips the order, which is kinda curious: Screenshot 2023-12-17 130807 I also encountered some other issues while experimenting where the whole model was covered with brim texture, which obviously also shouldn't happen but I don't know how to replicate it. I still wanted to include that here for completion's sake. Untitled

Shiagur commented 6 months ago

I forgot to mention that the right villager in the last image is the same as the one in the image above. You can see the yellow of the hat just under the left shoulder. Also, I tried just using the regular newest fabric, instead of quilt with the same result.

Shiagur commented 5 months ago

Not to be pushy but I just wanted to check in since it's been over a month without any indication that this has even been seen. Now I wonder if I did something incorrectly when I submitted this, if more information is needed, or if you want my resource pack to check it yourself.

Thanos1716 commented 5 months ago

Not a problem, just likely not a top priority issue, there are a fair few to get through! If you can, uploading the resource pack with the bug will definitely speed up the process of isolating why the issue occurs.