Plasma decal incorrect in hardware rendering
Moderator: GZDoom Developers
Forum rules
Please construct and post a simple demo whenever possible for all bug reports. Please provide links to everything.
If you can include a wad demonstrating the problem, please do so. Bug reports that include fully-constructed demos have a much better chance of being investigated in a timely manner than those that don't.
Please make a new topic for every bug. Don't combine multiple bugs into a single topic. Thanks!
Please construct and post a simple demo whenever possible for all bug reports. Please provide links to everything.
If you can include a wad demonstrating the problem, please do so. Bug reports that include fully-constructed demos have a much better chance of being investigated in a timely manner than those that don't.
Please make a new topic for every bug. Don't combine multiple bugs into a single topic. Thanks!
-
-
- Posts: 17465
- Joined: Mon Oct 27, 2003 12:07 am
- Location: Kuala Lumpur, Malaysia
Plasma decal incorrect in hardware rendering
Fire the Plasma Rifle at a wall. Take a look at the blue, fading decal.
- In software rendering (either Carmack or Softpoly, any colour depth), it fades to transparent.
- In hardware rendering (either OpenGL or Vulkan), it fades to black, before abruptly disappearing.
The software rendering one looks correct to me.
- In software rendering (either Carmack or Softpoly, any colour depth), it fades to transparent.
- In hardware rendering (either OpenGL or Vulkan), it fades to black, before abruptly disappearing.
The software rendering one looks correct to me.
-
- Lead GZDoom+Raze Developer
- Posts: 49183
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Plasma decal incorrect in hardware rendering
Works fine for me.
-
-
- Posts: 17465
- Joined: Mon Oct 27, 2003 12:07 am
- Location: Kuala Lumpur, Malaysia
Re: Plasma decal incorrect in hardware rendering
Still happens with latest commit as of this writing (3b41848). Examine the video closely, as I don't know how else to demonstrate this. Pictures won't show it clearly enough. In the video, you can see the animation differences more clearly.
Note that this behaviour is ancient, I have noticed this for a very long time - even while Randi was still around, even.
-
- Lead GZDoom+Raze Developer
- Posts: 49183
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Plasma decal incorrect in hardware rendering
Please post your INI. I need to find what causes it. For me it doesn't happen.
-
-
- Posts: 17465
- Joined: Mon Oct 27, 2003 12:07 am
- Location: Kuala Lumpur, Malaysia
Re: Plasma decal incorrect in hardware rendering
Ok. Note that while there are a bunch of autoloads in the INI, my report (and also the video) is ran with -noautoload so mods are not the cause.
You do not have the required permissions to view the files attached to this post.
-
-
- Posts: 3819
- Joined: Sun Aug 07, 2011 4:32 am
Re: Plasma decal incorrect in hardware rendering
Seems to be caused solely by SSAO. For me, other settings are irrelevant.
-
- Lead GZDoom+Raze Developer
- Posts: 49183
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Plasma decal incorrect in hardware rendering
Yet another one...
Half of the reported render glitches I know of are being caused by SSAO. This feature really needs to be declared as experimental and incomplete...
Half of the reported render glitches I know of are being caused by SSAO. This feature really needs to be declared as experimental and incomplete...
-
-
- Posts: 17465
- Joined: Mon Oct 27, 2003 12:07 am
- Location: Kuala Lumpur, Malaysia
Re: Plasma decal incorrect in hardware rendering
This glitch doesn't happen with the green BFG lightning, by the way. Only the plasma...
-
- Lead GZDoom+Raze Developer
- Posts: 49183
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Plasma decal incorrect in hardware rendering
The green lightning is an alpha texture which is tinted green. The plasma decal is a translucent sprite. How this can affect SSAO I do not know.
-
-
- Posts: 3134
- Joined: Sat May 28, 2016 1:01 pm
Re: Plasma decal incorrect in hardware rendering
Since the SSAO pass only sees normal vectors and depth values, it has to be one of those two. Maybe one is drawn in the solid part of the scene and one in the translucent?
-
- Lead GZDoom+Raze Developer
- Posts: 49183
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Plasma decal incorrect in hardware rendering
Decals are drawn in a separate pass that belongs to the solid block. The normal for a decal should always be the same as for the underlying surface. Can it be that this is uninitialized somehow and only works by happenstance for alpha-shaded decals?
-
-
- Posts: 3134
- Joined: Sat May 28, 2016 1:01 pm
Re: Plasma decal incorrect in hardware rendering
If I turn on gl_ssao_debug 4 (shows the contents of normal gbuffer) and fire the plasma there's a white mark on the wall that then goes away. Unfortunately due to how it presented I can't easily tell if that's a translucent thing drawn afterwards (like how you can see the things drawn on top), or if that's a clear sign of a broken normal being written.
-
- 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
Re: Plasma decal incorrect in hardware rendering
Apologies for the bump, but will this ever be dealt with?
I mean, sure, SSAO is kind of crap but still...
I mean, sure, SSAO is kind of crap but still...
-
- Lead GZDoom+Raze Developer
- Posts: 49183
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Plasma decal incorrect in hardware rendering
Unlikely. The only reason SSAO got in in the first place was public demand, despite my reservations for the feature's shortcomings.