|
![](/i/fill.gif) |
albe99 nous apporta ses lumieres en ce 02-04-2007 02:58:
> 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."
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
-------------------------------------------------
Fix reason firmly in her seat, and call to her tribunal every fact, every
opinion. Question with boldness even the existence of a God; because, if
there be one, he must more approve of the homage of reason, than that of
blindfolded fear.
Thomas Jefferson
Post a reply to this message
|
![](/i/fill.gif) |