I am lost on how to do this correctly...
I have a grey scale texture with 0-255 values for heights of my mesh, but the texture size is 256x256 and the mesh only has 409 vertices. Problem is I don't understand how I can do a one to one ratio here to offset the vertex height to match the texture. How are others going about this? I am assuming you need to sample an area and not use all 256x256 pixels in the displacement texture?
If anyone has code for this I would appreciate it to study from as I am totally lost here.