diff options
author | Kent Mein <mein@cs.umn.edu> | 2005-03-11 23:16:14 +0300 |
---|---|---|
committer | Kent Mein <mein@cs.umn.edu> | 2005-03-11 23:16:14 +0300 |
commit | a1919e6db4e20f1ab16646d3cbb273f569af23e1 (patch) | |
tree | 60642648c9d0b35a1c8f81bf96bdb7c60acba2d7 /source/blender/src/writeimage.c | |
parent | c6d51245604b8c1bb329f5362ad528cc6f31c085 (diff) |
Gernot Ziegler's patch to add OpenEXR support to blender.
To enable it you will need to download OpenEXR and install it.
For the Makefiles you will need to set WITH_OPENEXR=true
and set NAN_OPENEXR to point to where OpenEXR is installed.
For scons you'll need to remove config.opts to get the new options
so you can enable OpenEXR, I was not able to get blender to link
with scons so the scons stuff may need to be tweaked a little but
I think it should work.
For other platform managers The OpenEXR stuff is similar to QUICKTIME
you need to define WITH_OPENEXR and setup the library stuff and
as you'll notice in this commit there are two extra files.
Kent
Diffstat (limited to 'source/blender/src/writeimage.c')
-rw-r--r-- | source/blender/src/writeimage.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/source/blender/src/writeimage.c b/source/blender/src/writeimage.c index 75b215f70bd..d16247a70b2 100644 --- a/source/blender/src/writeimage.c +++ b/source/blender/src/writeimage.c @@ -44,10 +44,6 @@ #include "render.h" // RE_make_existing_file, R. stuff -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - int BIF_write_ibuf(ImBuf *ibuf, char *name) { int ok; @@ -61,6 +57,11 @@ int BIF_write_ibuf(ImBuf *ibuf, char *name) else if ((G.scene->r.imtype==R_BMP)) { ibuf->ftype= BMP; } +#ifdef WITH_OPENEXR + else if ((G.scene->r.imtype==R_OPENEXR)) { + ibuf->ftype= OPENEXR; + } +#endif else if ((G.scene->r.imtype==R_TARGA) || (G.scene->r.imtype==R_PNG)) { // fall back to Targa if PNG writing is not supported ibuf->ftype= TGA; |