Generally, masks are created and perspective adjusted so the projection falls only on the area where the image will appear and one or more projectors are used to paint the image onto the surface. There are some amazing productions of video mapping onto buildings on YouTube etc.