Announcement

Collapse
No announcement yet.

chromatic aberration with VRay

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

  • #31
    Originally posted by mori4h View Post
    Also for Arnold - https://lentil.xyz/
    Something like this is exactly what I need in V-Ray!

    https://www.behance.net/Oliver_Kossatz

    Comment


    • #32
      Originally posted by piotrus3333 View Post
      Anyone with camera shader experience in VRay? is CA possible with it?
      This is what the docs for Lentil say regarding CA: "Lentil is a spectrally-plausible system. But since Arnold is an RGB renderer, we render at a single wavelength.

      Note that one *could* render the same image 3 times with different wavelengths and combine them (1 for each channel) into an image with physically plausible chromatic aberration."

      The changelog also show CA in action here: https://lentil.xyz/docs/changelog.html#2.4
      Last edited by kosso_olli; 09-12-2022, 03:11 AM.
      https://www.behance.net/Oliver_Kossatz

      Comment


      • #33
        Originally posted by kosso_olli View Post

        This is what the docs for Lentil say regarding CA: "Lentil is a spectrally-plausible system. But since Arnold is an RGB renderer, we render at a single wavelength.

        Note that one *could* render the same image 3 times with different wavelengths and combine them (1 for each channel) into an image with physically plausible chromatic aberration."

        The changelog also show CA in action here: https://lentil.xyz/docs/changelog.html#2.4
        the changelog linked shows axial chromatic aberration. I was rather referring to lateral ca, somewhat more commonly used in cgi (fringing intensifies from the center of frame outwards).
        Marcin Piotrowski
        youtube

        Comment


        • #34
          Well, in the examples the fringing is more intense on the edges, no?
          https://www.behance.net/Oliver_Kossatz

          Comment


          • #35
            Originally posted by kosso_olli View Post
            Well, in the examples the fringing is more intense on the edges, no?
            yes, it does. but it is different type of aberration than for example this:
            Click image for larger version

Name:	008_02_ppt.jpg
Views:	634
Size:	230.4 KB
ID:	1167498
            Marcin Piotrowski
            youtube

            Comment


            • #36
              The type of CA shown in Lentil would be fine for me. Plus all the other nice features.
              https://www.behance.net/Oliver_Kossatz

              Comment


              • #37
                axial chromatic aberration setup:
                Click image for larger version

Name:	mP_CAaxial.jpg
Views:	676
Size:	93.2 KB
ID:	1167561
                Attached Files
                Marcin Piotrowski
                youtube

                Comment


                • #38
                  Originally posted by vlado View Post
                  Looks good! One of our interns also did an experiment with raytracing a real camera system; some results are below. We still haven't decided if we want to put this into V-Ray officially or just dump it on Github.

                  Best regards,
                  Vlado
                  Did you ever conclude?
                  I was reminded of this while watching a video where something similar was done in UE. The real bloom was particularly nice because it was not added as kind of a post-effect:

                  https://youtu.be/2SsTk657Uw0?si=rBSrf6b59Y3aUnq-&t=172


                  Oh, and Lentil is now open source: https://github.com/zpelgrims/lentil
                  Last edited by kosso_olli; 29-11-2024, 09:07 AM.
                  https://www.behance.net/Oliver_Kossatz

                  Comment


                  • #39
                    Lens Sim for Blender has just been released.
                    I think this is the ideal implementation.


                    V-Ray Blener....​
                    Last edited by flat; 29-11-2024, 05:23 AM.

                    OakCorp Japan - Yuji Yamauchi
                    oakcorp.net
                    v-ray.jp

                    Comment


                    • #40
                      Originally posted by flat View Post
                      Lens Sim for Blender has just been released.
                      I think this is the ideal implementation.


                      V-Ray Blener....​
                      Wow, this is amazing!
                      https://www.behance.net/Oliver_Kossatz

                      Comment


                      • #41
                        I wonder if something similar could be done with V-Ray/3dsMax
                        https://www.behance.net/Oliver_Kossatz

                        Comment


                        • #42
                          Yes, we did write a lens simulator for V-Ray some years ago. It works fine but is somewhat slow to render. However if this is of interest, we can certainly release it officially.

                          Best regards,
                          Vlado
                          Last edited by vlado; 03-12-2024, 06:38 AM.
                          I only act like I know everything, Rogers.

                          Comment


                          • #43
                            Originally posted by vlado View Post
                            Yes, we did write a lens simulator for V-Ray some years ago. It works fine but is somewhat slow to render. However if this is of interest, we can certainly release it officially.

                            Best regards,
                            Vlado
                            About increased rendertimes, the author of the addon for Blender reported this in its documentation page:

                            "From my experience tracing the lens seems to add a constant amount of extra render time per sample. On simple scenes the render time will be quite slow compared to the standard camera, since the extra time tracing the lens might be greater than the time it takes to trace the scene. On larger scenes with thousands of objects the slowest part will be traversing the scene, so the performance hit will be relative small. When doing animations you will in general get more noise with Lens Sim cameras, so the render might require more samples to get the same results as the standard camera. If I should take a guess I think a render time multiplier of 1.2-3.0 is realistic, but it is hard to say due to the amount of render factors we have to consider. Additionally, bigger and brighter bokeh shapes are hard to get noise free since the bokeh sample distribution might be uneven on some lenses, especially in animations, so keeping it as a subtle effect is recommended."

                            Have you experienced something similar?

                            Comment


                            • #44
                              Originally posted by bardo View Post

                              About increased rendertimes, the author of the addon for Blender reported this in its documentation page:

                              "From my experience tracing the lens seems to add a constant amount of extra render time per sample. On simple scenes the render time will be quite slow compared to the standard camera, since the extra time tracing the lens might be greater than the time it takes to trace the scene. On larger scenes with thousands of objects the slowest part will be traversing the scene, so the performance hit will be relative small. When doing animations you will in general get more noise with Lens Sim cameras, so the render might require more samples to get the same results as the standard camera. If I should take a guess I think a render time multiplier of 1.2-3.0 is realistic, but it is hard to say due to the amount of render factors we have to consider. Additionally, bigger and brighter bokeh shapes are hard to get noise free since the bokeh sample distribution might be uneven on some lenses, especially in animations, so keeping it as a subtle effect is recommended."

                              Have you experienced something similar?
                              you left out important parts, though:
                              Click image for larger version  Name:	image.png Views:	0 Size:	157.3 KB ID:	1221732
                              Further, not all noise is equally expensive to clean, so providing for general metrics blindly is impossible.

                              Assume it will seriously pull the handbrake on your rendertimes, and that you will have to resort to tricks and/or workarounds if you plan on producing with it rather than to test.
                              In other words, unless you're cool with a few times the rendertime of current DoF, you can safely ignore the tech (like most production renderers' cameras do.).​

                              On the samples page, notice how the stuff that renders slightly slower is terminally simple for lighting and shading, whereas the moment complex shading is introduced (the old man, and SSS), rendertimes triple.
                              If the complex stuff is out of focus and producing Bokehs, then things may well get much worse, even with highly optimised code.

                              Click image for larger version

Name:	image.png
Views:	87
Size:	105.6 KB
ID:	1221733
                              Last edited by ^Lele^; 03-12-2024, 07:36 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


                              • #45
                                fetch (1920×960)

                                it wouldn't be that slow in VRay. this was few years ago, rendered on 3090. RTX was quite a bit faster back then with lenses. if you setup things to get effects you need (using tools available in VRay like lens files, bokeh occlusion etc) and don't render through 5 refractive elements those looks are totally feasible in a timely manner.​
                                Marcin Piotrowski
                                youtube

                                Comment

                                Working...
                                X