Skip to content
Discussion options

You must be logged in to vote

Thanks @njroussel, following the tutorial for rendering managed to get this working. Honestly, I kind of copied the same logic in there, I'm still a bit confused about the vectorization stuff, I'm assuming the sample_inner_loop ends up being called n times (n being the number of rays)

As a reference, this is how this ended up looking (for anyone that may be trying the same)

import sys
import mitsuba as mi
import drjit

mi.set_variant('cuda_ad_rgb')

class AOIntegrator(mi.SamplingIntegrator):
    def __init__(self, props):
        mi.SamplingIntegrator.__init__(self, props)

    def sample(self, scene, sampler, ray, medium, active):
        ao_samples = 1024
        query = scene.ray_inter…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by nachocpol
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