Path tracing fork's future?

I was talking with NVIDIA, and they are working to keep up with the main branch while also making the system 100% GPU agnostic. Currently, the Path-Tracer runs on any GPU, including AMD, and even on Linux. The only part that is NVIDIA only is Ray Reconstruction, which is currently used for denoising.

However, they are actively working on a second denoiser that can run on any GPU. They have made it abundantly clear that the goal is to not be NVIDIA only.

5 Likes

Those reflections are insane! The next time someone asks how to make reflections in Godot I’m going to refer them to this thread.

2 Likes

Thats great.

The shadows in that last video are convincing, perhaps the fork will be useful for special builds of a game. People will be able to say “here is the standard version, and here is the super HD version with RTX, take your pick”.

Reflections and shadows definitely benefit the most from Path-Tracing. Indirect illumination is also excellent, but if we’re talking absolute game-changers, SDFGI holds its own for GI. However, in my opinion, reflections fall short, and shadow maps are… well, shadow maps. I don’t need to explain why they suck!

2 Likes

That looks much better. Can it soften directional cast shadows?

Yeah, the shadows are amazing. The best part is that they’re often cheaper than shadow maps, since you can have far more shadow-casting lights at very low cost. Path-Tracing avoids the overhead of shadow mapping, and the resolution is effectively infinite something traditional methods just can’t match. I love PT/RT shadows!

As for special builds, all of this can be toggled in game, so a developer could add a menu where players can choose to use Path-Tracing or rasterization. So yeah, that’s totally possible.

2 Likes

Not at the moment, though it’s being worked on. Right now, rays either hit or don’t hit, but variable penumbras are in development.

How does this thing handle scene geometry? It just chews everything without any culling? What happens if there’s a lot of geometry in the scene?

1 Like

Basically, anything that’s going to be visible in reflections or indirect illumination needs to be visible. There is still work being done on how exactly occlusion culling and related systems should work, but currently, this renders any objects that are needed for off-screen rendering.

1 Like

4 Likes

For some additional context, the rasterized version using SDFGI, SSIL, SSAO, and SSR has been tweaked to look as good as possible for an object of this detail. If I move the camera, there is nonstop popping and visual discontinuities, so even the “bad” version can’t be used in-game. I could fix the popping, but then you don’t get self-occlusion in most areas, so it looks worse than this image. In contrast, Path-Tracing is completely stable and handles everything at a per-pixel level.

5 Likes

The scene is lit by the sky itself and a single directional sunlight. The sun is mostly used for highlights, but most of the ambient light comes from the skybox.

2 Likes

No, it’s from Poly Haven. They have a ton of amazing HDRIs that go up to 20K, I am using an 8K version.

2 Likes

This scene was super simple. I used the HDRI for most of the lighting, which alone provides an extreme level of realism. The sun was just added to create some nice highlights on the plastic, and then the Path-Tracing handles the bulk of the rendering work.

As for noise, I am using the DLSS Ray Reconstruction denoiser, which handles everything in real time. In fact, someone is even working on porting it to Blender, which could do the same thing. I am only running at 1 sample per pixel with 3 bounces, and since DLSS RR does such a good job of cleaning the image, I can use fewer samples and more bounces, which significantly improves quality.

3 Likes

Got a new demo today. This one is more realistic it’s the Remastered Sponza scene that I have ported natively to Godot and configured to work with Path-Tracing. Not only that, but I have spent a substantial amount of time making the Rasterized version also look decent, so this is more of a fair comparison of Path-Tracing vs. Rasterization in terms of quality.

You can download the demo from the GitHub link below, which is a repository of demos. Currently, this only includes Sponza, but I will have more demos soon.

Project Link: https://github.com/johnlogostini/NVGWGD_Demos

5 Likes