Announcement

Collapse
No announcement yet.

Help with AntiAliasing geometry

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

  • #16

    I enabled Sub-pixel mapping + clamping and tested different clamp values but the issue didn't go away.

    Thanks for the image 1funk! Octane and the native render of Modo really seems to be doing a better job there.

    -t

    Comment


    • #17
      I don't suggest using subpixel mapping + clamping anyway, but if you do, be aware it's not compatible with adaptive lights.

      You have to change "light evaluation mode" on the render item.
      Win10 Pro 64 / AMD Ryzen 9 5950X / 128GB / RTX 3090 + 1080 Ti / MODO
      I am the resurrection, and the life: he that believeth in me, though he were dead, yet shall he live - Jesus Christ

      Comment


      • #18
        Yeah I will probably not be using subpixel+clamping since it didn't solve the issue. I'm going to continue investigating and use the native renderer meanwhile.

        Comment


        • #19
          You can try increasing the size of the AA filter, you have it set to 1.8, which is lower than the default 2.0. Try 2.5 and see if it looks ok.

          Also note that if you zoom out of the image (i.e. make the image smaller in the VFB), there is no filtering applied, so the aliasing effect will look worse than it actually is.

          Greetings,
          Vladimir Nedev
          Vantage developer, e-mail: vladimir.nedev@chaos.com , for licensing problems please contact : chaos.com/help

          Comment


          • #20
            Thanks Vladimir. I actually reset tiom's settings to defaults in my last test, and also tried different filter types. BUT I didnt try playing with the filter size!

            You're right. Setting it to 2.5 (or 3) does look much better. I'd have to try this on another scene just to see how much it blurs other details though.

            Here is progressive sampler with filter size = 2, 2.5 and 3 (everything else reset to defaults)


            Click image for larger version  Name:	vray_aa_filter_size.png Views:	1 Size:	48.1 KB ID:	997138

            Last edited by 1funk; 23-05-2018, 08:27 PM.
            Win10 Pro 64 / AMD Ryzen 9 5950X / 128GB / RTX 3090 + 1080 Ti / MODO
            I am the resurrection, and the life: he that believeth in me, though he were dead, yet shall he live - Jesus Christ

            Comment


            • #21
              Or you could simply switch to a gaussian 2px to (likely) match the other render engines.
              One thing i noticed in the comparison, though, is that the aliased edge in V-Ray isn't nearly as intense as in the other two, which could pose a problem (that low grey you see is under sRGB gamma, its true value is likely very close to 0).
              Choice of filter ofc will play a potentially big role in shaping sub-pixel detail, and Lanczos, as we have it implemented without the negative component, is known to retain sharp edges (all too) well (hence the need for a broader filter size: the graph remains peaky, so with 2px it's considering one pixel and a wee bit, in reality.).

              Edit: i attached a wiki image of a gaussian filter curve ("pixel coordinates" for us, on the horizontal axis: the pixel we are filtering crossing the vertical axis, and the nearby on the ticks.), and two examples of the *full* Lanczos kernel shape (we don't do the negative bit).
              Notice how different they are from 0 to +-2.
              Notice, further, that at size 3px, the positive part of Lanczos (if interpolated removing the negative bit between 1 and 2) encompasses entirely the two adjacent pixels, providing for a (much) smoother weighted average than 2px could (and likely ending up looking much like a ~2px Gaussian).

              Click image for larger version

Name:	440px-Gaussian_Filter.svg.png
Views:	118
Size:	9.6 KB
ID:	997336Click image for larger version

Name:	440px-Lanczos-kernel.svg.png
Views:	91
Size:	20.3 KB
ID:	997337
              Last edited by ^Lele^; 25-05-2018, 05:51 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


              • #22
                ^Lele^ yeah I did try Gaussian 2.0 on tioem's scene and it's closer to the others. It still looks a bit jaggy for my tastes. A slight increase to 2.25 seems to help though.


                Click image for larger version  Name:	vray_aa_gaussian_filter_size.png Views:	1 Size:	35.7 KB ID:	997373

                Win10 Pro 64 / AMD Ryzen 9 5950X / 128GB / RTX 3090 + 1080 Ti / MODO
                I am the resurrection, and the life: he that believeth in me, though he were dead, yet shall he live - Jesus Christ

                Comment


                • #23
                  Hey. After hours of experimenting without any success I decided to try out the GPU renderer. The images are both rendered with exactly the same settings but the GPU gives much better AA. Is this some kind of a bug on the CPU side?

                  Comment


                  • #24
                    Can you share this second scene ?

                    Greetings,
                    Vladimir Nedev
                    Vantage developer, e-mail: vladimir.nedev@chaos.com , for licensing problems please contact : chaos.com/help

                    Comment


                    • #25
                      The second test scene can be downloaded here:
                      https://www.dropbox.com/s/zpgb5gfyju...asing.zip?dl=0

                      -t

                      Comment


                      • #26
                        tioem I was hoping someone would step in with a solution. I tried your new scene and no matter what I did, CPU always renders jaggy AA.
                        Win10 Pro 64 / AMD Ryzen 9 5950X / 128GB / RTX 3090 + 1080 Ti / MODO
                        I am the resurrection, and the life: he that believeth in me, though he were dead, yet shall he live - Jesus Christ

                        Comment


                        • #27
                          I gave up as well

                          The only trick that seems to work is to start rendering with GPU RT and head to V-ray preferences and activate the CPU under CUDA devices. This has worked fine so far with product rendering scenes but it would be nice have the option to rely on CPU in case of compatibility issues.
                          Last edited by tioem; 08-06-2018, 04:57 AM.

                          Comment


                          • #28
                            Originally posted by tioem View Post
                            I gave up as well

                            The only trick that seems to work is to start rendering with GPU RT and head to V-ray preferences and activate the CPU under CUDA devices. This has worked fine so far with product rendering scenes but it would be nice have the option to rely on CPU in case of compatibility issues.

                            Oh, we actually have this one logged.

                            It's only RT CPU that's working incorrectly, if you use Production Adaptive or Production Progressive, you will get the same result as RT CUDA.
                            So, you can use the CPU renderer and have the good AA.

                            Now, if you want RT CPU to match the other modes, you will have to set the CPU Rays Per Pixel to 1.
                            This will work around the performance optimization that RT CPU is doing and that leads to the incorrect AA.
                            We have this logged but it's not an easy fix since it affects DR performance.

                            Greetings,
                            Vladimir Nedev
                            Vantage developer, e-mail: vladimir.nedev@chaos.com , for licensing problems please contact : chaos.com/help

                            Comment


                            • #29
                              Thanks Vladimir. You're right. It looks like we were both testing this in RT CPU. I thought I tried a production render, but obviously not.
                              Win10 Pro 64 / AMD Ryzen 9 5950X / 128GB / RTX 3090 + 1080 Ti / MODO
                              I am the resurrection, and the life: he that believeth in me, though he were dead, yet shall he live - Jesus Christ

                              Comment

                              Working...
                              X