Wednesday, June 17, 2015

What image library/format should I use?

I am doing a new batch renderer and need to do image I/O including HDR (with viewer if possible).  Last time I did this it was all image magic and Greg Ward's rgbe code.   What are the cool kids using these days?

8 comments:

  1. The kids might have gotten cooler since the last time I looked, but I believe it's OpenEXR.

    ReplyDelete
  2. I've used DevIL in the past. It is simple to use and supports many formats, including HDR formats, and can be compiled into a single big fat binary with no other dependencies. Not sure if it supports the latest OpenEXR spec or if its still "cool" :-)

    https://github.com/DentonW/DevIL

    ReplyDelete
  3. All the cool kids (and, almost without exception, all the big VFX and animation studios) use OpenImageIO.

    ReplyDelete
  4. +1 for OIIO if you need something full featured with an out of core texture system.

    If you are looking to minimize dependencies, stb_image is another popular choice (single file header library for C). pbrt-v3 is using this.

    https://github.com/nothings/stb/blob/master/stb_image.h

    ReplyDelete
  5. https://github.com/syoyo/tinyexr is another nice "micro library"

    ReplyDelete
  6. http://c0de517e.blogspot.ca/2013/07/tiny-hdr-writer.html has also links to other small HDR read/write code

    ReplyDelete
  7. Thanks much for the suggestions! I am glad I asked. Nick Porcino added a vote for OpenEXR. I'll do some testing and report what I find out.

    ReplyDelete