Ambient occlusion and dynlight shaders with point light math
Moderator: Graf Zahl
- 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
There's no blocker, I just wasn't sure it's finished.
- 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
To my eyes, this is as "finished" as it can get at this point in time... with the exception of models, but I'm understanding that that has to come later, because the models' normals aren't being used yet so the model lighting stuff has to come first before model AO can be added... right?
No more bugs in the rounds of testing I've done and it's as good as it can look even when compared to modern games with a similar rendering feature.
No more bugs in the rounds of testing I've done and it's as good as it can look even when compared to modern games with a similar rendering feature.
- Rachael
- Developer
- Posts: 3646
- Joined: Sat May 13, 2006 10:30
Re: Ambient occlusion and dynlight shaders with point light math
I agree with Nash, but I guess dpJudas has to give the final word.
- 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
I'll have a look later. First I need to do a little fixing on ZScript, as it turned out that casting non-constant strings to class types is totally borked.
- 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
Can this be merged over the weekends? It's been added into QZDoom for a long time by now and I've been playing with it ever since... haven't noticed any problems. :D
-
- Developer
- Posts: 798
- Joined: Sat Jul 23, 2016 7:53
Re: Ambient occlusion and dynlight shaders with point light math
This one is currently blocked by Graf being busy with ZScript - I think. I wouldn't worry. It will be looked at once the workload lessens a bit.
- 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
Nash wrote:Can this be merged over the weekends? It's been added into QZDoom for a long time by now and I've been playing with it ever since... haven't noticed any problems.
No. I need at least an entire day to properly review it, and that's what keeps it out for now.
- 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
I finally found some time to test this a little.
Even with SSAO off it's still slower than without this code. Overlooking the bridge in Frozen Time I get 43 vs. 49 fps. With the various SSAO modes the frame rate will be between 36 and 33 fps but a slowdown here was to be expected. I'd still like to find out what causes the slowdown with SSAO off, though.
Even with SSAO off it's still slower than without this code. Overlooking the bridge in Frozen Time I get 43 vs. 49 fps. With the various SSAO modes the frame rate will be between 36 and 33 fps but a slowdown here was to be expected. I'd still like to find out what causes the slowdown with SSAO off, though.
- 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
Never mind, it was just one test with and one without dynamic lights being loaded. This thing looks ok, I think it can be merged.
-
- Developer
- Posts: 798
- Joined: Sat Jul 23, 2016 7:53
Re: Ambient occlusion and dynlight shaders with point light math
Excellent! About the earlier FPS drop that you found in the original testing round, that was because I changed the frame buffers to be textures. After you reported that, I changed it so that if SSAO is off it uses render buffers, and if its on it switches to textures.
By the way, since I know you got an upcoming release planned, if there's anything in GZDoom you'd like me to adjust for it please let me know.
By the way, since I know you got an upcoming release planned, if there's anything in GZDoom you'd like me to adjust for it please let me know.
- 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
I have to admit that I lost track of it because I was sick last week. So the planned Christmas release won't happen, I first need to get an idea what's still needed to do.
- 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
Thank you Graf Zahl and dpJudas! Does the implementation of this pave way for lighting for models, for after the planned release?
- 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
No, this has nothing to do with how to process dynamic lights.