Announcement

Collapse
No announcement yet.

NVIDIA GameWorks Integration

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    Originally posted by 0lento View Post
    I updated all three 4.19 GameWorks merges I've done to include latest fixes from Nvidia (for TXAA3 and VXGI2) and official UE 4.19.2:

    https://github.com/0lento/UnrealEngi...4.19-Flow-VXGI (Flow + VXGI 2)
    https://github.com/0lento/UnrealEngi...4.19-GameWorks (Blast + Flow + HairWorks 1.4 + HBAO+ 4 + TXAA 3 + VXGI 2)
    https://github.com/0lento/UnrealEngi...9-GameWorks-VL (Blast + Flow + HairWorks 1.4 + HBAO+ 4 + TXAA 3 + Volumetric Lighting + VXGI 2)
    Hey, I'm kinda curious since you specify 'HBAO+ / HBAO+ 4' for some of the builds.
    It's a bit confusing since there's already a feature in the VXGI builds that's called hbao.

    I'm assuming what's in the VXGI builds is actually the Voxel AO / VXAO.
    While when you specify HBAO+, it's the screen-space HBAO from a separate branch?
    ( aka the one from here https://developer.nvidia.com/shadowworks , but without shadowworks itself, which doesn't seem to have any kind of UE4 implementation yet. )

    Comment


      VXAO and HBAO+ are in fact two different bits. HBAO+ also is in VXGI builds by default, just not sure if it's HBAO+4. Maxime, 0lento or Alexey would know better on the differences there. And ShadowWorks is something totally different from the ambient occlusion stuff.

      Originally posted by Alexey.Panteleev
      (Actually, it's probably possible to implement single-pass directional shadow map rendering using Maxwell-2 FastGS, which should give a speedup for everyone using UE).
      What would that process look like? Is that something simple to do?
      Last edited by Derjyn; 05-03-2018, 03:24 AM.

      Comment


        Hi Alexey,

        Not sure if this is easily fixed but making a typo when entering a voxelsize in the console (example ~32 as opposed to 32) will crash the editor.






        https://www.artstation.com/chesire

        Comment


          Originally posted by ax448 View Post
          Hey, I'm kinda curious since you specify 'HBAO+ / HBAO+ 4' for some of the builds.
          It's a bit confusing since there's already a feature in the VXGI builds that's called hbao.
          It's HBAO+ from VXGI2 branch. I specify it separately as it's a separate GameWorks tech from Nvidia, it's not coupled with VXGI technically in any way, they just chose to distribute them at same merged branch.

          Meaning, you can technically strip out all VXGI code from the nvidia VXGI branch and have only HBAO+ left and it still works (we've done that for UE4.15 when I didn't need VXGI for anything).
          Last edited by 0lento; 05-03-2018, 06:28 AM.
          https://github.com/0lento/UnrealEngine (GameWorks tech merges & upgrades, UE4 physics modifications)

          Comment


            Originally posted by Alexey.Panteleev View Post

            In this case, a large part of the fps drop comes from shadow map rendering, the ShadowDepths pass. Like I mentioned, when VXGI is enabled, the directional light shadows include all objects that are covered by the shadow map, not just those affecting the current camera view. You can see that using "vis ShadowDepthAtlas" or "vis WholeSceneShadowmap" and toggling VXGI on and off. It's probably possible to do some culling still or limit the range of cascades that are used for VXGI. Since you observe such a significant slowdown, it would be great if you could send me the scene, or something else that reproduces the same kind of slowdown, and then I can try to optimize the code (or settings).

            VXGI 2.0 is generally faster than 1.0, but no one said you will see 2x speedup overall. In the GDC presentation, I mentioned that voxelization can be almost twice as fast in some cases, mostly because it can be done in a single pass now. Other things like voxel processing and tracing have been somewhat improved. But not shadow map rendering, as that's part of the engine, not VXGI. (Actually, it's probably possible to implement single-pass directional shadow map rendering using Maxwell-2 FastGS, which should give a speedup for everyone using UE).
            thank you for this important information. If there is a way to have a more optimized VXGI I will do whatever I can. If you send me an email or something like that I can send a scene to reproduce. And also dynamic shadow cost is a big deal in Unreal for open world. If its performance will be improved too, with VXGI, Unreal would be a better position for open world to compare with CryEngine.
            Last edited by MASSIVE Can; 05-03-2018, 06:51 AM.

            Comment


              Hey, what's up UE4 community. I've returned to Unreal Engine after being away for 2 years. I was one of the early developers who kept begging Epic to implement a dynamic GI solution after SVOGI got canned. Things looked grim for me until I came across VXGI and started following it. Now after seeing the cool new results being achieved with 2.0, now feels like the time to return back to UE4!

              @Alexey.Panteleev

              Hey dude, I want to thank you for your work on VXGI. It reinvigorated my interest in real time rendering again and it's cool to see you're on the forums. I was wondering, with the latest Ray tracing announcements from Nvidia and Microsoft, what will the future of VXGI look like? Will it continue to be its own thing or will it eventually merge with those new technologies?
              Last edited by JordanN; 05-03-2018, 06:48 AM.

              Comment


                Originally posted by Derjyn View Post
                VXAO and HBAO+ are in fact two different bits. HBAO+ also is in VXGI builds by default, just not sure if it's HBAO+4. Maxime, 0lento or Alexey would know better on the differences there. And ShadowWorks is something totally different from the ambient occlusion stuff.
                Yes, HBAO+ 4 is integrated in the VXGI branch.
                ShadowWorks is a marketing name for the collection of HBAO+, PCSS and HFTS: https://developer.nvidia.com/shadowworks
                UE4 has a PCSS feature of its own, but HFTS is not integrated, as far as I know.

                Originally posted by Derjyn View Post
                What would that process look like? Is that something simple to do?
                Implementing single-pass cascaded shadow maps is not exactly simple. Overall, it would replace the regular CSM rendering passes with one coarsest cascade, and use multiple viewports to represent all the cascades at once. The new pass will use a FastGS shader to multicast each triangle into a number of those viewports, depending on which cascades it intersects with. There may be complications though: if shadow maps are too large, the DX limit on viewport size (+/- 16k pixels) can become a limiter, in which case it will be two passes instead of one. There also may be some accuracy issues.

                We have a sample that does this (in GL): https://github.com/NVIDIAGameWorks/G...dShadowMapping

                Originally posted by Chesire View Post
                Hi Alexey,

                Not sure if this is easily fixed but making a typo when entering a voxelsize in the console (example ~32 as opposed to 32) will crash the editor.
                This was fixed yesterday. I added some validation/clamping on the important cvars. Turns out ~32 translates to just 0.

                Originally posted by JordanN View Post
                Hey dude, I want to thank you for your work on VXGI. It reinvigorated my interest in real time rendering again and it's cool to see you're on the forums. I was wondering, with the latest Ray tracing announcements from Nvidia and Microsoft, what will the future of VXGI look like? Will it continue to be its own thing or will it eventually merge with those new technologies?
                ​​​​​​​You're welcome!
                Yes, VXGI is playing in the same field as the ray tracing tech, sort of. And it doesn't give the same level of image quality. But VXGI is much faster than ray tracing, if you implement similar effects using both. There are some possible paths for them to converge, like using RT for mirror reflections and VXGI for everything else, or using RT for contact shadows. We'll look into that.

                Comment


                  I made a performance experiment with VXGI for open world. (with performance tweaks such as map size X, Y, Z 64) And the results on GTX 980Ti & i7 5930K.
                  4x4 level with average tree density.

                  ATTENTION! AFTER THE UPDATE DIRECTIONAL LIGHT VXGI PERFORMANCE HAS BEEN FIXED. FPS INCREASED TO 80 FROM 48.5.
                  Last edited by MASSIVE Can; 05-08-2018, 04:26 PM.

                  Comment


                    importing FBX takes crazy long. is that VXGI build spesific bug or 4.19 related?

                    Comment


                      Originally posted by alperenozgur View Post
                      importing FBX takes crazy long. is that VXGI build spesific bug or 4.19 related?
                      I haven't personally noticed that issue. Larger FBX files, of course, take longer to import. Or if there are issues with the mesh.

                      Comment


                        Originally posted by Derjyn View Post

                        I haven't personally noticed that issue. Larger FBX files, of course, take longer to import. Or if there are issues with the mesh.
                        yea looks like im doing something wrong when exporting fbx from houdini

                        Comment


                          I finally got VXGI 2.0 installed on my computer and I have to say, I'm having a blast with this! As someone who does a lot of offline rendering, real time G.I is the future. I'm finding it incredibly hard to go back to the likes of Vray and Mental Ray after using this. Instant feedback is so much more satisfying than waiting for an image to render.

                          Best of all, I'm doing this all on a GTX 960. A $200 card from from 3 years is doing GIobal Illumination at 30 to 60 frames a second!

                          I posted more of my work here.

                          http://polycount.com/discussion/comm...omment_2630278
                          Last edited by JordanN; 05-06-2018, 02:56 AM.

                          Comment


                            Hi, any news ETA on flex for 4.19?

                            Comment


                              Originally posted by catalejo View Post
                              Hi, any news ETA on flex for 4.19?
                              There are a couple branches now that have it. Mentioned in this thread.

                              Comment


                                Derjyn. I looked and I cannot find a a branch that has flex and all the other tech, could you please show me where you saw that branch with flex and flow and VXGI? in 4.19?
                                Last edited by catalejo; 05-07-2018, 01:26 PM.

                                Comment

                                Working...
                                X