Page 1 of 1

Status bar, black space.

Posted: Fri Oct 02, 2020 3:41 pm
by Lobo
If you use a status bar and you reduce the game world accordingly (hud.render_world(0, 0, 320, 200 - 32) you get this, notice the black border at the top.
5u6upMOh.jpg
5u6upMOh.jpg (40.69 KiB) Viewed 7430 times
The workaround for 1.35 was to do this: hud.render_world(0, -32, 320, 200) but in 2.x it only works if you also use -norenderbuffers

Re: Status bar, black space.

Posted: Sat Oct 03, 2020 9:33 am
by Corbachu
This is indeed a side effect with post processing, specifically the Lens Distortion shader or something like perspective correction... (if I’m thinking of the right ones... haven’t slept in 2 days). Or it might be “r_stretchworld” or something along those lines.

I’m going to implement a simple clear to alpha for the HUD_Render status bar element so the hard-coded letterboxing won’t interfere with the née shader code, but it’ll retain the same behaviour otherwise.