I wanted to understand more how to use a displacement map and how the vertex is positioned based on the map color. If I got ground subdivision: 3, do I need a map of 3x3 pixels or 4x4 pixels? so every pixel value will correspond to 1 vertex.
I made a small PG that is illustrating my bug (to see it uncomment/comment lines 48 and 49).
It looks like there is a small bleed that makes the displacement not aligned like expected. and create displaced mesh artifacts:
And if you can answer me this question:
If I got ground subdivision: 3, do I need a map of 3x3 pixels or 4x4 pixels? So every pixel value will correspond to 1 vertex.
Cause now I got this error and I can’t really tell.
Actually, I see that my wrong mesh is what it should be, but the 3 corners are elevated with the error. So I should have a ground mesh 3by3 and texture 4x4px for that.
But the UV scaling error is still there. And my fix is making it what it should be: