Skip to content

Dash vs Underscore Mexximp Confusion #11

Description

@tlian7

Hi @benjamin-heasly ,

I was trying the new versions of the ExampleScenes and ran into an issue with one scene, specifically rtbMakeSponzaAtrium. Although it was rendering, the textures weren't being read correctly by PBRT. I figured it might have to do with exr file issues, so I re-imported the scene with JPG textures so the imagemagicImage could do the conversion instead. I figured this would be more consistent in the long run anyway.

Anyway it was during this conversion that I discovered a bug. In the scene folder (with the OBJ file) there is a texture called

01_St_kp-bump.jpg

In the MTL file, this image texture is also referred to as:

map_Bump 01_St_kp-bump.jpg

During the mexximp conversion, I get an error:

docker run --rm -u 254876:254876 -v 
"/home/tlian/GitRepos/RenderToolbox4/ExampleScenes/IsetbioExamples/SponzaAtrium/Data":"/home/tlian/GitRepos/RenderToolbox4/ExampleScenes/IsetbioExamples/SponzaAtrium/Data" -v "/home/tlian/GitRepos/RenderToolbox4/ExampleScenes/IsetbioExamples/SponzaAtrium/Data":"/home/tlian/GitRepos/RenderToolbox4/ExampleScenes/IsetbioExamples/SponzaAtrium/Data" -w "/home/tlian/GitRepos/RenderToolbox4/ExampleScenes/IsetbioExamples/SponzaAtrium/Data" hblasins/imagemagic-docker convert "/home/tlian/GitRepos/RenderToolbox4/ExampleScenes/IsetbioExamples/SponzaAtrium/Data/01_St_kp_bump.jpg"  "/home/tlian/GitRepos/RenderToolbox4/ExampleScenes/IsetbioExamples/SponzaAtrium/Data/01_St_kp_bump.exr"
Error using mexximpConvertTools: convert operation failed: "convert.im6: unable to open image `/home/tlian/GitRepos/RenderToolbox4/ExampleScenes/IsetbioExamples/SponzaAtrium/Data/01_St_kp_bump.jpg': No such file or directory @ error/blob.c/OpenBlob/2641.
convert.im6: no images defined `/home/tlian/GitRepos/RenderToolbox4/ExampleScenes/IsetbioExamples/SponzaAtrium/Data/01_St_kp_bump.exr' @ error/convert.c/ConvertImageCommand/3044.

Note specifically that it's having trouble finding a file called:
/01_St_kp_bump.jpg'

It would seem that somewhere during the conversion process, the dash was turned into an underscore, causing the textures to be unrecognized. Was there a reason for this, and is there an easy fix or should we change all our texture file names to not include dashes?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions