Closed sapo17 closed 1 year ago
Current fix: material-optimizer requires that the loaded mitsuba file contains the following parameters:
resx
Refers to the width of the film (e.g. 512
)resy
: Refers to the height of the film (e.g. 512
)integrator
: Refers to the integrator of the scene (e.g. path
)
mi.load_dict()
throws an exception (i.e. causes material-optimizer to crash) if the loaded scene file does not contain the given parameter inmi_load_dict()
. For example:mi.load_dict("scene.xml", resx, resy)
: In this case if the scene.xml file does not define theresx
andresy
variables, mitsuba throws an XML error.Another example:
mi.load_dict("scene.xml", resolution)
: