OpenImageIO icon indicating copy to clipboard operation
OpenImageIO copied to clipboard

Cube map comparison with idiff always fails

Open inequation opened this issue 14 years ago • 0 comments

Steps to reproduce:

  1. check out and build my DDS branch (https://github.com/inequation/oiio/tree/dds),
  2. iconvert any cube map (e.g. this one: http://www.speedyshare.com/files/29882163/Animus128.dds) from DDS back to DDS,
  3. 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.

inequation avatar Aug 15 '11 20:08 inequation