Repository navigation
Original Picture #14
|
Hello, |
Replies: 2 comments
|
Hello! In example1.py this will be: (I just remplaced line 42) This is the graymap the script output: Obtaining the nearest object and the distance that the rays launched from each pixel intersect is the first step that the raytracer does. Then we proceed to obtain the information about the material of the intersecting object, and in what direction intersected to colour the pixel, using |
|
Thank you so much, that was helpful. |

Hello!
If you replace
Sc.render()bySc.get_distances()in any of the examples you'll avoid almost all rendering algorithm and you'll get a greymap where the darker pixels indicates that the object is nearer from the camera.In example1.py this will be: (I just remplaced line 42)