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

    [Example] V-Ray Displacement

    Scheduled Pinned Locked Moved V-Ray
    renderpluginsextensions
    54 Posts 27 Posters 172.6k Views 27 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.
    • thomthomT Offline
      thomthom
      last edited by

      In response to some general displacement questions, here is a sample displacement test rendered in VfSU 1.48.83.

      Notes on displacement in VfSU

      1. Always isolate the geometry you want to displace. If any displaced mesh connects to other mesh with different materials it won't work.

      2. Displacement takes lots of memory. You can quickly run out of memory with this on. The larger the face your displace, the more it needs to keep in memory while it processes that face. Avoid large faces and sub-divide if necessary.

      3. Displacements increases rendering times. Don't use it unless you actually see a big enough difference. Quite possibly a bumpmap will do the job instead.

      Example
      test render.png

      Note that I set the bitmap filter to 0 for these kind of displacement to avoid blurring of the texture and as a result soft transitions. For this kind of displacement you want a hard edge - so remove all filtering.

      For more reading on displacement in VfSU: http://forums.sketchucation.com/viewtopic.php?f=322&t=18202&start=15
      Note: In 1.48.66+ you do not need to set an inverted gamma for the displacement maps in order to render them linear.
      Here is the same scene from: http://forums.sketchucation.com/viewtopic.php?f=322&t=18202&start=15#p148769

      Linear Displace.png

      Also be aware that JPEG artefacts can cause regularities in your displacement.

      Here is a render with a displacement texture that suffer from JPEG artefacts:
      Compressed Texture

      Because the texture consist of clean geometric lines, the lossy compression filters becomes more visible. Next example is the same texture, just with lossless compression:
      Uncompressed Texture


      displace.skp


      bump.png

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

      1 Reply Last reply Reply Quote 0
      • A Offline
        Aidus
        last edited by

        I need such result in maxwell ๐Ÿ˜„
        Try to render some grass on big area with lots of triangles using this map:
        Disp
        Diff

        CPU: Intel Core i7 Extreme Edition 965
        RAM: OCZ Gold DDR3 1600MHz 12Gb
        Video: Asus Radeon HD4870 X2 2Gb
        Mobo: Asus P6T Deluxe 1366 Intel X58

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

          grass01.png

          Here's a quick test.

          I am not a fan of displaced grass.

          • It does not look real - looks like spikes. Especially when the displacement is overdone. If reduced it's usually so subtle that displacement is not needed.
          • You need to the UV coordinates 100% right to avoid gaps when displacing irregular geometry this this sample.
          • It slow!
          • It chews up memory like a cookie monster at the cookie factory. Bad thing for VfSU that is locked inside SU's 32bit system.
          • Adding grass in post is quicker, more reliable and yields better results.

          Grass.skp

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

          1 Reply Last reply Reply Quote 0
          • kaluK Offline
            kalu
            last edited by

            Hi:

            I am in trouble to make this works, I try to make a siding for a project and I can't make the displacement work, any way that someone attach all the modifications that I need also the correct settings, I use the latest Vray just purchased and I have no good feedback from Asgvis, still waiting for the forum and i have a deadline, any help please will be really appreciated...

            Kalu! ๐Ÿ˜


            siding02.skp


            siding_displ.jpg


            displacement map

            THE ONLY DIFFERENCE BETWEEN FICTION AND REALITY IS WHEN FICTION HAS TO BE CREDIBLE

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

              @kalu said:

              Hi:

              I am in trouble to make this works, I try to make a siding for a project and I can't make the displacement work, any way that someone attach all the modifications that I need also the correct settings, I use the latest Vray just purchased and I have no good feedback from Asgvis, still waiting for the forum and i have a deadline, any help please will be really appreciated...

              Kalu! ๐Ÿ˜

              1. First rule of displacement in VfSU. Isolate the geometry with the material you want to displace. In your example that means selecting the wall faces and grouping them.
              2. You had set the displacement mapping type to UVWGenObject - but in 99.9% of the cases you want to leave it to UVWGenChannel which means it uses the SU UV mapping.

              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

                The only thing you need to do to displace the walls is group the walls so they do not connect to any other geometry with different material and set the mapping type for your displacement map to UVQGenChannel.

                You might want to adjust the Edge Length to increase quality, but that depends solely on the view you render from.


                displace.png

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

                1 Reply Last reply Reply Quote 0
                • kaluK Offline
                  kalu
                  last edited by

                  @thomthom said:

                  @kalu said:

                  Hi:

                  I am in trouble to make this works, I try to make a siding for a project and I can't make the displacement work, any way that someone attach all the modifications that I need also the correct settings, I use the latest Vray just purchased and I have no good feedback from Asgvis, still waiting for the forum and i have a deadline, any help please will be really appreciated...

                  Kalu! ๐Ÿ˜

                  1. First rule of displacement in VfSU. Isolate the geometry with the material you want to displace. In your example that means selecting the wall faces and grouping them.
                  2. You had set the displacement mapping type to UVWGenObject - but in 99.9% of the cases you want to leave it to UVWGenChannel which means it uses the SU UV mapping.

                  Hi thomas, can you be a little more specific with the settings I am new in the VRAY world and I spend 8-10 hours a day learning and if you can be more step by step I am very happy...I will try the changes for now but I hope you can explain a little mroe in detail. Again, thank you so much for your time...

                  Kalu!


                  this are my settings


                  this are the rest of the settings what I should adjust to look like real siding?

                  THE ONLY DIFFERENCE BETWEEN FICTION AND REALITY IS WHEN FICTION HAS TO BE CREDIBLE

                  1 Reply Last reply Reply Quote 0
                  • V Offline
                    valkama
                    last edited by

                    Thanks Thomthom for the excellent advice. Very helpful!

                    1 Reply Last reply Reply Quote 0
                    • fuzzionF Offline
                      fuzzion
                      last edited by

                      Do Bumpmaps in vfsu take up just as much memory โ“

                      "Only the dead have seen the end of war" - Plato

                      1 Reply Last reply Reply Quote 0
                      • EarthMoverE Offline
                        EarthMover
                        last edited by

                        Josh,

                        No. Bump maps are processed as normal light bounce calculations. While displacement creates additional geometry. This additional geometry is loaded and unloaded from memory during rendering. Depending on the intensity of the remaining calculations, sometimes the displacement will over tax your ram. The larger the displaced faced, the more is loaded into memory before it is unloaded. By subdividing, Vray can load and unload smaller amounts into memory, saving the overall memory consumption.

                        To test, open your task manager and view the ram usage during rendering, using first bump, and then displacement.

                        3D Artist at Clearstory 3D Imaging
                        Guide Tool at Winning With Sketchup
                        Content Creator at Skapeup

                        1 Reply Last reply Reply Quote 0
                        • A Offline
                          AcesHigh
                          last edited by

                          @thomthom said:

                          [attachment=0:2mhtdcot]<!-- ia0 -->grass01.png<!-- ia0 -->[/attachment:2mhtdcot]

                          Here's a quick test.

                          I am not a fan of displaced grass.

                          • It does not look real - looks like spikes. Especially when the displacement is overdone. If reduced it's usually so subtle that displacement is not needed.
                          • You need to the UV coordinates 100% right to avoid gaps when displacing irregular geometry this this sample.
                          • It slow!
                          • It chews up memory like a cookie monster at the cookie factory. Bad thing for VfSU that is locked inside SU's 32bit system.
                          • Adding grass in post is quicker, more reliable and yields better results.

                          how do you add the correct shadows, to post processed grass?

                          how do you make the post processed grass looks real (3d) when in contact with other surfaces. I mean... post processed grass looks FLAT...

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

                            Use a layer blend mode so you mix the shades of the underlaying layer. Or render out the image in mulitple passes which you can overlay.

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

                            1 Reply Last reply Reply Quote 0
                            • simon le bonS Offline
                              simon le bon
                              last edited by

                              Hi guys,
                              Sorry for disturbing: I don't know nothing about Vray..

                              But I find Displacement incredibly amazing.

                              http://i274.photobucket.com/albums/jj245/Spendauballet/TheaRender/StoneDispMap_handPainted_Ball_2b.jpg

                              http://i274.photobucket.com/albums/jj245/Spendauballet/TheaRender/Khashak-map_ball.jpg

                              http://i274.photobucket.com/albums/jj245/Spendauballet/TheaRender/Khashak-map.jpg

                              http://i274.photobucket.com/albums/jj245/Spendauballet/TheaRender/BibendumBricksWall.jpg
                              ๐Ÿ˜Ž

                              ๐Ÿ˜’ simon

                              1 Reply Last reply Reply Quote 0
                              • pyrolunaP Offline
                                pyroluna
                                last edited by

                                Thanks Thomthom! Very helpful!

                                1 Reply Last reply Reply Quote 0
                                • arail1A Offline
                                  arail1
                                  last edited by

                                  Very frustrated.
                                  I'm trying to learn a bit of Vray before my demo expires, then I'm back to modo until some more $$ comes in.

                                  I can't seem to get displacement to work. Is there a global switch somewhere that I'm overlooking? I've downloaded all of the files in this thread, opened them without changing any settings and I get nothing.

                                  Any ideas of what I'm doing wrong or what I'm not doing?

                                  Thanks


                                  displace3.jpg

                                  1 Reply Last reply Reply Quote 0
                                  • 3 Offline
                                    3deviator
                                    last edited by

                                    @arail1 said:

                                    Very frustrated.
                                    I'm trying to learn a bit of Vray before my demo expires, then I'm back to modo until some more $$ comes in.

                                    I can't seem to get displacement to work. Is there a global switch somewhere that I'm overlooking? I've downloaded all of the files in this thread, opened them without changing any settings and I get nothing.

                                    Any ideas of what I'm doing wrong or what I'm not doing?

                                    Thanks

                                    hello arail1, i dont know if this works for you, recently I play vray displacement on grass. And accidentaly found out this settings for grass displacement. I used vray 1.49.01 demo, and heres my settings.

                                    1. I use the grass textured (attachment no.1) in the difuse layer and the displacement attachment no.2

                                    2. Then in my material editor, at Maps, load the displacement file (attachment no.2) then adjust the U & V equal to 2.0, then check the invert box as shown in picture 7,

                                    3. After that, I adjust the displacement multiplier to 5 and the edge length to 3.0 as shown in pictures also. (picture 4)

                                    4. Then in the V-RAY OPTION. go to Displacement menu then adjust the amount to 2.0 and edge length to 5.0. (see picture 5)

                                    5. finally hit render botton.
                                      I attached also the output of that settings (picture 6), and some other output, i just change the amount of displacement and edge length.

                                    Thats it, hopefully this will help you.
                                    Cheers! ๐Ÿ˜›

                                    Krisnel


                                    grass (difuse)


                                    grass displacement


                                    picture 4


                                    picture 5


                                    picture 6


                                    other output


                                    picture 7

                                    1 Reply Last reply Reply Quote 0
                                    • arail1A Offline
                                      arail1
                                      last edited by

                                      Thanks 3deviator -

                                      I dragged some displacement maps I use in modo into my SketchUp scene and now I have displacement. I assumed downloading some of the files from this thread and hitting Render without doing anything else would work but for some reason it doesn't, not sure why. But whatever, I seem to have overcome the problem.

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

                                        Make sure you group the faces with the displaced materials.

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

                                        1 Reply Last reply Reply Quote 0
                                        • M Offline
                                          mingjae
                                          last edited by

                                          hi thomthom,

                                          I want to ask the basic pattern of displacement map,
                                          is it extrude the black colour and nothing in white?

                                          what about if i use a coloured jpg image as displace maps
                                          eq, using the same jpeg image in diffuse and displacement maps
                                          is it displaced?

                                          i already try bump maps , make more realistic in texturing, but not more realistic if i render the corner of a room with applied 30x30 tiles on it (look realistic on the texture but not at the edge/ corner at the tile)

                                          maybe, can u share step by step the setting of doing this rendering corner of a room with 30x30 tile? thx

                                          SU 8+vray 1.49.01

                                          1 Reply Last reply Reply Quote 0
                                          • V Offline
                                            valerostudio
                                            last edited by

                                            I remember reading something about a 'trick' to get displacement to calc faster on a final rendering. Does anyone remember the process. It had something to do with running the rendering with displacement off and then saving the IR and LC maps and then re-running the rendering? It was supposed to increase render times dramatically.

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

                                            Advertisement