[WAD bug] Voxel objects are not rendered when they should be

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Voxel objects are not rendered when they should be

Postby Player701 » Sat Oct 17, 2020 7:17 am

This may be a WAD bug, but I'm reporting this anyway because I can't be sure.

It looks like the algorithm that checks whether a voxel object should be rendered depending on the line of sight is flawed, and may produce false-negative results - the object disappears even though it should still be visible. This can be demonstrated with the map UAC Invasion: The Supply Depot, using the following command-line parameters:

Code: Select allExpand view
gzdoom -file supplydp.wad -iwad doom2 -nomonsters -warp 1 +"warp 316 310"

Approach the door, letting it open, and notice the van on the right. When you back away, it will suddenly disappear. This is not expected behavior.

Tested in GZDoom 4.4.2 and g4.5pre-299
User avatar
Player701
 
Joined: 13 May 2009
Location: Russia
Discord: Player701#8214
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: Voxel objects are not rendered when they should be

Postby Graf Zahl » Sat Oct 17, 2020 7:26 am

Sprite visibility checks are done by actor radius or render radius. Put a huge voxel on a tiny actor and these things will happen. The engine has all features needed for this case, but some mappers just ignore them and produce buggy mods. All vehicles in this mod appear to have a radius of 30 or even less, which is presumably far too small.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: Voxel objects are not rendered when they should be

Postby _mental_ » Sat Oct 17, 2020 7:28 am

Indeed, actor radius of this van is set to 32. According to sector that represents a shadow under it, it's actual size is 176x84 map units. No surprise that visibility test fails here.
_mental_
 
 
 
Joined: 07 Aug 2011

Re: Voxel objects are not rendered when they should be

Postby Player701 » Sat Oct 17, 2020 7:30 am

All right, got it. Thanks.
User avatar
Player701
 
Joined: 13 May 2009
Location: Russia
Discord: Player701#8214
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support


Return to Closed Bugs

Who is online

Users browsing this forum: No registered users and 0 guests