There is no one definitive answer to this question. Some possible methods include using software to create a ghost, using a photorealistic 3D model of the ghost, or using a combination of both.