This is a snippet from my simple deep reader (half RGBA, float Z)- minus all the cleanup.
It was written some time ago as a simple test, but it works for the purpose. Maybe it helps you find the issue.
for (int y = 0; y < height; y++)
{
for (int x = 0; x < width; x++)
{
int s = sampleCount[y][x];
dataZ[y][x] = new float[s];
dataR[y][x] = new half[s];
dataG[y][x] = new half[s];
dataB[y][x] = new half[s];
dataA[y][x] = new half[s];
}
}
file.readPixels(dataWindow.min.y, dataWindow.max.y);
std::cout << "Done.\n";
// clean up etc...
}
--- snip ---
Cheers,
Mike
--
db&w Bornemann und Wolf GbR
Seyfferstr. 34
70197 Stuttgart
Deutschland