POV-Ray : Newsgroups : povray.windows : Problem with height field tutorial Server Time
28 Jul 2024 10:29:09 EDT (-0400)
  Problem with height field tutorial (Message 1 to 2 of 2)  
From: Crunchy Frog
Subject: Problem with height field tutorial
Date: 3 Sep 1999 19:14:27
Message: <37D056E0.A1E5FCE3@montypython.co.uk>
I am using POV for Windows v3.1g. I made it through the help tutorial as
far as the height field stuff without incident. Then an error. It seems
that the height field image created by the image.pov section outputs a
BMP file, and the hfdemo.pov section wants a TGA file. I can't seem to
make the former save as TGA, or the latter read in BMP. Any suggestions?


Post a reply to this message

From: Ken
Subject: Re: Problem with height field tutorial
Date: 3 Sep 1999 19:21:30
Message: <37D057A3.501988BC@pacbell.net>
Crunchy Frog wrote:
> 
> I am using POV for Windows v3.1g. I made it through the help tutorial as
> far as the height field stuff without incident. Then an error. It seems
> that the height field image created by the image.pov section outputs a
> BMP file, and the hfdemo.pov section wants a TGA file. I can't seem to
> make the former save as TGA, or the latter read in BMP. Any suggestions?

Add the following line to the bottom of your povray.ini file which
is accessable from the tools menu:

Output_File_Type = t

That will force Pov to output .tga files as default.



To read a .bmp for use as a height field object use this syntax:

height_field { sys "hfdemo.bmp" ..... }

The .bmp image format is considered a system specific type so you use
the "sys" declaration when specifying .bmps in the windows version of
Pov. It's probably sys for the .pict image format on the mac version.

For .tga, .gif, or .png use the following syntax:

height_field { tga "hfdemo.tga" ..... }
height_field { gif "hfdemo.gif" ..... }
height_field { png "hfdemo.png" ..... }


-- 
Ken Tyler

See my 850+ Povray and 3D Rendering and Raytracing Links at:
http://home.pacbell.net/tylereng/index.html


Post a reply to this message

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