Sample ray multiple times #474
-
Is there any way to cast multiple rays from a camera/sensor in 1 function call? Or at least do it efficiently? I am referring to |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi, The argument |
Beta Was this translation helpful? Give feedback.
-
That worked, thank you! |
Beta Was this translation helpful? Give feedback.
Hi,
The argument
Float
/Point2f
are vectors, so all Mitsuba functions are naturally vectorized.We can get a vector of
Point2f sample
withmi.Point2f(np.random.rand(1000, 2))
for debug purpose.In practice we get them from
sampler.next_2d()
with initializationsampler.seed(seed, wavefront_size)
. Examples can be found in src/python/python/ad/integrators/common.py