BlenderProc
BlenderProc copied to clipboard
[BUG]: Haven texture rocks_ground_02 fails to load
Other Haven textures load fine, however running:
bproc.api.loader.load_haven_mat(haven_textures_folder, ["rocks_ground_02"])
does not create a new material and does not load the texture, even though it exists.
The reason seems to be that the base color image does not have "_diff_"
in its filename but "_col_"
instead:
Changing line 44 in HavenMaterialLoader.py
to this seems to resolve the issue for me:
if "_diff_" in path or "_col_" in path:
I'm using the BlenderProc master branch and am running Ubuntu 20.04.
Same issue for t_brick_floor_002
which has "_diffuse_"
in the base color image name instead of "_diff_"
.
Additionally to line 44, line 68 would also have to be changed, because "diff"
is substituted there.
Another example: brown_leather
uses "_albedo_"
.
I'll attempt to write a fix to this issue and open a PR.
Hey,
sounds like they added new files and haven't named them all the same. Thanks for catching it.
Best regards, Max