3d sphere transform