Source code for pbrt, the renderer described in the third edition of "Physically Based Rendering: From Theory To Implementation", by Matt Pharr, Wenzel Jakob, and Greg Humphreys.
On my Ubuntu Linux 18.04, when I run ob2pbrt on the sponza from Morgan McGuire's Computer Graphics Archive, the pbrt file that is created is filled with backslashes, e.g.
On my Ubuntu Linux 18.04, when I run ob2pbrt on the sponza from Morgan McGuire's Computer Graphics Archive, the pbrt file that is created is filled with backslashes, e.g.
pbrt promptly complains:
It only shows up for Textures definitions in the created pbrt file.
I believe the error comes from obj2pbrt.cpp:874-928, e.g.
this is just copying the file locations directly out of the .mtl file:
You might want to sanitize for backslashes in file locations