These aren't 'real' photos, but are instead created entirely on the computer. I make a 3D model, set up digital lighting, then render the scene - during the rendering process, the computer calculates how light would interact with objects in the digital environment I created if that scene was real. My choice of program to do this is Blender. When used in the context of movies/film, some people call this method CGI.