[Won't change] Skybox/horizon discrepancy between hardware & software

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Skybox/horizon discrepancy between hardware & software

Postby whirledtsar » Thu Feb 04, 2021 7:12 pm

https://imgur.com/K9tEf3v
https://imgur.com/a/KklFwo5
Yes I know theres an [imgur] tag. If only it worked.

Anyways, the top screenshot is the software renderer. The bottom is the hardware renderer.
The walls of the skybox sector are line_horizon, because they arent meant to be seen.
The borders of the level are also line_horizon. In software, it renders the skybox into infinity where the walls would be. But in hardware, it renders the skybox differently on the wall, so theres a noticeable (and undesirable) divide between the sky and horizon.

Test map, Hexen UDMF format: https://cdn.discordapp.com/attachments/ ... 98/tst.wad
whirledtsar
 
Joined: 12 Mar 2018

Re: Skybox/horizon discrepancy between hardware & software

Postby Graf Zahl » Fri Feb 05, 2021 1:22 am

Your problem is with the 3D floor in there. Using Line_Horizon on a sector with a 3D floor is undefined - the hardware renderer does not render it at all, and the results for the software renderer are generally unpredictable - in this simple case it just happens to work as intended.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: Skybox/horizon discrepancy between hardware & software

Postby whirledtsar » Fri Feb 05, 2021 2:09 am

Why not render it like the ceiling is? Cost on performance?
whirledtsar
 
Joined: 12 Mar 2018

Re: Skybox/horizon discrepancy between hardware & software

Postby Graf Zahl » Fri Feb 05, 2021 2:55 am

It's not that simple. Horizons are a relatively natural and straightforward thing in the software renderer, but in the hardware renderer require setting up a portal - and the entire setup does not work with planes that are not either the top and bottom of the entire scene.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany


Return to Closed Bugs

Who is online

Users browsing this forum: No registered users and 1 guest