POV-Ray : Newsgroups : povray.advanced-users : height_field + normal pattern problem.. : Re: height_field + normal pattern problem.. Server Time
8 Jul 2024 20:06:31 EDT (-0400)
  Re: height_field + normal pattern problem..  
From: albe99
Date: 2 Apr 2007 21:45:02
Message: <web.4611b043eeaef254c69d16000@news.povray.org>
Alain <ele### [at] netscapenet> wrote:
>
> My mistake, wrong kind of map. Change to:
> pigment{average{
>  pigment_map{[1 pigment{granite 0.4}]
>   [1 pigment{gradient z color_map{[0 rgb 1][1 rgb 0]}
>  }
>
> --
> Alain
> -------------------------------------------------

thank you so much Alain..
but unfortunately, the Average function generates errors again..

"Line: 30
Parse Warning: Pigment type unspecified or not 1st item.
Line: 30
File Context (5 lines):
      pigment_map {
        [1 pigment
Parse Error: Expected ']', pigment found instead "

however, using a light_source, it seems to work quite well:
//---------------------------------------------------

global_settings {
   hf_gray_16 on
}

light_source {
   <0.516914, 0.509426, -1.47921>, rgb <1, 1, 1>
}

camera {
   orthographic
   location <0.51681, 0.50948, -1.40625>
   sky <0, 1, 0>
   direction <0, 0, 1>
   right <1, 0, 0>
   up <0, 1, 0>
   look_at <0.51854, 0.50676, -0.43528>
}

height_field {
   png "prova2.png"
   scale <1, 0.4, 1>
   rotate x*-90
   translate x*0.0153893

   texture {
      normal { granite 0.4 }
       pigment {
         gradient z
         color_map {
            [0 rgb 1]
            [1 rgb 0]
             }
          }
      finish { ambient .5 }
   }
}
//------------------------------------------
the render produces a good image reusable in an height_field statement..

Alberto.


Post a reply to this message

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