POV-Ray : Newsgroups : povray.general : 16-bit grayscale PNGs -> PoV-Ray 16-bit heightfield TGAs? : Re: 16-bit grayscale PNGs -> PoV-Ray 16-bit heightfield TGAs? Server Time
31 Jul 2024 04:16:06 EDT (-0400)
  Re: 16-bit grayscale PNGs -> PoV-Ray 16-bit heightfield TGAs?  
From: Alain
Date: 28 Mar 2008 15:15:33
Message: <47ed51e5$1@news.povray.org>
Kenneth nous apporta ses lumieres en ce 2008/03/27 21:24:
> Nicolas Alvarez <nic### [at] gmailisthebestcom> wrote:
> 
>> Yes, you do need Bits_Per_Color=16. Or just +fn16, which sets image type
>> to PNG and 16 bits :) I remember the short +stuff easier than the
>> Long_Ini_Settings... (and faster to type)
> 
> Thanks!
> 
> Either I'm vision-impaired, or I just haven't seen that little tidbit in the POV
> docs, in either the hf_gray_16 section or the one on HFs. Perhaps it should be
> obvious... though my initial thought was that setting the original rendering to
> hf_gray_16 would take care of that.
> 
> Details, details...
> 
> So if the file_type has to be manually set to .png, and the Bits_Per_Color to
> 16--what exactly does global{hf-gray-16} do?? Besides making the image
> gray-scale?  Hmm, perhaps that IS its only purpose, to eliminate unnecessary
> color channels. Gee, I feel smarter already!
> 
> Ken W.
> 
> 
> 
> 
> 
hf_gray_16 turn the display black and white and the file output to a specialy 
formated TGA file with the hight encoded in the red and green chanels. Low part 
in the green and high part in the red. It still an 8 bit per channel file.
If you open it in a graphic viewer, you see a red shape striped with green 
gradients. The blue channel is set to zero everywhere.

-- 
Alain
-------------------------------------------------
A modest man is usually admired; if people ever hear of him.


Post a reply to this message

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