Ambient occlusion and dynlight shaders with point light math
Moderator: Graf Zahl
-
- Developer
- Posts: 798
- Joined: Sat Jul 23, 2016 7:53
Re: Ambient occlusion and dynlight shaders with point light math
Ah, that sucks Nash. Got some nasty cold thing myself where I'm constantly coughing and freezing. Probably not the same as you're on the other side of the planet. No worries about the testing - this can wait.
- Nash
- Developer
- Posts: 1226
- Joined: Sun Sep 25, 2005 1:49
- Location: Kuala Lumpur, Malaysia
- Contact:
Re: Ambient occlusion and dynlight shaders with point light math
Did a quick test... need to shake out of this sickness somehow and stop feeling miserable...
- SSAO on models work correctly (as in, no SSAO, which I understand is expected for now)
- With gl_ssao_debug 1, depending on the player's angle, sometimes the shadow will disappear. Only happens in debug mode... in normal mode, shadows don't disappear
- gl_ssao_portals does not seem to do anything. Using Arookas' test portal WAD, I had mine set to 0 but it was still drawing SSAO across all portals. No matter what you set this Cvar to, it doesn't seem do anything functional
- SSAO on models work correctly (as in, no SSAO, which I understand is expected for now)
- With gl_ssao_debug 1, depending on the player's angle, sometimes the shadow will disappear. Only happens in debug mode... in normal mode, shadows don't disappear
- gl_ssao_portals does not seem to do anything. Using Arookas' test portal WAD, I had mine set to 0 but it was still drawing SSAO across all portals. No matter what you set this Cvar to, it doesn't seem do anything functional
-
- Developer
- Posts: 798
- Joined: Sat Jul 23, 2016 7:53
Re: Ambient occlusion and dynlight shaders with point light math
Thanks for testing Nash. I've committed a fix to the gl_ssao_portals having no effect (forgot to decrement it each time it did apply ssao).
- Rachael
- Developer
- Posts: 3646
- Joined: Sat May 13, 2006 10:30
Re: Ambient occlusion and dynlight shaders with point light math
Building it now. I was out today.
-
- Developer
- Posts: 798
- Joined: Sat Jul 23, 2016 7:53
Re: Ambient occlusion and dynlight shaders with point light math
Thanks Eruanna. Much appreciated.
- Rachael
- Developer
- Posts: 3646
- Joined: Sat May 13, 2006 10:30
- Nash
- Developer
- Posts: 1226
- Joined: Sun Sep 25, 2005 1:49
- Location: Kuala Lumpur, Malaysia
- Contact:
Re: Ambient occlusion and dynlight shaders with point light math
Just tried the latest version. I can't seem to find any more bugs or oddities. Everything works and looks beautiful now. =D Thanks dpJudas!
Spoilered for off-topic-ness
[spoiler]OH and by the way... this isn't really a bug report but... is there any way to make the AO not disappear near the edges of the screen? It looks good with Doom's diminished lightmode (software) but for the standalone game I'm making, it's an intentional aesthetic choice that I enforced the "dark" lightmode (Doom lighting just does not make sense for my game). So the issue here is the AO disappears when you walk too close to a wall, making it look like the player is a moving lightsource, not unlike the Doom "software" lightmode...[/spoiler]
Spoilered for off-topic-ness
[spoiler]OH and by the way... this isn't really a bug report but... is there any way to make the AO not disappear near the edges of the screen? It looks good with Doom's diminished lightmode (software) but for the standalone game I'm making, it's an intentional aesthetic choice that I enforced the "dark" lightmode (Doom lighting just does not make sense for my game). So the issue here is the AO disappears when you walk too close to a wall, making it look like the player is a moving lightsource, not unlike the Doom "software" lightmode...[/spoiler]
-
- Developer
- Posts: 798
- Joined: Sat Jul 23, 2016 7:53
Re: Ambient occlusion and dynlight shaders with point light math
Technically the problem here is that around every pixel the SSAO samples nearby pixels (lets say nearest 16 pixels in X and Y). At the edge of the screen it runs out of pixels to sample from and that makes the SSAO disappear at the edges. It can be solved by making the scene framebuffer/texture larger than the final output, but due to the way the scene is being rendered right now (particular its 2D weapon) that is a little tricky to do.Nash wrote:OH and by the way... this isn't really a bug report but... is there any way to make the AO not disappear near the edges of the screen?
- Nash
- Developer
- Posts: 1226
- Joined: Sun Sep 25, 2005 1:49
- Location: Kuala Lumpur, Malaysia
- Contact:
Re: Ambient occlusion and dynlight shaders with point light math
Ah, okay. It's no big deal, I can live with it. =) Everything appears to be all good for real now! Played around with it some more and really couldn't find any more bugs.
- Rachael
- Developer
- Posts: 3646
- Joined: Sat May 13, 2006 10:30
Re: Ambient occlusion and dynlight shaders with point light math
Thank you for helping to test that, Nash!
- Nash
- Developer
- Posts: 1226
- Joined: Sun Sep 25, 2005 1:49
- Location: Kuala Lumpur, Malaysia
- Contact:
Re: Ambient occlusion and dynlight shaders with point light math
I just wanted to share that after more than 200 hours of playing Fallout 4, I only started to notice this exact effect happening in Fallout 4 last night. The effect is hilariously almost identical between F4 and GZDoom. XDdpJudas wrote:Technically the problem here is that around every pixel the SSAO samples nearby pixels (lets say nearest 16 pixels in X and Y). At the edge of the screen it runs out of pixels to sample from and that makes the SSAO disappear at the edges. It can be solved by making the scene framebuffer/texture larger than the final output, but due to the way the scene is being rendered right now (particular its 2D weapon) that is a little tricky to do.Nash wrote:OH and by the way... this isn't really a bug report but... is there any way to make the AO not disappear near the edges of the screen?
Goes to show that when you're so invested in a game, even the most hardcore nitpickers like me won't notice tiny insignificant shader weirdnesses... :P
-
- Developer
- Posts: 798
- Joined: Sat Jul 23, 2016 7:53
Re: Ambient occlusion and dynlight shaders with point light math
It is all about attention. It is like those silly magician TV programs where they show that you can have a guy in a bunny suit walk across the scene in the back without noticing, if you just manage to keep the viewer focused on something else in the front.
- Graf Zahl
- GZDoom Developer
- Posts: 7148
- Joined: Wed Jul 20, 2005 9:48
- Location: Germany
- Contact:
Re: Ambient occlusion and dynlight shaders with point light math
How ready is this? There hasn't been any activity lately but so far I haven't seen anything that would prompt me to merge.
-
- Developer
- Posts: 798
- Joined: Sat Jul 23, 2016 7:53
Re: Ambient occlusion and dynlight shaders with point light math
The status right now is that the branch/PR has no known issues (at least, it survived the testing Nash did) and is ready to be reviewed again.
-
- Developer
- Posts: 798
- Joined: Sat Jul 23, 2016 7:53
Re: Ambient occlusion and dynlight shaders with point light math
By the way, I'm not sure if I understood your posting correctly. If you meant there are some blockers that makes you not want to merge it in its present form, then what are those?