Sloped 3d floor render bug

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Post Reply
User avatar
Wivicer
Posts: 367
Joined: Sat Jul 27, 2013 4:39 pm
Graphics Processor: nVidia (Modern GZDoom)
Contact:

Sloped 3d floor render bug

Post by Wivicer »

(NB: this only occurs in the hardware renderer)

I have created a map with a 3d floor that has its bottom face sloped. The upper face is flat. In the softpoly renderer it looks fine, but in the hardware renderer it looks like this:

Image
Map File
Mod File
You'll also need this: https://drive.google.com/file/d/0B4p2zW ... sp=sharing
Last edited by Wivicer on Sat Jun 01, 2019 11:34 pm, edited 1 time in total.
_mental_
 
 
Posts: 3812
Joined: Sun Aug 07, 2011 4:32 am

Re: Sloped 3d floor render bug

Post by _mental_ »

Post a complete runnable sample please.
User avatar
Wivicer
Posts: 367
Joined: Sat Jul 27, 2013 4:39 pm
Graphics Processor: nVidia (Modern GZDoom)
Contact:

Re: Sloped 3d floor render bug

Post by Wivicer »

Done. Sorry about that
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49067
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Sloped 3d floor render bug

Post by Graf Zahl »

All I can say is that it's something with the texture - but there's so much interference in that bunch of data that I can't find what precisely causes it. Globally replacing the METSAND texture in the map with a stock Doom 2 texture makes the glitch disappear.
User avatar
Marisa the Magician
Posts: 3886
Joined: Fri Feb 08, 2008 9:15 am
Preferred Pronouns: She/Her
Operating System Version (Optional): (btw I use) Arch
Graphics Processor: nVidia with Vulkan support
Location: Vigo, Galicia
Contact:

Re: Sloped 3d floor render bug

Post by Marisa the Magician »

It seems that that texture has an alpha channel (although it's all at 255), does it still crap out if you flatten it?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49067
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Sloped 3d floor render bug

Post by Graf Zahl »

That really shouldn't make a difference in the final image. But it's an idea. If it thinks the texture has an alpha channel and selects a bad render mode it might glitch.
User avatar
Enjay
 
 
Posts: 26534
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Sloped 3d floor render bug

Post by Enjay »

Marisa Kirisame wrote:does it still crap out if you flatten it?
If I flatten it, the glitches go away.
User avatar
Marisa the Magician
Posts: 3886
Joined: Fri Feb 08, 2008 9:15 am
Preferred Pronouns: She/Her
Operating System Version (Optional): (btw I use) Arch
Graphics Processor: nVidia with Vulkan support
Location: Vigo, Galicia
Contact:

Re: Sloped 3d floor render bug

Post by Marisa the Magician »

Ah, I knew it. sloped 3d floors and any form of transparency just don't mix.

I assume what happens here is that the software renderers treat the texture as opaque, but on hardware it tries to do alpha blending of some sort and fails spectacularly?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49067
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Sloped 3d floor render bug

Post by Graf Zahl »

I suspect some uninitialized render style somewhere. If this was just rendered with regular translucency by accident it wouldn't glitch this badly.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49067
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Sloped 3d floor render bug

Post by Graf Zahl »

Fixed. This came from a bad alpha value that got set for sloped 3D floors.
Post Reply

Return to “Closed Bugs [GZDoom]”