sketchucation logo sketchucation
    • Login
    ๐Ÿค‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    ZDepth Opacity

    Scheduled Pinned Locked Moved V-Ray
    renderpluginsextensions
    10 Posts 2 Posters 1.1k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S Offline
      swissboy
      last edited by

      Hi everyone,

      I use ZDepth for post lensblur in PS, but I've a problem in my scene : a transparent glass is in middle distance. This glass appears close in zdepth channel so all things in background (of the this glass) aren't blurry. Lot of forum are talking about mental ray options for zdepth opacity, but i can't find a solution for vray (or to render by hiding it...).

      Can anyone help me ?
      Thank you ๐Ÿ˜„

      swissboy (I'm a newbie)

      1 Reply Last reply Reply Quote 0
      • andybotA Offline
        andybot
        last edited by

        hey swissboy! Unfortunately, the z depth mask sometimes has issues with reflections and refractions. Can you do zdepth in your render? Maybe you can just render that one area and blend it in to your final render (use a material ID mask to select just that part)

        If it still looks OK in the render, you could take out your refraction layer from your material, I believe transparency is respected with the zdepth mask. Good luck!

        http://charlottesvillearchitecturalrendering.com/

        1 Reply Last reply Reply Quote 0
        • S Offline
          swissboy
          last edited by

          Hi andybot !

          Thank you for you answer, without refraction the glass seems to be a little more transparent on ZDepth channel ๐Ÿ˜„ but I just realise that this technic isn't the best for my case, because now, the reflects on the glass are blurry too ahah !

          Here is my render : http://img15.hostingpics.net/pics/596204testOK.png
          What do you think (as a pro) ?

          Next step, I'll try to render the depth field directly with VRay !
          Best regards,

          swissboy

          1 Reply Last reply Reply Quote 0
          • andybotA Offline
            andybot
            last edited by

            @swissboy said:

            Hi andybot !

            Thank you for you answer, without refraction the glass seems to be a little more transparent on ZDepth channel ๐Ÿ˜„ but I just realise that this technic isn't the best for my case, because now, the reflects on the glass are blurry too ahah !

            Here is my render : http://img15.hostingpics.net/pics/596204testOK.png
            What do you think (as a pro) ?

            Next step, I'll try to render the depth field directly with VRay !
            Best regards,

            swissboy

            True, reflection will be blurred too. You can select the raw reflection channel in your options and add that layer in over your glass to get some sharp reflections, but most likely the simplest solution is to do the DOF in the render. ๐Ÿ˜„

            http://charlottesvillearchitecturalrendering.com/

            1 Reply Last reply Reply Quote 0
            • S Offline
              swissboy
              last edited by

              Hi andybot, thanks for your reply !

              I tried DOF directly with VRay, but I've no result in my scene ๐Ÿ˜ž I created another file to experiment the options : http://img15.hostingpics.net/pics/209127Capture.png

              • Distance to yellow cube is 142''
              • If I force Aperture option to 100 (larger sizes produce more blur) by disabling enabling Physical Camera, the result is the same
              • If I choose 20'000 ๐Ÿ˜ฎ for shutter speed, and 1 for F-number, it's a little (very little) blurry

              What's wrong ? ๐Ÿ˜ข

              1 Reply Last reply Reply Quote 0
              • S Offline
                swissboy
                last edited by

                Up ๐Ÿ˜„

                1 Reply Last reply Reply Quote 0
                • andybotA Offline
                  andybot
                  last edited by

                  Heya! I played with a test scene to figure out some parameters that might work for your scene. I realized that the aperture override in the DOF settings is locked - which is the case when you use physical camera. (If you turn off physical camera - you can set any aperture you want there) Anyway, I found that an extreme value of f0.6 gives a nice dramatic depth of field. The other option to get more extreme DOF is to scale your model down (like to 1/10th) since DOF is based on real-world values.
                  DOF-test2015_0529d_05.jpg


                  DOF-test2015_0529dc.zip

                  http://charlottesvillearchitecturalrendering.com/

                  1 Reply Last reply Reply Quote 0
                  • andybotA Offline
                    andybot
                    last edited by

                    @swissboy said:

                    If I force Aperture option to 100 (larger sizes produce more blur)

                    seems you have it backwards. higher aperture number = greater depth of field = less blurry.

                    an f16 aperture will give you a sharper image than an f2.5 aperture.

                    http://charlottesvillearchitecturalrendering.com/

                    1 Reply Last reply Reply Quote 0
                    • S Offline
                      swissboy
                      last edited by

                      Thanks andybot, I will try it tomorrow.
                      My comment was about aperture option (not f-number) :

                      http://sketchucation.com/forums/download/file.php?mode=view&id=131539&sid=f08f909d09c48f0fa8a9e33ddc816bda

                      I don't understand why the aperture doesn't work like this capture vray.com (is disabled for you and me) :

                      http://www.vray.com/vray_for_sketchup/manual/vray_for_sketchup_manual/depth_of_field/depth_of_field_in_vray_for_sketchup_1.jpg

                      Size of Aperture
                      There is Aperture located at the top of the control panel for Depth of Field under Camera. V-Ray doesn't use the same number unit of F1.4 F2.0 F11 as the normal camera does to control the amount of light that comes into the camera. Instead, it uses the system unit for its size. Smaller numbers have less effect on Depth of Field. Larger numbers will make the object very blurry and takes a longer time to render, especially when calculating the edge of object for Depth of Field effect. So we recommend you start with a smaller number and move your way up if you need a stronger effect. This sceneโ€™s aperture was set to 24. I recommend you try different values and see what results you get.

                      Source : http://www.vray.com/vray_for_sketchup/manual/depth_of_field_in_vray_for_sketchup.shtml


                      aperture.png

                      1 Reply Last reply Reply Quote 0
                      • andybotA Offline
                        andybot
                        last edited by

                        ah, didn't realize the aperture override doesn't mean the same thing as in the physical camera. That aperture number is only available to be adjusted when the physical camera is turned off.

                        Also, I believe that tutorial is for an older version of vray. It used to be that you could use the override with phys camera turned on... several versions ago.

                        http://charlottesvillearchitecturalrendering.com/

                        1 Reply Last reply Reply Quote 0
                        • 1 / 1
                        • First post
                          Last post
                        Buy SketchPlus
                        Buy SUbD
                        Buy WrapR
                        Buy eBook
                        Buy Modelur
                        Buy Vertex Tools
                        Buy SketchCuisine
                        Buy FormFonts

                        Advertisement