I have a question about Faking 3d in HTML5/Canvas/Javascript…
Basically, I have a 2d image drawn on a <canvas> using drawImage().
What I would like to do, is draw the image, then displace the texture on the sphere to look… sphere-like…
see image below for clarity:

Any ideas?
I have googled myself to near-death over this, also it cannot be WebGL as it has to work on Mobiles… is there a way to do this?
You can check a working prototype here: http://jsbin.com/ipaliq/edit
I bet there’s ton’s of room for optimization and better/faster algorithms, but I hope this proof of concepts will point you in the right direction.
The basic algorithm goes through each pixel of the original image and calculates its new position if it was subject to an spherical deformation.
Here’s the result:
Code:
Note
I would advice agains such an intense operation to be handed by the frontend without webGL pixel shaders. Those are very optimized and will be able to take advantage of GPU accelaration.