sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Depth maps with Vray?

    Scheduled Pinned Locked Moved V-Ray
    renderpluginsextensions
    15 Posts 6 Posters 3.4k Views 6 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.
    • E Offline
      Ecuadorian
      last edited by

      @thomthom said:

      Inches is the internal units of SU.

      Aaaaargh!... Is there any way I can "unread" this? Tell me it isn't so! 😮

      -Miguel Lescano
      Subscribe to my house plans YouTube channel! (30K+ subs)

      1 Reply Last reply Reply Quote 0
      • StinkieS Offline
        Stinkie
        last edited by

        @solo said:

        Tom, what exactly do you need the depth map for?

        Post editing?

        Yeah ... PP DOF.

        Ecuadorian pointed out to me I could render one with another app, and that's what I've done so far, but ... I'd really like to know. I've been wondering about this ever since I got my Vray license, and I'd like to get rid of that nagging feeling. 😄

        Geeky, I know.

        @thomthom said:

        When you give the far and near values - you always have to give them in inches. Inches is the internal units of SU and VfSU deal with this regardless of your model settings.

        You sure? I remember reading somewhere it should be scene units (according to Damien Alomar).

        1 Reply Last reply Reply Quote 0
        • soloS Offline
          solo
          last edited by

          This may help.

          http://twilightrender.com/phpBB3/viewtopic.php?f=18&t=511

          http://www.solos-art.com

          If you see a toilet in your dreams do not use it.

          1 Reply Last reply Reply Quote 0
          • StinkieS Offline
            Stinkie
            last edited by

            Thanks for that, Pete, but a third-party solution is not what I had in mind. One cannot keep installing software. And certainly not to do things that, in principle, one's rather expensive render engines should be able to do all by themselves. 💚

            1 Reply Last reply Reply Quote 0
            • R Offline
              remus
              last edited by

              I dont know if you can write shaders for vray, but a rather clever chap on the indigo wrote a shader for indigo that basically produces a depth map, might be worth a try or try and wrangle someone else in to trying it.

              http://remusrendering.wordpress.com/

              1 Reply Last reply Reply Quote 0
              • soloS Offline
                solo
                last edited by

                Vray does render depth maps, reflection maps, and even alpha maps.

                http://www.solos-art.com

                If you see a toilet in your dreams do not use it.

                1 Reply Last reply Reply Quote 0
                • thomthomT Offline
                  thomthom
                  last edited by

                  @solo said:

                  Vray does render depth maps, reflection maps, and even alpha maps.

                  And they are found under the VFB Channel section in the Options.

                  @unknownuser said:

                  You sure? I remember reading somewhere it should be scene units (according to Damien Alomar).

                  Yes, 100% sure. I know Damien claimed otherwise previously, but I corrected him on this. I'm guessing he's been using inches when modelling so he didn't notice it.
                  Example: no matter what model unit you have, a displacement map with a multiplier of 10, 100% white will give a 10" displacement.
                  When you use DOF, the override focal distance is only focusing right if you specify the distance in inches.
                  If you apply a bump map to a material with no diffuse texture, plain colour in SU, the bumpmap will be sized to 1"x1" if you have the UV repeat values to the default 1.0

                  Thomas Thomassen — SketchUp Monkey & Coding addict
                  List of my plugins and link to the CookieWare fund

                  1 Reply Last reply Reply Quote 0
                  • thomthomT Offline
                    thomthom
                    last edited by

                    Here's a visual example I poster in another thread: http://forums.sketchucation.com/viewtopic.php?f=322&t=18202&st=0&sk=t&sd=a&start=15#p148737

                    Thomas Thomassen — SketchUp Monkey & Coding addict
                    List of my plugins and link to the CookieWare fund

                    1 Reply Last reply Reply Quote 0
                    • StinkieS Offline
                      Stinkie
                      last edited by

                      Thanks for the info, Thom. Let's see if can get a decent depth map out of Vray today. 😄

                      1 Reply Last reply Reply Quote 0
                      • StinkieS Offline
                        Stinkie
                        last edited by

                        In case anyone's wondering: Thomthom's absolutely right. Inches it is.

                        1 Reply Last reply Reply Quote 0
                        • E Offline
                          Ecuadorian
                          last edited by

                          Nooooo.jpg
                          Google, why didn't you tell me?

                          -Miguel Lescano
                          Subscribe to my house plans YouTube channel! (30K+ subs)

                          1 Reply Last reply Reply Quote 0
                          • K Offline
                            kwistenbiebel
                            last edited by

                            When I need depth in my render I usually add the 'depth map' option in the framebuffer section of the render section and apply it in Photosoup.
                            It might be a bit too dirty for your puristic renders, but it can get the job done quite fast and easy.

                            Rendering real camera DOF is way more tedious (Asgvis should fix that inches bug by the way) and even then you really need to set your QMC values and color mapping values well to get nice grades in the depth. Not easy...

                            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