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




You can merge this Pull Request by running:

  git pull https://github.com/lgritz/oiio lg-texture

Or you can view, comment on it, or merge it online at:

  https://github.com/OpenImageIO/oiio/pull/227

-- Commit Summary --

* ImageBufAlgo::checker, and oiiotool --pattern
* testtex --tube creates a tube-like pattern for the texture that helps us

-- File Changes --

M src/include/imagebufalgo.h (11)
M src/libOpenImageIO/imagebufalgo.cpp (23)
M src/oiiotool/oiiotool.cpp (57)
M src/testtex/testtex.cpp (31)

-- Patch Links --

  https://github.com/OpenImageIO/oiio/pull/227.patch
  https://github.com/OpenImageIO/oiio/pull/227.diff

--- 
Reply to this email directly or view it on GitHub:
https://github.com/OpenImageIO/oiio/pull/227
_______________________________________________
Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

Reply via email to