The current version can render the
Conference Room scene, but for a Blender 2.79 scene
parse_blend_file detects the glass materials, whereas for a Blender 3.0 scene it does not.
# glass detected $ ./target/release/examples/parse_blend_file -c xY_cam ~/git/gitlab/rs-pbrt-test-scenes/blend/conference_room_v2_79.blend # glass not detected $ ./target/release/examples/parse_blend_file -c xY_cam ~/git/gitlab/rs-pbrt-test-scenes/blend/conference_room_v3_00.blend
In a first step I fixed the Blender scene(s), so the window glass is a volume (needed for the glass material), instead of a plane, by extruding it. The material had a roughness value, which I did set to zero.
Blender 2.79 stored the index of refraction (ior) in a
Material.angvalue, but that is gone in Blender 3.0:
# Material.ang found $ ./target/release/blend_info -n Material ~/git/gitlab/rs-pbrt-test-scenes/blend/conference_room_v2_79.blend | grep " ang;" float ang; // 4 # no output: Material.ang is missing in Blender 3.0 $ ./target/release/blend_info -n Material ~/git/gitlab/rs-pbrt-test-scenes/blend/conference_room_v3_00.blend | grep " ang;"