|
|
Jon Berndt wrote in message <384a755c@news.povray.org>...
>I am creating an image using povray running under Linux. My command line is
>this:
>
>%x-povray -IVoyager.pov -D -L/var/povray/include +H768 +W1024
>
>This results in a .tga file which is over 2 mb in size. However, displaying
>this in a paint program shows a 100x100 image. I find this strange. I
>suspect a .ini file is being used without my knowledge. How can I get
around
>this?
I ran into this problem as well with my custom compile of POV-Ray. For
unknown reasons, the code for saving TGA images sometimes does not compile
properly, and as a result, the most significant byte of the image size is
not written properly. The fix is as follows:
In file TARGA.C line 282 or so, fully parenthesize the four lines of code
for writing the image width and height, so that you get the following:
/* write width and height Bytes 12 - 15 */
putc(((*width) % 256), handle->file);
putc(((*width) / 256), handle->file);
putc(((*height) % 256), handle->file);
putc(((*height) / 256), handle->file);
Then recompile POV-Ray. This should fix the problem.
Mark
Post a reply to this message
|
|