halflife icon indicating copy to clipboard operation
halflife copied to clipboard

Hall of Mirrors on skybox sides at certain angles in widescreen

Open Donowa93 opened this issue 2 years ago • 2 comments

Currently, if the player is playing on a widescreen resolution and has their screen angled correctly, they'll be able to see a Hall of Mirrors effect on one of the skybox sides. (default_fov is 110 in the image)

20231118114956_1

Donowa93 avatar Nov 18 '23 16:11 Donowa93

Within the engine render code, specifically in the function R_DrawSkyBox, there's a conditional check

if (DotProduct(vpn, normal) < -0.29289322)
    continue;

Where -0.29289322 represents -1 + 0.70710678 == cos(DEG2RAD(90 / 2)) The proposed fix is to dynamically account for the FOV aspect instead of based on the hardcoded value of 90

s1lentq avatar Nov 20 '23 04:11 s1lentq

It's still an issue affecting Half-Life and mods. Hoping for a fix

FreeSlave avatar Dec 22 '24 20:12 FreeSlave