POV-Ray : Newsgroups : povray.newusers : Terragen Server Time
1 Nov 2024 04:14:31 EDT (-0400)
  Terragen (Message 1 to 2 of 2)  
From: trevordowdle
Subject: Terragen
Date: 11 Nov 2010 16:10:01
Message: <web.4cdc5a83d4bac00c566848d00@news.povray.org>
How do I import terrain from Terragen to render in povray?
Cant figure out how to do it.

thanks


Post a reply to this message

From: bart
Subject: Re: Terragen
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.