-
Hello, Sorry for the many questions, this topic is new to me. I would like to sample my own rays, and use these rays with the PTracer Integrator, and then record their paths. This is just to help visualize a few rays and how they travel through my scene setup. Is that possible without making my own integrator? The integrator examples I found written in python usually start from a sensor, but I was searching for something like a PTracer where rays are emitted from some location. I would also like to calculate how many rays hit a particular spot on a mesh object to say that the more rays hit that same spot, the better it is, to guide an optimization problem. Many thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
This is not possible out-of-the box. You would need to write your own integrator or at least replicate the main loop of the
If you're only working with meshes, the |
Beta Was this translation helpful? Give feedback.
This is not possible out-of-the box. You would need to write your own integrator or at least replicate the main loop of the
ptracer
'ssample
method in a script.If you're only working with meshes, the
SurfaceInteraction3f
object (resulting of a ray-shape intersection) holds a pointer to the shape. If you need something more precise you can use theuv
coordinates (assuming your object has a UV-ma…