Search code examples
povray

16bits per color using +fN16 still gives 255 intensity levels per color rather than 65535


I render a scene with the option: +fN16 in my .ini file.

The .png file created is 48bit as expected (in windows I look at file->Properties->Details->Bit depth = 48).

However, when I sort all the pixel values in ascending order and take the difference between the union of all values, there are only 255 (or less) discrete intensity levels per color rather than the expected 65535 levels per color (16 bit per color).

What settings need to be applied to get 65535 levels per color in the .png image?

(I am looking for small intensity variations along the cross-section through a shadow penumbra)


Solution

  • I just rendered a sample image (Povray 3.7.0 with +FN16 passed on the command line) and got a true 16bit image rendered, with small variations between pixels.

    Either your image is being downsampled after you open it in Mathematica, or the sample you are examining in your image has actually less than 255 levels for each color.

    Have you tried a different image or a larger sample?