Exopandora / ShoulderSurfing

Shoulder Surfing Reloaded is a highly configurable third person camera mod for minecraft.
MIT License
48 stars 9 forks source link

[BUG] [forge 1.20.1] When i using ShoulderSurfing trims disappears #160

Closed Milan4ikdudewtf closed 3 months ago

Milan4ikdudewtf commented 3 months ago

Description

It happens with any trimmed armor parts but some trims can be visible at chestplates but only 2-4 pixels and i sure its mods conflict because in my modpack 360+ mods.

Steps to Reproduce

-

Expected Behavior

Turning on mod = first screenshot Turning off mod = second screenshot

Screenshots

image image

Game Logs

https://gist.github.com/Milan4ikdudewtf/3af87e1e4ca8322d5019693740ab074a

Other Mods

No response

Additional Information

No response

Exopandora commented 3 months ago

Thanks for the report. Please isolate the conflicting mod using this method.

Pet-Slime commented 3 months ago

I have also found this issue while using fabric 1.20.1. The mod that seems to be causing a conflict is iris shaders.

Link to the mod list (which is in a log): https://pastebin.com/LcL6Ztsx

Milan4ikdudewtf commented 3 months ago

Well, as I found out, it can happen by iris or oculus, and I hope that you could fix this bug.

Exopandora commented 3 months ago

In version 2.9, shoulder surfing introduced the feature of making the player transparent when the view is obstructed. To make this possible, the player rendering had to be adjusted in a way that it supports transparent rendering. The problem is that iris/oculus do transparency sorting, meaning that screen elements are sorted based on the distance to the camera (furthest to nearest) and then drawn in that order. However, iris/oculus assume armor trims to be opaque (hardcoded), while armor rendering is correctly parsed as being transparent (not hardcoded, therefor correctly converted from opqaue to transparent). Due to the aforemetntioned sorting, the armor trims are now being rendered before the armor itselft, making it "invisible" (it is actually behind the armor texture). It took me a while to figure this out. I will see what i can do to fix this sorting issue.