~wahn/rs-pbrt#3: 
[parse_blend_file] Glass materials for Blender 3.0

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
Status
RESOLVED FIXED
Submitter
~wahn
Assigned to
Submitted
4 months ago
Updated
4 months ago
Labels
task

~wahn 4 months ago

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.

~wahn 4 months ago

Blender 2.79 stored the index of refraction (ior) in a Material.ang value, 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;"

~wahn REPORTED FIXED 4 months ago

Jan Walter referenced this ticket in commit 6c370b0.

~wahn 4 months ago

Jan Walter referenced this ticket in commit 6c370b0.

Register here or Log in to comment, or comment via email.