# Camera position camR = 30 camTheta = 1.511 camPhi = 0 # Camera lens properties camFocalLength = 1.5 camSensorShape = (1000, 1500) # (Rows, Columns) camSensorSize = (2, 3) # (Height, Width) # Create the black hole, the camera and the metric with the constants # above blackHole = BlackHole(spin, innerDiskRadius, outerDiskRadius) camera = Camera(camR, camTheta, camPhi, camFocalLength, camSensorShape, camSensorSize) kerr = KerrMetric(camera, blackHole) # Set camera's speed (it needs the kerr metric constants) camera.setSpeed(kerr, blackHole) # Create the raytracer! rayTracer = RayTracer(camera, kerr, blackHole) rayTracer.rayTrace(-170, kernelCalls=1) # Load the textures disk = mimg.imread('../../Res/Textures/adisk.png')[:, :, :3] sphere = mimg.imread('../../Res/Textures/milkyWay.png')[:, :, :3] # Create the image rayTracer.texturedImage(disk.astype(np.float64), sphere.astype(np.float64))