POV-Ray : Newsgroups : povray.advanced-users : Height field old style? : Re: Height field old style? Server Time
25 Jun 2024 02:29:14 EDT (-0400)
  Re: Height field old style?  
From: Le Forgeron
Date: 31 Jan 2014 15:28:35
Message: <52ec0773$1@news.povray.org>
Le 31/01/2014 20:40, Franz von Dardel nous fit lire :
> 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?
> 
> 

Does not seems to have ever been a valid povray official syntax.
Yet, might be some patch/extensions.

Does not seems to appear in megapov 1.2.1 (latest)
Or missing some lines ?

Traditional usage of pattern in height field requires to use function.

Such as:

#declare P1=function{pattern{leopard
   turbulence 0.3 scale 0.05}}
#declare P2=function{pattern{crackle
   turbulence 0.3 scale 0.7}}
#declare P=function{P1(x,0,z)*0.3 +P2(x,0,z)}

height_field{function 300,300 {P(x,0,y)}
  translate <-0.5,0,-0.5> ...


Post a reply to this message

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