|
![](/i/fill.gif) |
Have you considered writing the data out as a mesh2? Since you're
writing a C++ program anyway, it's probably a lot easier to write a few
floating point numbers out in text format than to write out a specific
image file format. Plus you get to have a greater degree of precision
than with a 16 bit image file. Also you can control the mesh smoothing
if you calculate a few normal vectors.
I wrote a C++ program (win32 command line) that takes a raw 32bit
floating point output file from World Machine, calculates the mesh, does
a non linear transform (cylindrical wrapping), calculates the normal
vectors, then spits out a mesh. Email me if you'd like the source and
you can feel free to use it however you like.
Peter D.
scott 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).
>
> Is there any way to make POV use red+256*green or something like that from a
> BMP file? Or some software that will make red+256*green into 16-bit grey
> PNG?
>
> Thanks
>
> Scott
>
>
Post a reply to this message
|
![](/i/fill.gif) |