Skip to content
Discussion options

You must be logged in to vote

In the best of my knowledge, most of research-oriented physically based ray tracing systems including Mitsuba 3 do not support such feature, since such shadow catcher objects cannot be physically realizable.
However, there can be an ad-hoc solution to achieve that, while it would not be simple.

My Ad-hoc Solution

Prepare your scene

import numpy as np
import matplotlib.pyplot as plt
import mitsuba as mi
mi.set_variant('cuda_ad_rgb', 'llvm_ad_rgb')
print(f"{mi.__version__ = }") # mi.__version__ = '3.5.2'

def get_scene_dict() -> dict:
    scene_dict = mi.cornell_box()
    for key in ['red', 'green', 'floor', 'ceiling', 'green-wall', 'red-wall']:
        scene_dict.pop(key)
    scene_dict['l…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@StarsTesla
Comment options

@merlinND
Comment options

Answer selected by StarsTesla
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants