Original Picture #14
-
Hello, |
Beta Was this translation helpful? Give feedback.
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 |
Beta Was this translation helpful? Give feedback.
-
Thank you so much, that was helpful. |
Beta Was this translation helpful? Give feedback.
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)