POV-Ray : Newsgroups : povray.programming : Another high dynamic range format: FNG : Re: Another high dynamic range format: FNG Server Time
30 Jun 2024 12:53:12 EDT (-0400)
  Re: Another high dynamic range format: FNG  
From: Christoph Hormann
Date: 26 Apr 2004 11:15:02
Message: <c6j8q1$6rh$1@chho.imagico.de>
Christopher James Huff wrote:
> 
> It is portable.
> The portability problem with binary data comes from the fact that the 
> native format may have a different layout on different platforms. The 
> FNG code encodes and decodes the actual bit pattern, and will read and 
> write it the same way on all platforms.
> 

And actually the same would be possible for 32bit floating point values, 
you just would need to have a convention for the distribution of bits 
for mantissa/exponent and a file format storing 32bit values (which png 
IIRC does not).  And of course reading such files would be slower than 
reading the native binary format of that particular platform.

Christoph

-- 
POV-Ray tutorials, include files, Sim-POV,
HCR-Edit and more: http://www.tu-bs.de/~y0013390/
Last updated 21 Mar. 2004 _____./\/^>_*_<^\/\.______


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.