How can I draw a 3d sphere with texture, like a football ball, using JavaScript?
You should check three.js, a Javascript 3D library.
Here are some basic 3D shapes and a tutorial for applying textures on a sphere in Three.js.
This text was originally published in quora.