# plot3D = camera1.slicedShoot(finalTime=-60, slicesNum=10000) # plot3D.plot() # # disk = '../../Data/Textures/patchdisk.png' # sphere = '../../Data/Textures/milkyWay.png' # camera1.sensorShape = (3000, 3000) # texturedImage, _ = camera1.shoot(diskPath=disk, spherePath=sphere) # texturedImage.plot() # # Plot only one geodesic, indexing it with the pixel row,col # plot3D.geodesic(2, 4).plot() # # You can even plot a snapshot, which may be not that interesting, though... # plot3D.snapshot(1).plot() # # # Make a proper photography! camera2.yaw = -0.06 photo, _ = camera2.shoot() photo.plot() # # # Load the textures # disk = '../../Data/Textures/adisk.png' # sphere = '../../Data/Textures/milkyWay.png' # texturedImage, _ = camera2.shoot(diskPath=disk, spherePath=sphere) # texturedImage.plot() # suffix = 0 # # for pitch in np.arange(-np.pi/2, np.pi/2, 0.05): # suffix += 1
# Camera lens properties camFocalLength = 5 camSensorShape = (900, 1600) # (Rows, Columns) camSensorSize = (9, 16) # (Height, Width) # Set black hole spin universe.spin = .999 # Create a camera camera = Camera(camR, camTheta, camPhi, camFocalLength, camSensorShape, camSensorSize) sphere = "../../Data/Textures/milkyWay.png" disk = "../../Data/Textures/adisk.png" suffix = 0 amp = 1 for angle in np.arange(0, np.pi, 0.05): suffix += 1 camera.phi = angle camera.yaw = -angle / 2 camera.r = 45 - 38*(angle / (np.pi)) print(camera.phi, camera.theta) texturedImage, _ = camera.shoot(diskPath=disk, spherePath=sphere) texturedImage.save("../../Documentation/Presentation/gfx/cinema02_" + "%d" % suffix + ".png")