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

Depth maps with Vray?

Scheduled Pinned Locked Moved V-Ray
renderpluginsextensions
15 Posts 6 Posters 3.4k Views
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
    Stinkie
    last edited by 5 Oct 2009, 20:01

    Any of you geniuses know how to render a usable depth map with Vray?

    1 Reply Last reply Reply Quote 0
    • S Offline
      solo
      last edited by 5 Oct 2009, 20:26

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

      Post editing?

      http://www.solos-art.com

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

      1 Reply Last reply Reply Quote 0
      • T Offline
        thomthom
        last edited by 5 Oct 2009, 20:30

        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.

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

        1 Reply Last reply Reply Quote 0
        • E Offline
          Ecuadorian
          last edited by 5 Oct 2009, 20:39

          @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
          • S Offline
            Stinkie
            last edited by 5 Oct 2009, 20:43

            @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
            • S Offline
              solo
              last edited by 5 Oct 2009, 20:45

              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
              • S Offline
                Stinkie
                last edited by 5 Oct 2009, 20:53

                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 5 Oct 2009, 21:21

                  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
                  • S Offline
                    solo
                    last edited by 5 Oct 2009, 21:22

                    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
                    • T Offline
                      thomthom
                      last edited by 5 Oct 2009, 21:38

                      @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
                      • T Offline
                        thomthom
                        last edited by 5 Oct 2009, 21:50

                        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
                        • S Offline
                          Stinkie
                          last edited by 6 Oct 2009, 07:19

                          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
                          • S Offline
                            Stinkie
                            last edited by 7 Oct 2009, 08:15

                            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 7 Oct 2009, 08:49

                              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 7 Oct 2009, 09:39

                                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
                                1 / 1
                                • First post
                                  1/15
                                  Last post
                                Buy SketchPlus
                                Buy SUbD
                                Buy WrapR
                                Buy eBook
                                Buy Modelur
                                Buy Vertex Tools
                                Buy SketchCuisine
                                Buy FormFonts

                                Advertisement