Announcement

Collapse
No announcement yet.

Intel Denoiser + alpha awareness!

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

  • Intel Denoiser + alpha awareness!

    Currently if you have a semi-transparent object and are using the intel denoiser, it doesn't seem to be aware or denoise anything *behind* the semi-transparent object. This leads to windows having very noisy interiors, when if the glass is removed, it works perfectly well. I hope this is something easily resolved. (for what it's worth, the Nvidia denoiser seems to handle this well, but I much prefer the end result/quality of the Intel denoiser overall)
    Thanks!

  • #2
    Not to derail but I've been trying to find a comparison or just an overall opinion regarding the default V-Ray denoiser and the more recently added Intel option?

    I tend to only use the Nvidia denoiser for IPR and the default denoiser works so amazingly well for final output.

    So just curious besides this deal-breaker issue with Intel denoiser, how do you feel about the default denoiser vs the Intel implementation in overall quality, specifically in regards to animation?

    Thanks!

    Comment


    • #3
      Originally posted by HowardDay View Post
      Currently if you have a semi-transparent object and are using the intel denoiser, it doesn't seem to be aware or denoise anything *behind* the semi-transparent object. This leads to windows having very noisy interiors, when if the glass is removed, it works perfectly well. I hope this is something easily resolved. (for what it's worth, the Nvidia denoiser seems to handle this well, but I much prefer the end result/quality of the Intel denoiser overall)
      Thanks!
      You can fix this if you set the glass shader to "affect alll" channels for its refraction.
      This is because then the data channels will show through (f.e. normals, diffuse filter, and so on).

      This is the same as with the V-Ray denoiser.
      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


      • #4
        I'm pretty certain I have already checked that option. :/ Let me do some tests and get back to you!

        Comment


        • #5
          Okay, I definitely have the "affect all" channels set on the glass materials. Unfortunately I'm still seeing the same behavior. :/
          Here's some examples:
          The glass area raw and then denoised:
          Click image for larger version

Name:	Noisy_03.png
Views:	494
Size:	49.5 KB
ID:	1128626Click image for larger version

Name:	DeNoisy_03.png
Views:	525
Size:	34.2 KB
ID:	1128625
          You can see that *maybe* some of the edges of the dome are slightly denoised, the overall effect is missing almost entirely.
          Just to show that I'm not crazy, here's another area of the render showing the denoiser clearly working great:
          Click image for larger version

Name:	Noisy_02.png
Views:	475
Size:	408.0 KB
ID:	1128628Click image for larger version

Name:	DeNoisy_02.png
Views:	497
Size:	84.9 KB
ID:	1128627
          That light *also* has a glass dome over it, so there's a small amount of noise still present at the center.
          If it helps, I'm using the latest nightly build, in GPU/RTX rendering mode.
          Thanks!

          Comment


          • #6
            Umh, what do the other render element look like for those bits?
            It could be because the stuff behind glass is black in some of the REs, or maybe an OIDN issue, either with the version, or us: i haven't tested it extensively enough yet to know for sure.
            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
              Well I have a bump/normals, diffuse, global illum, and alpha pass available. Here they are:
              Click image for larger version

Name:	Screenshot 2021-10-29 191331.png
Views:	507
Size:	419.7 KB
ID:	1128776Click image for larger version

Name:	Screenshot 2021-10-29 191347.png
Views:	493
Size:	543.4 KB
ID:	1128778Click image for larger version

Name:	Screenshot 2021-10-29 191404.png
Views:	468
Size:	485.6 KB
ID:	1128779Click image for larger version

Name:	Screenshot 2021-10-29 191423.png
Views:	468
Size:	58.0 KB
ID:	1128777
              The end result is this:
              Click image for larger version

Name:	Screenshot 2021-10-29 191603.png
Views:	462
Size:	577.5 KB
ID:	1128780
              As you can see, the circled areas remain noisy - the albedo of the glass is set to white, but it is rendering as black in the diffuse pass.
              I hope this helps.

              Comment


              • #8
                Umh, it'll make rendering slower and noisier, but perhaps try using a diffuse+selfillum vraymtl (same color in both) instead of a lightmtl.
                That should carry across to the diffuse.
                Should you not need the lighting (either because you can fake it with an actual light, or because you can do without), use a vrayMtlWrapper to not emit GI from the self-illuminated material (EDIT: No need for this anymore, it's enough to *not* tick "GI" in the vrayMtl), which would speed up rendering.
                Last edited by ^Lele^; 30-10-2021, 04:47 AM.
                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


                • #9
                  ..for the glass? Or for the things the glass occludes? Because this is entirely universal - it doesn't matter what type of mtl is on the objects *behind* the glass, the non-denoising behavior is the same. I've had like trees and walls and stuff back there and it wont denoise it. :/
                  The glass already a full vraymtl, and adding self-illum to it will just blow it out...
                  Last edited by HowardDay; 30-10-2021, 02:06 AM.

                  Comment


                  • #10
                    Eh, i missed the reply, and edited above.
                    For the light materials behind the glass, it's them being black in the diffuse, that i can see.
                    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


                    • #11
                      Umh, it's truly odd, as i can't seem to repro the behaviour for OIDN.
                      It looks nigh identical to me wether i set the glass to affect all channels or not, wether i use a lightMtl or a vrayMtl for the emissive parts: it always attempts a denoise and there is no discontinuity behind or around glass, that i can see.
                      I'd ask you to send me one little part of the offending scene to test locally, if at all possible.
                      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


                      • #12
                        this is rtx, not cpu. classic issue with alpha behind refractive obj. do your glass with blend mtl. separate refractive and reflective components. helps with alpha, might fix OIDN as well.
                        Marcin Piotrowski
                        youtube

                        Comment


                        • #13
                          Thanks for the idea Piotrus - but unfortunately, no dice. It still has the exact same lack of denoising on the background objects. Lele: Here's the part of the scene - I tried to trim down the unneeded textures, so you might get a warning on that, just ignore it.
                          https://drive.google.com/file/d/1wlr...ew?usp=sharing
                          I am using the RTX renderer as Piotrus mentioned.

                          Comment


                          • #14
                            Allright, i think this isn't solvable via REs.
                            The fact that the glass returns a black diffuse is unavoidable (refraction will always have precedence over the diffuse.): you use it to scatter the light behind it, so you can't quite hide it, or override it in any meaningful way.
                            The V-Ray denoiser does a slightly better job at it, but then the eddges of the frame tend to have noise left pretty much intact (perhaps manually changing kernel size and strenght may help, perhaps not.).
                            You're likely better off using the NVidia one, or other non-RE sensitive denoiser (i.e. one that works on the beauty pixels only.).

                            This said, if you abandoned physicality, you'd get much quicker renders and a properly denoised image.
                            For example, make a standard V-Ray material, set the diffuse to the blue you need. In the self-illum channel, use a comptex with the blue emissive color in one slot (using a vraycolor map) and an AO (VrayDirt) in the other, set the comptex to multiply.
                            Turn on GI in the emissive part of the shader.
                            Assign the shader to the *glass*.
                            Fiddle with the AO parameters until it looks decent enough.

                            It isn't the same as seeing the light and underlying structure through a frosted glass, but it'll look quite similar (add more complex maps if you feel you really need the various darkenings due to the underlying structure), and denoise just fine.
                            See the two attached samples, original, and modified as explained above (it's a quickie, you'll get much better results spending a bit more time on it.).

                            Lastly: Is there a particular reason why you have your max and scene set up like you have? You're technically not under LWF, but not using ACES either, that i can see.
                            Not being under LWF will lead to max making a mess when saving stuff out (from the VFB, or directly on disk.), among other things.

                            Click image for larger version  Name:	original.png Views:	0 Size:	172.6 KB ID:	1128838Click image for larger version  Name:	modified.png Views:	0 Size:	171.1 KB ID:	1128839
                            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


                            • #15
                              Originally posted by ^Lele^ View Post
                              Allright, i think this isn't solvable via REs.
                              The fact that the glass returns a black diffuse is unavoidable (refraction will always have precedence over the diffuse.): you use it to scatter the light behind it, so you can't quite hide it, or override it in any meaningful way.
                              The V-Ray denoiser does a slightly better job at it, but then the eddges of the frame tend to have noise left pretty much intact (perhaps manually changing kernel size and strenght may help, perhaps not.).
                              You're likely better off using the NVidia one, or other non-RE sensitive denoiser (i.e. one that works on the beauty pixels only.).
                              This seems really odd to me, since you have access to a mask of where the refractive areas are *as* a RE. Can't you use that knowledge to make sure the denoiser runs on those areas? Otherwise you're pretty much just leaving a pretty big exception to the use of any sort of denoiser pass in renders - IE "Denoise only works if you have no refraction, otherwise it's broken". That doesn't seem like the best option to me, at least.

                              I know I can do a non-physical version of this. I could also just render it in scanline, and it wouldn't even need the denoiser. The point of having VRay and using it is to *do* stuff like this, and not have to work around a problem to fake it.

                              Originally posted by ^Lele^ View Post
                              Lastly: Is there a particular reason why you have your max and scene set up like you have? You're technically not under LWF, but not using ACES either, that i can see.
                              Not being under LWF will lead to max making a mess when saving stuff out (from the VFB, or directly on disk.), among other things.
                              The Gamma settings in 3dsmax and Vray have always been broken for me. I get hugely inconsistent results, and cannot get the renderer to just save out an EXR with the proper settings. I can save each frame out of the VFB with some success, but that's not a solution for animations. The only reliable overall solution I've found is to turn all that stuff off, and just work in AE to Color Correct the result. If you can set it up to have the proper linear workflow and send the max file back I'd love to see it! I have lost weeks of time fiddling and following tutorials to have it not actually work, though. :/

                              Thanks.

                              Comment

                              Working...
                              X