OpenImageIO
OpenImageIO copied to clipboard
Cube map comparison with idiff always fails
Steps to reproduce:
- check out and build my DDS branch (https://github.com/inequation/oiio/tree/dds),
- iconvert any cube map (e.g. this one: http://www.speedyshare.com/files/29882163/Animus128.dds) from DDS back to DDS,
- compare images with idiff - always FAIL.
Note that upon visual inspection the images are identical.
Also using a "proxy" format for comparison (e.g. converting both images to PNG and comparing those) results in a PASS.
Difference image is somewhat weird - the first cube face is totally black (i.e. no difference), but the others are there unchanged, as if we were comparing the original image with a black one.
It may be a bug of mine. The fact that the first face passes comparison suggests that it might have something to do with the fact that a DDS cube map's full_width/height is the size of the cube map, while the spec.width/height are dimensions of the entire map.