pbrt-v4 icon indicating copy to clipboard operation
pbrt-v4 copied to clipboard

using --pixelstats in conjunction with --outfile do not work as expected

Open fvandw opened this issue 1 year ago • 1 comments

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

fvandw avatar Feb 16 '24 09:02 fvandw

I found this issue here too. Try to investigating a bit..

pbrt4bounty avatar Oct 15 '24 12:10 pbrt4bounty

Thanks for reporting this! Should be fixed now.

mmp avatar Jan 30 '25 17:01 mmp