POV-Ray : Newsgroups : povray.general : A typo in the "using ambient finishes" tutorial Server Time
18 Nov 2024 17:17:47 EST (-0500)
  A typo in the "using ambient finishes" tutorial (Message 1 to 3 of 3)  
From: Jenni A M  Merrifield
Subject: A typo in the "using ambient finishes" tutorial
Date: 20 Jul 2002 20:00:39
Message: <3d39f9a7$1@news.povray.org>
I'm still working my way through the tutorials, and I believe I have found
another error, this time in the "using ambient" part of the "finishes"
section under "Advanced Texture Options".

  I found it because I have a tendency to "copy and paste" the more detailed
examples instead of trying to type them all in manually as this helps avoid
typos and such.  However, the following is what is shown in (and thus what I
copied from)  the first block of example code for the "using ambient"
tutorial:

  plane {
    y, -1.5
    pigment {checker Green, White}
  }
  sphere {
    <0,0,0>, 1
    pigment { Gray75 }
    finish {
      ambient .2
      diffuse .6
  }

  When I tried to render the file after pasting this code in, POV stopped
with the yellow highlight on the very last closing brace and returned the
following error message:

Parse Error: No matching } in 'sphere', End of File found instead

  The error, it would appear, is that there is actually no closing brace
included for the "finish" statement.  The corrected code block should read:

  plane {
    y, -1.5
    pigment {checker Green, White}
  }
  sphere {
    <0,0,0>, 1
    pigment { Gray75 }
    finish {
      ambient .2
      diffuse .6
    }                    // <-- this is the brace that was missing
  }

Jenni

--
Jenni A. M. Merrifield
-=> strawberryJAMM <=-
strawberry @ jamm.com


Post a reply to this message

From: ingo
Subject: Re: A typo in the "using ambient finishes" tutorial
Date: 21 Jul 2002 01:17:30
Message: <Xns92524ACC8105Dseed7@povray.org>
in news:3d39f9a7$1@news.povray.org Jenni A.M. Merrifield wrote:

>       diffuse .6
>     }                    // <-- this is the brace that was missing
>   }
> 

Thanks Jenni,

I'll make the change.

Ingo


Post a reply to this message

From: Jenni A M  Merrifield
Subject: Re: A typo in the "using ambient finishes" tutorial
Date: 22 Jul 2002 23:40:48
Message: <3d3cd040$1@news.povray.org>
You're very welcome :-)

--
Jenni A. M. Merrifield = strawberry @ jamm.com
User Experience Design Professional
Designing to Requirements and Walking on Water is EASY. . .
    . . . So long as both are Frozen.


"ingo" <ing### [at] homenl> wrote in message
news:Xns### [at] povrayorg...
> in news:3d39f9a7$1@news.povray.org Jenni A.M. Merrifield wrote:
>
> >       diffuse .6
> >     }                    // <-- this is the brace that was missing
> >   }
> >
>
> Thanks Jenni,
>
> I'll make the change.
>
> Ingo


Post a reply to this message

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