Structurize

Structurize

40M Downloads

tooltip not rendering correctly in scrolling list

Nightenom opened this issue · 3 comments

commented

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.
commented
commented

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.
commented