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

    Displacement issue in V-ray

    Scheduled Pinned Locked Moved V-Ray
    renderpluginsextensions
    31 Posts 7 Posters 10.1k Views 7 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.
    • N Offline
      nomeradona
      last edited by

      @thomthom said:

      @nomeradona said:

      i myself still lokkin on the mapping issue and hope you could further shed some lights here to how displacemnent works.

      What mapping issue?
      how the displacement maps work in Vray. How the gray scale will be displace. its a kinda small test im doing here. i am setting 11 colors from white to black (9 grays in between from white to black) i have also list down the RGB numbers. I am planning to measure how the displacement behave.

      i just plan base on visual, but i know you have your test in mathematical forms. so if you have some thoughts to shed lights on this, i will appreciate.

      visit my blog: http://www.nomeradona.blogspot.com

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

        Seems to be exponential. Wonder if it's possible to make it linear. Need to experiment. Maybe ask Damien.

        I noted that turning off the filtering of the displacement map made it smoother. When it was on MipMap I got some weird artefacts.


        DisplacementRender.png


        Displacement.skp


        Grayscale.png

        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

          I was wondering if there was any of the other settings that would make V-Ray treat the grayscale values linear instead of exponential. But I've yet to find it.

          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

            hmm.... could it be because I use 24bit images... Wonder if HDRI images will differ in behaviour...

            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

              I was correct in my suspicion.

              When I converted the 8bit/color image to 32bit/color the medium 8bit gray (RGB 128,128,128) did not convert to 32bit medium gray (RGB 0.5, 0.5, 0.5) Instead it came out as RGB 0.216, 0.216, 0.216.

              When I created a new grayscale image. This time in 32bit per channel, going from 0.0 to 1.0 with 0.1 increment I got a steady displacement.


              DisplacementRender32bit.png


              32bit .HDR displacement map

              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

                But I wonder why I got the strange streaks in the displacement. I saw them in the 8bit version before I turned of filtering...

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

                1 Reply Last reply Reply Quote 0
                • N Offline
                  nomeradona
                  last edited by

                  @thomthom said:

                  But I wonder why I got the strange streaks in the displacement. I saw them in the 8bit version before I turned of filtering...
                  i guess that one could not be perfected, that is why blurrying a bit the displacement is a key one. but even you do this streaks will still be there. waht about vray max? any idea.

                  visit my blog: http://www.nomeradona.blogspot.com

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

                    Don't have V-Ray for Max. 😞

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

                    1 Reply Last reply Reply Quote 0
                    • N Offline
                      nomeradona
                      last edited by

                      i made a similar test, and i found out a lot of things how vray behave with the grayscale. its smilar with yours thom thom. i will post later my images..

                      but these are the following facts.

                      1. that the pure white with the multiplier 1 will be displace one inch perpendicular to the face.
                      2. vray works in inches. not centimeters
                      3. if you want to remove artifacts, use non filter and add blur in your displacement map. I found using Normal map seems better. i can prove it yet. but the amount of detail is excellent.
                        see this post http://www.sketchucation.com/forums/scf/viewtopic.php?f=81&t=18336

                      visit my blog: http://www.nomeradona.blogspot.com

                      1 Reply Last reply Reply Quote 0
                      • N Offline
                        nomeradona
                        last edited by

                        ah ok. anyone? let me find also in the Filipino forum.

                        visit my blog: http://www.nomeradona.blogspot.com

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

                          FYI, the reason the 8-bit image has a curve is because the default V-Ray settings is to apply a 2.2 gamma correction.

                          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

                            @thomthom said:

                            FYI, the reason the 8-bit image has a curve is because the default V-Ray settings is to apply a 2.2 gamma correction.

                            The 2.2 correction stems from the General Switches I think. You can override the displacement gamma for that material with the inverse gamma - in the case of 2.2 you would have to enter 0.4545 in order to make the 8-bit displacement linear.

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

                            1 Reply Last reply Reply Quote 0
                            • B Offline
                              bhbarchitects
                              last edited by

                              ThomThom

                              Brilliant piece of info

                              Possible use as disp for roof tiles, if you can calculate the increase in height of the plane?


                              Roof tile disp

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

                              Advertisement