Thanks Halfdan,

I've tried it both ways but get the same results.

exrheader reports:
test.exr (incomplete file):

file format version: 2, flags 0x800
channels (type chlist):
    O, 16-bit floating-point, sampling 1 1
    Z, 32-bit floating-point, sampling 1 1
chunkCount (type int): 32
compression (type compression): none
dataWindow (type box2i): (0 0) - (31 31)
displayWindow (type box2i): (0 0) - (31 31)
lineOrder (type lineOrder): increasing y
pixelAspectRatio (type float): 1
screenWindowCenter (type v2f): (0 0)
screenWindowWidth (type float): 1
type (type string): "deepscanline"
version (type int): 1


And exrdisplay bails with:
Error reading sample count data from image file "test.exr". Unexpected data
block y coordinate.


If I increase the resolution I can load it with exrdisplay (unless I enable
compression).


Someone suggested I create a deep file in Nuke and see how that's laid out.


Thanks,

Chip




On Wed, Apr 17, 2013 at 9:57 AM, Halfdan Ingvarsson <half...@sidefx.com>wrote:

>  At first glance, it looks like your x and y indices are reversed.
>
> The outermost bracket increases fastest and should therefore be indexed by
> x.
>
> E.g:
>
> Imf::Array2D<unsigned int> sampleCount; sampleCount.resizeErase(yRes,
> xRes);
>
> ...
>
> for (int y=0; y < yRes; y++) {
>    for (int x=0; x < xRes; x++) {
>       sampleCount[y][x] = sampleSize;
> ...
>    exrFile.writePixels(1);
>
>
> Hope that helps,
>
>  - ½
>
>
> On 13-04-17 12:33 PM, Chip Collier wrote:
>
> Good morning folks!
>
>
>  I'm trying to convert deep rat images into OpenEXR deep scanline images
> using the current 2.0.0 release on openexr.com.
>
>  At this point I haven't been able to create a valid file and I am at a
> loss to understand why.
>
>  Here is a super simple test based on the documentation and it doesn't
> create a valid file: http://hastebin.com/webasetiyo.cpp
>
>
>  Does anyone see anything blatantly wrong with this? Any advice would be
> helpful!
>
>
>  Thanks,
>
>  Chip
>
>
> _______________________________________________
> Openexr-devel mailing 
> listOpenexr-devel@nongnu.orghttps://lists.nongnu.org/mailman/listinfo/openexr-devel
>
>
>
_______________________________________________
Openexr-devel mailing list
Openexr-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/openexr-devel

Reply via email to