Skip to content
Discussion options

You must be logged in to vote

I would like to sample my own rays, and use these rays with the PTracer Integrator, and then record their paths.

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's sample method in a script.

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.

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 the uv coordinates (assuming your object has a UV-ma…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@h-OUS-e
Comment options

@njroussel
Comment options

@h-OUS-e
Comment options

@njroussel
Comment options

@njroussel
Comment options

Answer selected by njroussel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants