Skip to content
Discussion options

You must be logged in to vote

Hi @a-3wais

Here's an example of the batch sensor:

sensor_description = {
    'type': 'batch',
}

for idx, origin in enumerate(points):
    sensor_description[f"persp_{idx}"] = {
        'type': 'perspective',
        'fov': 45,
        'to_world': transform_for_point(origin),
        'film': (...),
    }

sensor = mi.load_dict(sensor_description)
img = mi.render(scene, spp=64, sensor=sensor)

This might shave off some runtime, namely the tracing/jiting of the render function. However, you will still need to split the output images (the batch sensor stitches the different sensors together). There might be some performance trade-off here.

A direct integrator is your best option for your set…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by a-3wais
Comment options

You must be logged in to vote
3 replies
@njroussel
Comment options

@Jackson334-prog
Comment options

@njroussel
Comment options

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