OpenImageIO/oiio — pull request #227 by lgritz (2012-02-18 06:15:57+00:00)
Title: Review: ImageBufAlgo::checker, oiiotool --pattern, testtex --tube

Three enhancements:

1. ImageBufAlgo::checker fills an ImageBuf with a checkerboard pattern (with params giving the checker colors and the width.

2. 'oiiotool --pattern name geom chans' is similar to 'oiiotool --create geom chans', but fills the new image with the named pattern. First implemented pattern: "checker". Can take width parameter, for example: 'oiiotool ---pattern checker:width=8 512x512 3'. Obviously, this is ripe for easy expansion with other pattern functions to be added as desired.

3. 'testtex --tube' tests texture with the texture mapped as if looking down an infinitely long tube. This is very helpful for evaluating texture filtering at all angles in a single image.

What's the connection? Of course, I used 1 & 2 to generate a checker texture so I can generate pictures like this: http://www.pmavridis.com/ewa.html