Page 1 of 1

[XnView 2.40] Error displaying ppm file

Posted: Tue Sep 26, 2017 5:53 pm
by Aryetis
Hello,

Working on a (basic) raytracer I output my files as .ppm
And for some reason I can open them perfectly using software such as gimp. But when it comes to XnView, depending of the scene/file generated it displays garbage data.

Here's an example of a faulty ppm : https://hijackedbrain.com/data/firstSphere.ppm

Using XnView 2.40, on Windows 10_X64

Re: [XnView 2.40] Error displaying ppm file

Posted: Wed Sep 27, 2017 2:15 pm
by xnview
your ppm data contains float values not integer

Re: [XnView 2.40] Error displaying ppm file

Posted: Wed Sep 27, 2017 6:49 pm
by Aryetis
Yes my apologies.
I noticed it earlier this morning. I suppose this is not standard behavior and thus should not be encouraged / implemented.
Why gimp allows it is .... debatable.