Added flag in MultiChannel exr file to denote line order. Blender has the

Y coordinate 0 in left-bottom of screen :)

Fun news: cinepaint now reads such files too:
http://www.blender.org/bf/cornelius.exr_sc1.jpg
This commit is contained in:
Ton Roosendaal
2007-01-09 13:58:51 +00:00
parent 75b553e900
commit 3228b58a38

View File

@@ -443,6 +443,7 @@ void IMB_exr_begin_write(void *handle, char *filename, int width, int height, in
header.channels().insert (echan->name, Channel (FLOAT));
openexr_header_compression(&header, compress);
header.lineOrder() = DECREASING_Y;
header.insert ("BlenderMultiChannel", StringAttribute ("Blender V2.43"));
@@ -464,7 +465,7 @@ void IMB_exrtile_begin_write(void *handle, char *filename, int width, int height
header.channels().insert (echan->name, Channel (FLOAT));
header.setTileDescription (TileDescription (tilex, tiley, ONE_LEVEL));
header.lineOrder() = RANDOM_Y,
header.lineOrder() = RANDOM_Y;
header.compression() = RLE_COMPRESSION;
header.insert ("BlenderMultiChannel", StringAttribute ("Blender V2.43"));