-
Notifications
You must be signed in to change notification settings - Fork 402
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
missing door buttons or sprite depth bug #9462
Comments
Scale depths bug. P.S. You can add the video just by dragging it into the message body (maximum 10 mb). |
I understood about the hidden depth limit, the background walls don't seem to have such limitation. |
The door structure is composite! The frame with buttons and the door itself are two elements. They are located at different levels of the depth scale. 111.mp4 |
That's pretty much what's happening here, although it is not about "different reference points" nor "depth scales" (there's actually no such thing, the issues you reported in that other ticket are caused by different types of entities being rendered in separate passes, which enforces a certain draw order between them). When two entities have the same sprite depth, their draw order is based on their ID and the texture they use. So essentially, if you set the sprite depth to the exact same value, the draw order between them is inpredictable (but consistent). And what's happening with the door is that the buttons are separate sprites with a depth of 0.89. |
Addressed in https://github.com/Regalis11/Barotrauma-development/commit/82e7e2c87e8b6e37cc013836b54b4cf107f9c790 by separating the buttons from the door's background sprite, so the buttons can have a lower sprite depth than the background. |
Tested in 0.18.13.0, works correctly, closing. Notes: could not find any outpost module/vanilla submarine that appeared to use values that may cause any issues. Moving walls around shows the button hides at the intended depth of 0.75 offset by the door depth (IE. +0.01 to door depth is +0.01 to button depth). it is now easily possible to hide the background of the door and not hide the buttons with it. |
Disclaimers
What happened?
missing door buttons or sprite depth bug
Reproduction steps
Easy in reproduction
Door has default sprite depth - 510.
Bug prevalence
Happens every time I play
Version
0.18.12.0
-
No response
Which operating system did you encounter this bug on?
Windows
Relevant error messages and crash reports
_No response
button.mov
_
The text was updated successfully, but these errors were encountered: