|
![](/i/fill.gif) |
In article <4219be88$1@news.povray.org>, "scott" <sco### [at] spam com>
wrote:
> I'm writing some code in C++ (on windows) to generate some 16-bit height
> field data. What is going to be the easiest way for me to export the
> numbers to use in POV? The PNG file format looks pretty complex (compared
> to BMP which is what I'm used to).
PNG would be the best option. libpng is really not that hard to use,
just follow the examples in the documentation. You get lossless
compression and files that are widely supported.
Alternatively, you could encode the data as 16 or 24 bit fixed point
float values split into 8 bit chunks among the RGB channels, and either
use POV-Ray's built in red-green "16 bit grayscale TGA" feature or
combine the channels manually using a function to generate the height
field. I would suggest the latter...it seems most flexible.
--
Christopher James Huff <cja### [at] gmail com>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: <chr### [at] tag povray org>
http://tag.povray.org/
Post a reply to this message
|
![](/i/fill.gif) |