POV-Ray : Newsgroups : povray.advanced-users : height_field + normal pattern problem.. : Re: height_field + normal pattern problem.. Server Time
8 Jul 2024 19:52:44 EDT (-0400)
  Re: height_field + normal pattern problem..  
From: albe99
Date: 2 Apr 2007 03:00:01
Message: <web.4610a86feeaef254df6ff5fd0@news.povray.org>
Thank you very much..
but I'm in trouble again..

So, I've changed the scene:
//------------------------------
#include "colors.inc"
#include "functions.inc"

global_settings {
   hf_gray_16 on
}

//camera & height_field parallels to the Z axis
camera {
location <0, 0, -10>
look_at 0
}

height_field {
   png "HFtest01.png"
   scale <10, 3, 10>
   rotate <-90, 0, 0>
   translate y*0.0870551

   texture {
      normal { granite 0.4 }
      pigment{
 average{
 pigment_map { [1 pigment{granite 0.4}]
        [1 pigment{gradient z color_map{[0 rgb 1][1 rgb 0]}
   }
  }
 }
      finish { ambient 1 }
   }
}
//------------------------------------------------

povray stop with this message error:

"Line: 40
File Context (5 lines):
      pigment{
 average{
 normal_map { [1 pigment{granite 0.4}]
       [1 pigment{gradient z color_map{[0 rgb 1][1 rgb 0]}
   }

Parse Error: Average must have map."


Post a reply to this message

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