Add ReSTIR#10
Conversation
|
@abalfoort, continuing from NVIDIA#477 (comment): I got around to looking into it, at least a little. My rough hypothesis right now: What to do about it? Not sure right now. Probably read a bit up on state of the ReSTIR art and see what options the pros came up with. |
|
Addendum: Seems things get especially odd when sunlight is involved. Hm. |
Or at least, more visible. Good to see that you still are on this project. |
ReSTIR is currently only used for direct lighting.
Limiting to the same field is unnecessary and not doing so seems to give better results.
The sampling position was carried along, but not actually used! Using it also seems to make a perceptible difference.
Looks like a hack to deal with fireflies, but it broke lighting in other ways.
|
@abalfoort, so after spending quite a while trying to understand more of how this is all supposed to work, and prodding the implementation, I think managed to address the issue you were still seeing (still visible smearing outdoors)... First of all, be aware it's not entirely gone in all cases; but that is in the nature of the thing: when pixels are disoccluded, the denoiser initially has to guess a lot in that area, and that usually tends to result in comparatively darker pixels. As I found out, the ReSTIR implementation actually contained a few hacks that made things look alright when using skybox sky lighting (which I mostly used when checking it out previously), but no so much with physical sky lighting (which is comparively bright). So the main aim was to fix those hacks, yet to keep things still looking nicely. Other things I found out on the journey:
In conclusion, if you have time, I'd appreciate if you could give that latest branch a spin and see how it works for you. |
|
@res2k Thanks for the hard work. I have started and played baseq2 a little and immediately saw a big difference. I will try to find some time this week to test this, also with the mission packs. |
I'll look into them
Awesome! |
|
I finally had some time. Compiled both master and restir-update. The latter with pt_restir 0 and pt_restir 1 set:
The smearing is now almost completely gone, even in the mission packs. I see some ghosting but that could be my machine. On the other hand, only Q2RTX does that. Making a screenshot is no use because that only saves a single frame, not the ghosting. I don't know how to fix that. |
Great!
Hm, maybe you could make a short recording using some screen recording utility? "On the other hand, only Q2RTX does that" - what are your other points of comparison? |
|
I was mistaken. I just ran God of War and Shadow of the Tomb Raider and they had that both. So, it's my system. Probably Linux and the latest proprietary Nvidia drivers (the .run installation files from their site) don't go well together. |
Continuing discussion from NVIDIA#477 as upstream project is archived.