Announcement

Collapse
No announcement yet.

GPU (game engine style) DOF ?

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

  • GPU (game engine style) DOF ?

    I have been playing Star Citizen Alpha 3.0 recently and the graphics/effects are great. The DOF is in real time and looks amazing. I was wondering if it would be possible to impliment a game engine style DOF for renders to greatly reduce render time and noise (of the DOF effect) substantially?

    Maybe not as physically accurate as how Vray calculates things currently, but certainly usable in production.
    Last edited by stevesideas; 03-01-2018, 03:21 PM.
    Regards

    Steve

    My Portfolio

  • #2
    Most compositing packages already have tools for fast and high-quality post-effect DOF. Or do you mean in the VFB or similar to the OptiX denoiser?

    Best regards,
    Vlado
    I only act like I know everything, Rogers.

    Comment


    • #3
      The problem with post DOF is if you want to stylise a scene with quite heavy DOF there are always artifacts on the edges of items as the software is only doing a best guess and doesn't generally do a great job. If there was some kind of effect that could take into consideration the positional factors required for high quality DOF then that would be great. In the VFB basically, like lens effects. Something calculated after render but with the 3d positions of objects taken into consideration...if that is even possible ?
      Regards

      Steve

      My Portfolio

      Comment


      • #4
        Well, let me look at that that game and see how it looks... There are plugins for PhotoShop like DOF Pro (http://richardrosenman.com/shop/dof-pro/) that do a fairly good job. Maybe something similar can be done in realtime on the GPU.

        Best regards,
        Vlado
        I only act like I know everything, Rogers.

        Comment


        • #5
          The game is only in alpha at the moment so you have to pay something like $24 to become part of the test team or you could check out youtube where a lot of streamers showcase the game including DOF etc.
          Regards

          Steve

          My Portfolio

          Comment


          • #6
            Is it particularly better than that of other modern AAA games (i guess i'm asking if they wrote their own shader)?
            Lumberyard does have a nice DoF in camera, but it's hard to tell just by looking at the game if it's exactly the same technique (based apparently on a 2013 paper).
            Lele
            Trouble Stirrer in RnD @ Chaos
            ----------------------
            emanuele.lecchi@chaos.com

            Disclaimer:
            The views and opinions expressed here are my own and do not represent those of Chaos Group, unless otherwise stated.

            Comment


            • #7
              I think VFB+ can do a DOF without rerendering, similar to DOF in packages like Photoshop,... I never used it though and it's free now: http://www.monotoneminimal.com/vfb Might want to give it a shot.
              A.

              ---------------------
              www.digitaltwins.be

              Comment


              • #8
                Originally posted by Vizioen View Post
                I think VFB+ can do a DOF without rerendering, similar to DOF in packages like Photoshop,... I never used it though and it's free now: http://www.monotoneminimal.com/vfb Might want to give it a shot.
                Thanks for the link but I'm guessing that this third party VFB would only use the zdepth pass and not be processed with 3d positions of objects used....probably leading to artifacts. I'm maybe not explaining this well.
                Regards

                Steve

                My Portfolio

                Comment


                • #9
                  Originally posted by stevesideas View Post

                  Thanks for the link but I'm guessing that this third party VFB would only use the zdepth pass and not be processed with 3d positions of objects used....probably leading to artifacts. I'm maybe not explaining this well.
                  The Zdepth is probably used indeed. Doesn't hurt to give it a try, maybe it uses some other tricks too, no idea.
                  Last edited by Vizioen; 05-01-2018, 03:12 AM.
                  A.

                  ---------------------
                  www.digitaltwins.be

                  Comment


                  • #10
                    Yeah, I'll take a look
                    Regards

                    Steve

                    My Portfolio

                    Comment


                    • #11
                      Gpu accelerated fake dof in vray would be great if it gives better results than other plugins. Artifacts are a problem and if you blur things in foreground it's mostly unusable with sharp edges.
                      I'm having such a hard time to clean my raycasted dof of noise. So something less accurate but smooth and time saving with lens options in engine would be a dream.
                      Add Your Light LogoCheck out my tutorials, assets, free samples and weekly newsletter:
                      www.AddYourLight.com
                      Always looking to learn, become better and serve better.

                      Comment


                      • #12
                        Have you tried denoising your DOF result? There are many options now - Neat Image, the V-Ray denoiser, the NVidia one, Altus etc.

                        Best regards,
                        Vlado
                        I only act like I know everything, Rogers.

                        Comment


                        • #13
                          if you need really good post dof go with bokeh from peregrine... its like magic..
                          but it does require deep files and nuke...
                          http://peregrinelabs.com/bokeh/
                          https://linktr.ee/cg_oglu
                          Ryzen 5950, Geforce 3060, 128GB ram

                          Comment


                          • #14
                            Would love to get into nuke, but it's too expensive right now. Probably some other time...
                            problem with the vray denoiser is that for dof I would need heaviet demoising than for other parts. So I need to denoise two times and get the parts in AE right to comp those together.
                            Off topic, but if the denoiser could choose between heavy and mild denoising for specific parts, it would save time and disc space.
                            Add Your Light LogoCheck out my tutorials, assets, free samples and weekly newsletter:
                            www.AddYourLight.com
                            Always looking to learn, become better and serve better.

                            Comment


                            • #15
                              The denoiser does adapt to the noise in the image (the noiseLevel render element), but other than that you can just run the vdenoise tool twice with different settings and blend in AE.

                              Best regards,
                              Vlado
                              I only act like I know everything, Rogers.

                              Comment

                              Working...
                              X