[Fixed] Sloped 3d floor render bug

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Sloped 3d floor render bug

Postby Wivicer » Sun Jun 02, 2019 12:06 am

(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 Sun Jun 02, 2019 12:34 am, edited 1 time in total.
User avatar
Wivicer
 
Joined: 27 Jul 2013
Location: Slowly degrading into a modern-art piece
Operating System: Windows 10/8.1/8 64-bit
Graphics Processor: nVidia (Modern GZDoom)

Re: Sloped 3d floor render bug

Postby _mental_ » Sun Jun 02, 2019 12:22 am

Post a complete runnable sample please.
_mental_
 
 
 
Joined: 07 Aug 2011

Re: Sloped 3d floor render bug

Postby Wivicer » Sun Jun 02, 2019 12:34 am

Done. Sorry about that
User avatar
Wivicer
 
Joined: 27 Jul 2013
Location: Slowly degrading into a modern-art piece
Operating System: Windows 10/8.1/8 64-bit
Graphics Processor: nVidia (Modern GZDoom)

Re: Sloped 3d floor render bug

Postby Graf Zahl » Fri Aug 09, 2019 11:26 am

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
Graf Zahl
Lead GZDoom Developer
Lead GZDoom Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: Sloped 3d floor render bug

Postby Marisa Kirisame » Sat Aug 17, 2019 5:13 am

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
Marisa Kirisame
ZScript Magician
 
 
 
Joined: 08 Feb 2008
Location: Vigo, Galicia
Discord: Marisa Kirisame#4689
Twitch ID: magusmarisa
Github ID: OrdinaryMagician
Operating System: Other Linux 64-bit
Graphics Processor: nVidia with Vulkan support

Re: Sloped 3d floor render bug

Postby Graf Zahl » Sat Aug 17, 2019 5:40 am

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
Graf Zahl
Lead GZDoom Developer
Lead GZDoom Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: Sloped 3d floor render bug

Postby Enjay » Sat Aug 17, 2019 9:14 am

Marisa Kirisame wrote:does it still crap out if you flatten it?

If I flatten it, the glitches go away.
User avatar
Enjay
Everyone is a moon, and has a dark side which he never shows to anybody. Twain
 
 
 
Joined: 15 Jul 2003
Location: Scotland

Re: Sloped 3d floor render bug

Postby Marisa Kirisame » Sat Aug 17, 2019 3:01 pm

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
Marisa Kirisame
ZScript Magician
 
 
 
Joined: 08 Feb 2008
Location: Vigo, Galicia
Discord: Marisa Kirisame#4689
Twitch ID: magusmarisa
Github ID: OrdinaryMagician
Operating System: Other Linux 64-bit
Graphics Processor: nVidia with Vulkan support

Re: Sloped 3d floor render bug

Postby Graf Zahl » Sat Aug 17, 2019 3:27 pm

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 Developer
Lead GZDoom Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: Sloped 3d floor render bug

Postby Graf Zahl » Sun Aug 18, 2019 8:05 am

Fixed. This came from a bad alpha value that got set for sloped 3D floors.
User avatar
Graf Zahl
Lead GZDoom Developer
Lead GZDoom Developer
 
Joined: 19 Jul 2003
Location: Germany


Return to Closed Bugs

Who is online

Users browsing this forum: No registered users and 0 guests