View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000635 | Gameplay + OpenGL | [All Projects] Bug | public | 2017-04-28 09:13 | 2017-04-29 03:27 |
Reporter | Nash | ||||
Assigned To | |||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | no change required | ||
Summary | 0000635: Custom HUD disappearing if HUD scaling < 3 | ||||
Description | Run attached example. Make sure screenblocks = 10. You will most probably see an empty HUD, unless the scale setting (either override or the fullscreen HUD scale) is 3 or larger. Don't know since when this broke but smaller scale values used to not exhibit this bug. | ||||
Tags | No tags attached. | ||||
hudtest.zip (6,229 bytes) |
|
Correction: either override or the global UI scale | |
For what it's worth - For me, the effect seems to be magnified as resolution increases... On lower resolution (1280x720), the bar only disappears when scale is set to 1. At higher resolutions (1920x1080), the bar disappears at 2 or 3 as well... If I set it to 2, I can toggle between resolutions and watch the bar appear and disappear. | |
Your calculation of the y coordinate for the clipping rectangle seems to be totally off and happens to exclude the area for the display on scale 1 and 2. As the scaling increases the clipping rectangle is moved out of the bottom of the screen and no longer clipping, that's why the HUD reappears. |
|
@Graf Zahl but it does not happen before. Which commit changed this? | |
Whatever changed only revealed an error in your math. The entire calculation is wrong. If you want to set a clipping rectangle aligned to the bottom of the screen you have to align the rectangle's coordinates to the bottom of the screen as well. You align yours to the center of the screen, and with HUD_HEIGHT being 200 it only covers a too small part of the screen if the scaling is 1 or 2. | |
Date Modified | Username | Field | Change |
---|---|---|---|
2017-04-28 09:13 | Nash | New Issue | |
2017-04-28 09:13 | Nash | File Added: hudtest.zip | |
2017-04-28 09:14 | Nash | Note Added: 0001561 | |
2017-04-28 10:08 | AFADoomer | Note Added: 0001564 | |
2017-04-28 12:03 | Graf Zahl | Note Added: 0001568 | |
2017-04-28 12:03 | Graf Zahl | Status | new => resolved |
2017-04-28 12:03 | Graf Zahl | Resolution | open => no change required |
2017-04-28 12:03 | Graf Zahl | Description Updated | View Revisions |
2017-04-28 22:41 | Nash | Note Added: 0001577 | |
2017-04-29 03:27 | Graf Zahl | Note Added: 0001580 |