|
|
On 11/11/2010 09:05 PM, trevordowdle wrote:
> How do I import terrain from Terragen to render in povray?
> Cant figure out how to do it.
>
One possible way would be to export terrain as "Raw 8 bits"
or "Raw 16 bits Motorola byte order"
(it is basically a binary matrix),
then attach the pgm-header to the raw file
and use it in POV-Ray to generate height_field based on the pgm-file.
As far as a free version of Terragen limits the output to 257x257,
the headers would look like "P5 257 257 255 " for 8-bit
and "P5 257 257 65535 " for 16-bit raw file.
For more info check, for example
http://netpbm.sourceforge.net/doc/pgm.html
Post a reply to this message
|
|