Sloped 3d floor render bug
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.
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.
- Wivicer
- Posts: 367
- Joined: Sat Jul 27, 2013 4:39 pm
- Graphics Processor: nVidia (Modern GZDoom)
- Contact:
Sloped 3d floor render bug
(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:
Map File
Mod File
You'll also need this: https://drive.google.com/file/d/0B4p2zW ... sp=sharing
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:
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.
Re: Sloped 3d floor render bug
Post a complete runnable sample please.
- Wivicer
- Posts: 367
- Joined: Sat Jul 27, 2013 4:39 pm
- Graphics Processor: nVidia (Modern GZDoom)
- Contact:
Re: Sloped 3d floor render bug
Done. Sorry about that
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49073
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Sloped 3d floor render bug
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.
- 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
It seems that that texture has an alpha channel (although it's all at 255), does it still crap out if you flatten it?
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49073
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Sloped 3d floor render bug
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.
Re: Sloped 3d floor render bug
If I flatten it, the glitches go away.Marisa Kirisame wrote:does it still crap out if you flatten it?
- 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
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?
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?
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49073
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Sloped 3d floor render bug
I suspect some uninitialized render style somewhere. If this was just rendered with regular translucency by accident it wouldn't glitch this badly.
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49073
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Sloped 3d floor render bug
Fixed. This came from a bad alpha value that got set for sloped 3D floors.