POV-Ray : Newsgroups : povray.advanced-users : Height field old style? : Re: Height field old style? Server Time
28 May 2024 14:56:19 EDT (-0400)
  Re: Height field old style?  
From: Franz von Dardel
Date: 1 Feb 2014 06:40:00
Message: <web.52ecdcad94a3ffcb14d2732a0@news.povray.org>
Alain <kua### [at] videotronca> wrote:

> > Am 31.01.2014 20:40, schrieb Franz von Dardel:
> >> I came across a file with a height field given in the following manner:
> >>
> >> #declare Coul= pigment { color rgb <0.4,0.2,0>}
> >>
> >> height_field {
> >>      pattern 100,100 {
> >>          hf_gray_16
> >>          cylindrical color_map { [0 rgb 0] [1 rgb 1] }
> >>          translate 1
> >>          scale .3
> >>      }
> >>      //smooth
> >>      pigment {Coul}
> >>      clipped_by {plane {-y,-.05}}
> >>      scale <5,2,5>
> >> }
> >>
> >> POV gives an error about "pattern":
> >> Parse Error: Expected 'map file spec', pattern found instead
> >> but I could not find the way to produce a height field without a GIF
> >> or PNG, or
> >> a function. Is there a way to correct or convert the above lines?
> >
> > I think this should do the job (untested):
> >
> > height_field {
> >       function 100,100 { pigment {
> >           hf_gray_16
> >           cylindrical color_map { [0 rgb 0] [1 rgb 1] }
> >           translate 1
> >           scale .3
> >       } }
> >       ...
> > }
> >
>
> I'm not sure about the hf_gray_16 in this context... Maybe it just does
> nothing.
> Up to version 3.6.x, it was to be used in the global_settings block to
> output the image as a 16 bits gray level image.
> With version 3.7, you use a command line switch to do the same.

I have tried function instead of pattern. Doesn't work. It (logically) expects a
function.


Post a reply to this message

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