Announcement

Collapse
No announcement yet.

(Resolved) displacement in material

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • (Resolved) displacement in material

    Hello,

    Simple scene (attached) with a grid. I made a linear displace texture with middle grey color and a ramp in it that goes from 0 -1.
    If I render the grid with a displacement shader the whole grid is moving. I expect the grid only to move in areas where the displacement texture has different values than 0.5 right? Changing the texture type of the diesplace map from srgb to linear or so has no effect at all. Is there a mistake in my setup?
    Region in the middle shows the grid without displacement.

    Click image for larger version  Name:	displace_test.JPG Views:	96 Size:	20.4 KB ID:	1088530

    kind regards
    JOn
    Attached Files
    Last edited by Gosho.Genchev; 23-10-2020, 12:01 PM.

  • #2
    Hi Jon3D,

    Have you tried using the Shift value? For having the same amount of displace in both directions you need to use half of the "Amount" value has the Shift inverted. see example:

    Click image for larger version  Name:	displace.JPG Views:	0 Size:	107.0 KB ID:	1088608

    This way a value of 0.5 on your displace texture stays where your geometry originally was.


    Best,
    David.
    Last edited by david.anastacio; 19-10-2020, 10:30 AM.
    David Anastácio // Accenture Song - VFX
    https://www.accenture.com/us-en/serv...visual-effects

    Comment


    • #3
      Hi again, I downloaded your scene, it was just the "shift" missing.

      Click image for larger version

Name:	Screenshot 2020-10-19 at 19.29.17.png
Views:	644
Size:	983.5 KB
ID:	1088614

      Best,
      David.
      David Anastácio // Accenture Song - VFX
      https://www.accenture.com/us-en/serv...visual-effects

      Comment


      • #4
        Hey David,

        Thank you for checking the scene. I did try the shift parameter but in a different scene without luck. In the test scene I missed it to double check. Maybe it was another mistake then in the other scene. I will check again tommorrow. Thanks again for the hint.

        Jon

        Comment


        • #5
          Originally posted by Jon3D View Post
          Hey David,

          Thank you for checking the scene. I did try the shift parameter but in a different scene without luck. In the test scene I missed it to double check. Maybe it was another mistake then in the other scene. I will check again tommorrow. Thanks again for the hint.

          Jon
          All good
          David Anastácio // Accenture Song - VFX
          https://www.accenture.com/us-en/serv...visual-effects

          Comment


          • #6
            Hi Jon3D , in V-Ray 0 is the value where no displacement is applied, if your maps are using 0.5 as such value you could add an V-Ray Color Operations VOP right after ImageFile and set it to difference with 0.5 for color B, this approach will work for all of your displacement shaders no matter what is the displacement value.

            Click image for larger version

Name:	displacement_shift.png
Views:	638
Size:	79.8 KB
ID:	1088939
            Georgy Chakarov | QA
            www.chaosgroup.com
            georgy.chakarov@chaosgroup.com

            Comment


            • #7
              Hi @Georgy,

              That´s good to know. Thank you for the information.

              Comment


              • #8
                I would have bet it will give me positive displacement on both sides of the ramp. Cause the difference should be 0.5 on both sides right?

                Comment


                • #9
                  From my test it is working as expected /the whole displacement is shifted down/, I guess the name is confusing , should be "subtract" instead of "difference"
                  Georgy Chakarov | QA
                  www.chaosgroup.com
                  georgy.chakarov@chaosgroup.com

                  Comment


                  • #10
                    Yes sorry it also works on my side. Should have mentioned that. It was just a nerdy comment since a plain difference operation should give other results. Anyway, neat tip

                    Comment

                    Working...
                    X