When rendering --pixelstats with an --outfile option, pixelstat images filenames seem to be over-sanitized.
Example: rendering to a destination subfolder
~/pbrt/build/pbrt ../pbrt-v4-scenes/bmw-m6/bmw-m6.pbrt --pixelstats --spp 4 --outfile bmw/bmw-m6-spp4.exr
correctly renders the output image to a bmw-m6-spp4.exr file in the subdirectory bmw. However, the pixelstats images are rendered in the current directory under the name bmw_bmw-m6-spp4-[pixelstat name].exr
It gets even worse if the destination file name starts with ./:
~/pbrt/build/pbrt ../pbrt-v4-scenes/bmw-m6/bmw-m6.pbrt --pixelstats --spp 4 --outfile ./bmw/bmw-m6-spp4.exr
produces a (hidden) stat image named ._bmw_bmw-m6-spp4-[pixelstat name].exr in the current directory
Also, a pixelstat named with a string containing a space character lead to an output file between quotes, eg. a "dummy name" pixel stat is rendered in a 'bmw-m6-spp4-dummy name.exr' file
When rendering --pixelstats with an --outfile option, pixelstat images filenames seem to be over-sanitized.
Example: rendering to a destination subfolder
~/pbrt/build/pbrt ../pbrt-v4-scenes/bmw-m6/bmw-m6.pbrt --pixelstats --spp 4 --outfile bmw/bmw-m6-spp4.exr
correctly renders the output image to abmw-m6-spp4.exr
file in the subdirectorybmw
. However, the pixelstats images are rendered in the current directory under the namebmw_bmw-m6-spp4-[pixelstat name].exr
It gets even worse if the destination file name starts with
./
:~/pbrt/build/pbrt ../pbrt-v4-scenes/bmw-m6/bmw-m6.pbrt --pixelstats --spp 4 --outfile ./bmw/bmw-m6-spp4.exr
produces a (hidden) stat image named._bmw_bmw-m6-spp4-[pixelstat name].exr
in the current directoryAlso, a pixelstat named with a string containing a space character lead to an output file between quotes, eg. a "dummy name" pixel stat is rendered in a
'bmw-m6-spp4-dummy name.exr'
file