Trying to figure out how to take a high-resolution image and wrap it into a circle has been a challenge. It's like bending a steel bar until it forms a perfect circle with both ends touching.
I've been grappling with threejs for the past 8 hours, attempting to apply the image as a texture on a circle geometry. However, I'm stuck on how to apply the texture to a long mesh and then properly warp that mesh. The transformation doesn't need to be animated, but we essentially have a 360 panoramic image that needs to be "flattened" into a top-down view.
Instead of sharing my code (since it's not drastically different), I've been experimenting with this tutorial:
At this point, I believe I grasp the general concept.
I've also tried using just canvas to divide the image into strips and warp each strip individually, but this method was incredibly slow and I couldn't get it to function properly either!
Any help or suggestions would be greatly appreciated.