HUD Aspect Correction
Hi there,
I've found a problem with the HUD that always streched.
on CstDoom3 this problem are corrected very well.
Is possible to replicate the same on dhewm3?
Comparative screenshots: https://media.moddb.com/images/members/4/3399/3398919/profile/cstdoom3_v2_0_hud_corr_sp_off.jpg https://media.moddb.com/images/members/4/3399/3398919/profile/cstdoom3_v2_0_hud_corr_sp_on.jpg
I'll have to look at cstdoom3 (and probably their source code) and figure out how they're doing this and maybe adept that change to dhewm3.
Right now I don't have the time (right now I don't even have the time to finally finish that 1.5.1 release), but I hope I'll get around to it eventually :)
Really thanks, I hope some day you have some time. I know that this is a lot of work to do.
Thanks men, and I'll be tuned with your news.
I took a look the cstdoom3's source code. It has a cvar that handles this, named cst_hudAdjustAspect, which is called in idPlayerView::RenderPlayerView (in both base and d3xp). ~~I've extracted the relevant code to a gist~~. This isn't quite right, as this only controls the drawing of the Lag meter. If you grep around for cst_hudAdjustAspect you can see that there's an anchoring system for UI elements.
This requires adjusted .gui files that use cstAnchor.
So far I have avoided shipping custom data files (and they'd only be for the base game and RoE anyway, doesn't help for mods) and I think I'd like to keep it like that for now.