POV-Ray : Newsgroups : povray.newusers : Our first image -no go for me : Re: Our first image -no go for me Server Time
2 Jul 2024 23:45:14 EDT (-0400)
  Re: Our first image -no go for me  
From: Larry Hudson
Date: 22 Dec 2010 01:56:25
Message: <4d11a119@news.povray.org>
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

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