|
|
I've tried to run the tutorial image in 2.2.1 and just can't get it to run.
I can't see what I've done wrong so maybe someone can help me please.
typed in the following:
#include "shapes.inc"
#include "colors.inc"
camera {
location <0,2,-3>
look_at <0,1,2>
}
sphere {
<0,1,2>,2
texture {
pigment {color yellow}
}
}
light_source {<2,4,-3> color white}
when run I get - parse error: no matching } in 'pigment', undetected indentifier
'yellow' found instead.
I've added, subtracted } but to no avail. Any advice please.
Lockie
Post a reply to this message
|
|
|
|
On 12/21/2010 06:46 PM, Lockie wrote:
> I've tried to run the tutorial image in 2.2.1 and just can't get it to run.
> I can't see what I've done wrong so maybe someone can help me please.
> typed in the following:
>
> #include "shapes.inc"
> #include "colors.inc"
> camera {
> location<0,2,-3>
> look_at<0,1,2>
> }
> sphere {
> <0,1,2>,2
> texture {
> pigment {color yellow}
> }
> }
> light_source {<2,4,-3> color white}
>
> when run I get - parse error: no matching } in 'pigment', undetected indentifier
> 'yellow' found instead.
> I've added, subtracted } but to no avail. Any advice please.
> Lockie
>
>
You have to remember POV is case-sensitive...
Use Yellow and White instead of yellow and white.
(Notice that the error message complained about the _identifier_ 'yellow'.)
Another bit of advice -- try to use indenting to show the structure of your script.
It makes
things much easier to follow. Extra blank lines help too:
#include "shapes.inc"
#include "colors.inc"
camera {
location<0,2,-3>
look_at<0,1,2>
}
sphere {
<0,1,2>,2
texture {
pigment {color Yellow}
}
}
light_source {<2,4,-3> color White}
-=- Larry -=-
Post a reply to this message
|
|