tooltip not rendering correctly in scrolling list
Nightenom opened this issue · 3 comments
Prerequisites
- I am running the latest alpha version of Structurize for my Minecraft version.
- I checked the MineColonies/Structurize wiki and made sure my issue is not covered there.
- I made sure that this issue is not a duplicate of any existing issue.
Context
- Minecraft Version:
- Structurize Version:
- MineColonies Version (if related bug):
- Related Mods and their Versions:
Expected behavior
Actual behavior
https://cdn.discordapp.com/attachments/572112548917280788/748798551798317086/unknown.png
Steps to reproduce the issue
Logs
- latest.log:
- crashlog:
Notes
Viewers
- Add a thumbs-up to the bug report if you are also affected. This helps the bug report become more visible to the team and doesn't clutter the comments.
- Add a comment if you have any insights or background information that isn't already part of the conversation.
Super confused by this
…On Fri, Aug 28, 2020, 08:09 Nightenom ***@***.***> wrote:
Prerequisites
- I am running the latest *alpha* version of Structurize for my
Minecraft version.
- I checked the MineColonies/Structurize wiki
<https://wiki.minecolonies.ldtteam.com/> and made sure my issue is not
covered there.
- I made sure that *this issue is not a duplicate of any existing
issue.*
Context
- Minecraft Version:
- Structurize Version:
- MineColonies Version (if related bug):
- Related Mods and their Versions:
Expected behavior Actual behavior
https://cdn.discordapp.com/attachments/572112548917280788/748798551798317086/unknown.png
Steps to reproduce the issue
1.
2.
3.
Logs
- latest.log:
- crashlog:
Notes
------------------------------
Viewers
- Add a thumbs-up to the bug report if you are also affected. This
helps the bug report become more visible to the team and doesn't clutter
the comments.
- Add a comment if you have any insights or background information
that isn't already part of the conversation.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#206>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABRD3S77Z4GU6C3HQURJ52LSC5JZZANCNFSM4QNZ4SGA>
.
The cause of this is the Scissoring that is applied when rendering the list.
The tooltip is rendered during the draw phase of the list, whoes rendering area has a limit that is applied via scissoring. This causes the GPU to discard any vertex outside of the area which is defined by the scissoring settings of the list.
This can be easily fixed, by doing 3 things:
- Store the current scissoring area, and disable the scissoring.
- Set the zLevel to a high value
--> Now draw the tooltip - Reset the zLevel, and enable scissoring again with the previous range.
We draw the tool tip after everything else and have a high z value already
…On Fri, Aug 28, 2020, 08:16 Marc Hermans ***@***.***> wrote:
The cause of this is the Scissoring that is applied when rendering the
list.
The tooltip is rendered during the draw phase of the list, whoes rendering
area has a limit that is applied via scissoring. This causes the GPU to
discard any vertex outside of the area which is defined by the scissoring
settings of the list.
This can be easily fixed, by doing 3 things:
1. Store the current scissoring area, and disable the scissoring.
2. Set the zLevel to a high value
--> Now draw the tooltip
3. Reset the zLevel, and enable scissoring again with the previous
range.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#206 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABRD3SZ644XWZL53UFZWJCTSC5KWVANCNFSM4QNZ4SGA>
.