Yes, OpenEXR 1.x to 2.0 always store channels (inside file too if i recall
correctly) according to the channel name alphabetical order, if for any
reason, you must enforce grouping them together, you may consider to name
your rgba channels with a common prefix, e.g beauty.r, beauty.g, beauty.b
and beauty.a but they will appear with an order of beauty.a, beauty.b,
beauty.g and beauty.r at the end anyway because of the alphabetical order
thing.

On Thursday, July 18, 2013, Michel Lerenard wrote:

> Hi,
>
> i'm having a weird bug and i'm wondering if there's a workaround / another
> of doing thing to could help me.
>
> I'm trying to read the channel names from a file, and there's all messed
> up.
>
> I've written the following channels, in that order to the file (a 16bits
> exr):
> r
> g
> b
> a
> color.r
> color.g
> color.b
> blinn.r
> blinn.g
> blinn.b
> depth.z
>
> In the file the channels are not in the same order, i have
> r
> g
> depth.z
> color.r
> color.g
> color.b
> blinn.r
> blinn.g
> blinn.b
> b
> a
>
> (in reverse order in the file, i assume that's how exr writes it)
>
>
> When reading the file, the order is once again messed up:
> blinn.r
> blinn.g
> b
> a
> depth.z
> blinn.b
> color.b
> color.g
> color.r
> g
> r
>
>
> I'm writing and reading data using the ImageSpec class. I found no index
> array in it, how can I rebuilt an ordered list ?
>
> Thanks in advance.
>
> Michel
> ______________________________**_________________
> Oiio-dev mailing list
> [email protected]
> http://lists.openimageio.org/**listinfo.cgi/oiio-dev-**openimageio.org<http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org>
>
_______________________________________________
Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

Reply via email to