|
|
Hi everyone!
I am going through the tutorials and have come to Section 3.9.4 "Working
With Pigment Maps".
I copied the example given in this section yet, when I rendered it I got the
following Error Message:
File: C:\Program Files\POV-Ray for Windows
v3.5\scenes\textures\finishes\pigmentdemo.pov Line: 3
#declare Pigment1 = pigment {
checker color Black <----ERROR
Parse Error: No matching } in 'pigment', undeclared identifier 'Black' found
instead
The code that I copied, exactly, from Section 3.9.4 is as follows (it's
included here so someone can have a look at it and see where it is screwed
up):
// simple Black on White checkboard... it's a classic
#declare Pigment1 = pigment {
checker color Black color White
scale .1
}
// kind of a "psychedelic rings" effect
#declare Pigment2 = pigment {
wood
color_map {
[ 0.0 Red ]
[ 0.3 Yellow ]
[ 0.6 Green ]
[ 1.0 Blue ]
}
}
plane {
-z, 0
pigment {
gradient x
pigment_map {
[ 0.0 Pigment1 ]
[ 0.5 Pigment2 ]
[ 1.0 Pigment1 ]
}
}
}
I thank you all in advance for your help!
Thanx,
Brian :-)
Post a reply to this message
|
|
|
|
Brian wrote:
>
> Hi everyone!
>
> I am going through the tutorials and have come to Section 3.9.4 "Working
> With Pigment Maps".
>
> I copied the example given in this section yet, when I rendered it I got the
> following Error Message:
>
> File: C:\Program Files\POV-Ray for Windows
> v3.5\scenes\textures\finishes\pigmentdemo.pov Line: 3
> #declare Pigment1 = pigment {
>
> checker color Black <----ERROR
>
> Parse Error: No matching } in 'pigment', undeclared identifier 'Black' found
> instead
"Black" is a predeclared color from the file colors.inc. To use the predeclared
colors you need to add the following at the top of your .pov file -
#include "colors.inc"
--
Ken Tyler
Post a reply to this message
|
|