Given 2 breps/surfaces I need to reconstruct the displacement image that was used. One is the non-displace geometry and the other the displaced geometry.
I have no idea how to approach this, so any advice would be appreciated.
As example i added a gh with a clean sphere and one with displaced texture of Einstein. The question is: how to reconstruct the original image by the local vertex difference between the 2 objects
Making a good mesh was first step. Not refined.
I pulled the vertices to main sphere and remapped distance to color gradient. It looks good, although not sure how pixels and vertices are actually mapped (color pixel = mesh face + 1)
Now question is how to get from vertex color to flat mesh and then image. I think BitmapPlus has some component. I will try tomorrow
aspect ratio of the image, we’ll never know for sure
color range: we’ll never know for sure here I just assumed the closest Vertexes to the Brep are pure black and the farthest Vertexes from the Brep are pure white
one thing I would for sure leverage is the incredible power of UV + Reparametrize, by which you can easily translate from the surface of the sphere to a planar surface: with Pull Points you lose that possibility
in order to get a non-invalid mesh, I guess a solution might be to have a non fully-closed mesh… that would allow to deconstruct + construct using vertex colors and not have faces that would connect top+bottom and left+right the Pac-man way?