POV-Ray : Newsgroups : povray.general : "The Last Guardian" cannot be rendered?? : Re: "The Last Guardian" cannot be rendered?? Server Time
30 Jul 2024 22:14:13 EDT (-0400)
  Re: "The Last Guardian" cannot be rendered??  
From: Cruxic
Date: 2 Apr 2008 22:10:00
Message: <web.47f44a26100a2404b2baeb480@news.povray.org>
That's it, Tim!  Step #3 is the important one.  Apparently the following works
on Windows but not Linux:

#declare base_terrain = height_field {
  #ifdef (USE_PNG_HF)
    png
  #else
    sys
  #end
  terrain_file
  ...
}

As Tim found, it must be in the form:

#declare base_terrain = height_field {
  #ifdef (USE_PNG_HF)
    png terrain_file
  #else
    sys terrain_file
  #end
  ...
}

So if you merely make the above tweak to terrain.ini you can render it as per
the author's readme file.  You will still get warnings but this time it will
progress past them.

So what clued you on to this, Tim?  I didn't see any complaints in the pov
output (but perhaps I missed it).

Does this warrant a bug report?


"Tim Attwood" <tim### [at] comcastnet> wrote:
>
> 3. Modify terrain.inc to refer the height_field path...
> (Line 216 - 223), only the png portion really matters,
> but make sure to move terrain_file into the #ifdef
> so it doesn't raise an error. Like this...
>
> #declare base_terrain = height_field {
>    #ifdef (USE_PNG_HF)
>       png "full file path\base_terrain_v2.png"
>    #else
>       sys terrain_file
>    #end
>


Post a reply to this message

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