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.
    • soloS Offline
      solo
      last edited by

      Can you post the diffuse map also?

      http://www.solos-art.com

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

      1 Reply Last reply Reply Quote 0
      • Z Offline
        zeeshan
        last edited by

        here is the complete material.

        [attachment=0:exp2xs33]<!-- ia0 -->material.zip<!-- ia0 -->[/attachment:exp2xs33]

        1 Reply Last reply Reply Quote 0
        • Z Offline
          zeeshan
          last edited by

          material attached !


          material.zip

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

            Okay, Firstly I'm not an authority with Vray as I'm still learning and only have about three weeks worth of knowledge, so all you vray guru's feel free to chime in.

            What I think is wrong....

            Firstly your 'bump' map is just that, it's a bump only and it cannot work as a displacement map for this texture as it's very noisy and will create mini peaks if used in the displacement slot, you need to make a cleaner displacement map that is free of all the noise and only highlighting the low points in this case the areas between the brick tiles.
            The bump map can still be used at a multiplier value of around 1 or 2, the new displacement map can have a value of 3 to 8.

            http://www.solos-art.com

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

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

              Here is a quick idea..

              I made a flat square, added a sky image (any texture would work as this is about displacement) I then went into my material editor and added a displacement map in the displacement option, gave a value of 6 in the multiplier and got this result. No reflection or bump just diffuse and displacement.

              The scene sky image on flat surface.

              http://img70.imageshack.us/img70/9285/tiledisp.jpg

              The displacement map:

              http://img165.imageshack.us/img165/6376/16tileb.jpg

              the result:

              http://img187.imageshack.us/img187/4594/dissky.jpg

              http://www.solos-art.com

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

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

                Another example, a straight red color with this as a displacement map:


                http://img70.imageshack.us/img70/9606/reddisp.jpg

                results in this:


                http://img11.imageshack.us/img11/9749/testdisplace.jpg

                Click here to access displacemnet settings:

                http://img408.imageshack.us/img408/5498/41055383.jpg

                And here to add displacement map:

                http://img408.imageshack.us/img408/5582/26981047.jpg

                You can also select invert to reverse the displacemnt map to give you this result:


                http://img11.imageshack.us/img11/2361/disp1.jpg

                http://www.solos-art.com

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

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

                  I made a very rough displacement map for your above texture, it needs no UV adjustments just slot it in.


                  http://img408.imageshack.us/img408/2474/brickpaversmodulardisp.jpg

                  here is a quick idea of how it will work, you can add glossiness and bump if you like, this is just an idea.


                  http://img519.imageshack.us/img519/514/brickdispt.jpg

                  http://www.solos-art.com

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

                  1 Reply Last reply Reply Quote 0
                  • Z Offline
                    zeeshan
                    last edited by

                    And As usual !
                    Cant thank you enough !!!!!!
                    Now i am crystal clear!
                    thanks for all the effort. thank you so much solo.

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

                      FYI: Displaced geometry needs to be isolated. If it's connected to any geometry with different material it won't displace.

                      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
                        sepo
                        last edited by

                        Are you saying either displaced geometry needs to be grouped prior displacement or adjacent gemetry needs to be grouped.

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

                          Any geometry that you require to be displaced in render must be seperated from touching geometry, you need only make one a group, does not matter which.

                          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
                            sepo
                            last edited by

                            Thanks Solo.

                            1 Reply Last reply Reply Quote 0
                            • stefanqS Offline
                              stefanq
                              last edited by

                              Well done Pete! I call that "biebel's technique". I mean, cleaning the bump map, with clear separations between white and black.

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

                                How Vray Sketchup calculates Displacement Value. found from vnamese forum
                                (using pixel unit against unit value)

                                Here are some dispalcement Maps (400x 400 pixels)

                                http://i156.photobucket.com/albums/t24/chicken_wook/Untitled-1-3.jpg

                                SU planes (in mm) to be used for Displacement

                                http://i156.photobucket.com/albums/t24/chicken_wook/1-grid.jpg

                                1 pixel is equivalent to 2 mm. next picture. displacement map has been applied to the grid.

                                http://i156.photobucket.com/albums/t24/chicken_wook/2-map.jpg

                                dis = 1 :

                                http://i156.photobucket.com/albums/t24/chicken_wook/3-dis1.jpg

                                dis = 10

                                http://i156.photobucket.com/albums/t24/chicken_wook/4-dis10.jpg

                                dis = 18

                                http://i156.photobucket.com/albums/t24/chicken_wook/5-dis18.jpg

                                Conclusion= 1 unit (black) is equal to 1 pixel displacement of the map.

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

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

                                  @unknownuser said:

                                  The Amount value may possibly be the most important value within the rollout, as this value will
                                  determine the scale of all displacement. The Amount value is the number of scene units of an
                                  object with the texture multiplier set to 1.
                                  This means that one could adjust the affect of
                                  displacement through either the Amount value or the texture multiplier, but because the Amount
                                  value affects all displacement, it is recommended that it be left constant and the texture
                                  multiplier be used to adjust the displacement of an individual material.

                                  From this I'd expect that if my scene units where millimeters then a multiplier of 100 would give me a displacement of 100mm.
                                  However, that's not what happens.

                                  Attached is an example. The cube us 1000x1000x1000mm. If the manual was true I should have to set the multiplier to 1000. But that makes it way too big. V-Ray uses inches instead. As with the Override Focal Length property and the mapping units when you don't have SU UV mapping.
                                  So to get 1000mm displacement: 1000 / 25.4 = 39.37
                                  Result is the attached image.

                                  Damien has previously mentioned that V-Ray uses the SU scene units. But I don't see that from my experience. If anything, it might be using SU's internal unit which is always in inches.


                                  V-Ray Displacement.png

                                  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

                                    hi thomthom, thanks to that. i think i need to see now between the units. i remember also last time that you share how SU map the UV in inches, therefore i have resized my maps into 4X4 inches or 2x2 inches and it really works. as for the displace the graph was measured in pixel against cm graph so its a kinda based on the visual result and the pure black color has that ratio, the rest are not and these depends on the gradient from white to black. i myself still lokkin on the mapping issue and hope you could further shed some lights here to how displacemnent works. but the UV i beleive vray is using its own 1x1 inch unit.

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

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

                                      @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?

                                      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:

                                        @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
                                            • 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