POV-Ray : Newsgroups : povray.advanced-users : format of hf_gray_16 .bmp files? : Re: format of hf_gray_16 .bmp files? Server Time
28 Jul 2024 18:24:42 EDT (-0400)
  Re: format of hf_gray_16 .bmp files?  
From: Christoph Hormann
Date: 8 Jul 2005 03:05:01
Message: <dal8be$2kj$1@chho.imagico.de>
Mike Williams wrote:
> 
> Note that it's not sufficient just to produce a rgb TGA file with the
> 16-bit grey data coded into the R and G components. You also have to
> write whatever it is that tells POV to treat it as 16-bit grey,
> otherwise POV is going to treat the data as rgb.

No, in heightfields RGB images are always reduced by weighting the color 
components - in case of 3x8bit images you get the R*256+G - for 3x16bit 
the R*0.297 + G*0.589 + B*0.114.

Note the special treatment of the 8bit RGB is mostly for backwards 
compatibility - although this will likely continue to work i would 
recommend to use true 16bit formats to specify 16bit data.

Christoph

-- 
POV-Ray tutorials, include files, Landscape of the week:
http://www.tu-bs.de/~y0013390/ (Last updated 01 Jul. 2005)
MegaPOV with mechanics simulation: http://megapov.inetart.net/


Post a reply to this message

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