Unfortunately, no information on the image used in this example (dimensions, image pre-processing , not to mention the actual file) is provided to the user. Applying the example code to an arbitrary rectangular image results in an incorrect results, as if the texture image was wrapped multiple times around the sphere.
I'm thinking that the input file used in the example was probably applied some sort of transform before being fed to vtk. I tried to use the SetScale method in vtkTexturedSphere, to no avail (I honestly don't know which way to look here).
Any advice as to how I could get rid of the wrapping discrepancies when I'm using a rectangular image such as this one ?
I'm surprised that no one noticed this bug. Looks like the regression
baseline images were adjusted to match the bug. That developer has
been admonished by me and if he does this again, I will personally
revoke his check in privileges.
Rather than embarrass him on this list, you will see his name in the
git commit message.