POV-Ray : Newsgroups : povray.programming : Targa format specifics : Re: Targa format specifics Server Time
25 Apr 2024 07:28:42 EDT (-0400)
  Re: Targa format specifics  
From: Christian Froeschlin
Date: 30 May 2009 19:05:11
Message: <4a21bba7$1@news.povray.org>
> I understand that POV does not use color-mapped images of any format

actually you can read them into an image_map just fine ;)

> The documentation for the Truevision targa format states that color map indices
> are stored in the image data as an integral number of bytes - usually one or
> two - but does not say how to tell if it's one or two.

It seems to be unclear on this point, but my guess would be that
the size is the same for all pixels and depends solely on the color
map length (if number of colors <= 256 then 1 byte else ...).

> Then too, the Targa format tends to put two byte values in little-endian form,
> or maybe it places all numeric values in little-endian form, but this
> information, which I would think important, is simply left out of every piece
> of documentation I have found to date.

I didn't work with TGA before but Google turned up

   http://www.martinreddy.net/gfx/2d/TGA.txt

where it says "The low-order byte of a two-byte field is
stored first" under Image Data Field.


Post a reply to this message

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