0
$\begingroup$

I have prepared a displacement map using dem images. While rendering, a line border is coming around the border of the map. How do I fix it?

enter image description here

$\endgroup$

1 Answer 1

2
$\begingroup$

The image lookup is set to clip, so any values outside the 0,1 UV range will return 0,0,0 black. But if we sample the colors of the borders of the image, we find that the color at the border is not actually 0 black-- it is about 1/255 gray. This creates a discontinuity at the edges of the UV range which is apparent on your image.

We can fix this just by clamping the texture lookup to a particular high enough range that it will flatten everything-- we'll raise everything below a certain value, up to that value:

enter image description here

I'm doing that with a math/maximum node, which will raise everything below 0.01 to 0.01, erasing that boundary.

I tuned down my rendering settings pretty significantly from what you had in order to troubleshoot, in case you're wondering about the render.

$\endgroup$
1
  • $\begingroup$ Thank you. It worked for me! $\endgroup$ Commented Nov 27, 2021 at 4:58

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .