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.
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:
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.
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.
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”
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