Unable to load a standard mitsuba scene
darthgera123 opened this issue · comments
I am trying to load cornell-box scene from https://benedikt-bitterli.me/resources/
. However, on downloading and passing scene.xml
, i get the following error -
AssertionError Traceback (most recent call last)
<ipython-input-15-421334ad5683> in <module>()
1 # print(os.listdir('.'))
----> 2 pyredner.load_mitsuba('cornell-box/scene.xml')
2 frames
/usr/local/lib/python3.6/dist-packages/pyredner/load_mitsuba.py in load_mitsuba(filename, device)
486 cwd = os.getcwd()
487 os.chdir(os.path.dirname(filename))
--> 488 ret = parse_scene(root, device)
489 os.chdir(cwd)
490 return ret
/usr/local/lib/python3.6/dist-packages/pyredner/load_mitsuba.py in parse_scene(node, device)
426 for child in node:
427 if child.tag == 'sensor':
--> 428 cam = parse_camera(child)
429 elif child.tag == 'bsdf':
430 node_id, material = parse_material(child, device)
/usr/local/lib/python3.6/dist-packages/pyredner/load_mitsuba.py in parse_camera(node)
89 if not has_lookat:
90 print('Unsupported Mitsuba scene format: please use a look at transform')
---> 91 assert(False)
92 if child.tag == 'film':
93 for grandchild in child:
i didn't bother to parse arbitrary camera transform -- it shouldn't be too difficult to add this, contributions are welcome