POV-Ray : Newsgroups : povray.programming : [ot] tga 16 gray : Re: [ot] tga 16 gray Server Time
28 Jul 2024 08:28:24 EDT (-0400)
  Re: [ot] tga 16 gray  
From: Peter Popov
Date: 22 Sep 2002 15:04:42
Message: <pr4sou074hmfl1gk3pkoirijud1cgor7n1@4ax.com>
The HF_Gray_16 format POV-Ray uses is just a normal three-channel
(RGB), 8 bit per channel, TGA format. However, the way POV interprets
the data is different. Of the three bytes that form each pixel, the
first two - red and green - are treated as a 16-bit word, and the
third one - blue - is ignored. It's quite simple, actually, so any
code you find that writes TGA files can suit your needs.


Peter Popov ICQ : 15002700
Personal e-mail : pet### [at] vipbg
TAG      e-mail : pet### [at] tagpovrayorg


Post a reply to this message

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