mmp / pbrt-v2

Source code for the version of pbrt described in the second edition of "Physically Based Rendering"
http://pbrt.org
990 stars 343 forks source link

PBRT does not handle single-channel EXR textures #32

Closed NextDesign1 closed 10 years ago

NextDesign1 commented 10 years ago

I've been tracking down this bug for the better part of the day. It seems that PBRT cannot handle single-channel EXR images as textures. In my case, it was mapped to a projection light. If you load the single-channel image into Nuke or Photoshop, it displays correctly. If you write a tri-channel image (RGB) with the same information in each channel, PBRT will render this correctly. You can find two example images in the following links. It's not a big issue if this is supported, however I think there should be a warning if only a single channel is read.

https://www.dropbox.com/s/dxao3g8j917b9xz/binary_singleChannel.exr https://www.dropbox.com/s/u0b103z0juc9v6p/binary_triChannel.exr

mmp commented 10 years ago

Fixed in 4a851f4. Sorry for the trouble!