POV-Ray : Newsgroups : povray.newusers : Terragen : Re: Terragen Server Time
4 Jul 2024 14:04:32 EDT (-0400)
  Re: Terragen  
From: bart
Date: 12 Nov 2010 15:33:41
Message: <4cdda4a5$1@news.povray.org>
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

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