POV-Ray : Newsgroups : povray.general : POV-Ray not parsing Server Time
2 Nov 2024 13:20:33 EDT (-0400)
  POV-Ray not parsing (Message 1 to 5 of 5)  
From: Chris
Subject: POV-Ray not parsing
Date: 18 Jun 2009 18:10:01
Message: <web.4a3abb33e5faceb097074f4f0@news.povray.org>
Hi,

   I have often had the problem that POV-Ray for Windows does not succeed in
parsing what seems to be correct code. For example, with the latest Windows
version, if I copy verbatim (cut-and-paste) the sky sphere example from the
docs (section 2.3.2.4),

  sky_sphere {
    pigment {
      gradient y
      color_map {
        [ 0.5  color CornflowerBlue ]
        [ 1.0  color MidnightBlue ]
      }
      scale 2
      translate -1
    }
  }

with nothing else in the file, I get the messages below.

Appreciate any help. Thanks.

- Chris

Preset INI file is 'C:\Documents and Settings\cchang\My
Documents\POV-Ray\v3.6\ini\quickres.ini', section
is '[512x384, No AA]'.
Preset source file is 'C:\Documents and Settings\cchang\Desktop\test.pov'.
Redirecting Options
  All Streams to console..........On
  Debug Stream to console.........On
  Fatal Stream to console.........On
  Render Stream to console........On
  Statistics Stream to console....On
  Warning Stream to console.......On
Parsing Options
  Input file: C:\Documents and Settings\cchang\Desktop\test.pov (compatible to
version 3.62)
  Remove bounds........On
  Split unions.........Off
  Library paths:
    C:\Documents and Settings\cchang\My Documents\POV-Ray\v3.6\include
    C:\WINDOWS\Fonts
Output Options
  Image resolution 512 by 384 (rows 1 to 384, columns 1 to 512).
  Output file: C:\Documents and Settings\cchang\Desktop\test.bmp, 24 bpp (system
format)
  Graphic display......On  (gamma: 2.2)
  Mosaic preview.......Off
  CPU usage histogram..Off
  Continued trace......Off
Tracing Options
  Quality:  9
  Bounding boxes.......On   Bounding threshold: 3
  Light Buffer.........On
  Vista Buffer.........On   Draw Vista Buffer....Off
  Antialiasing.........Off
  Clock value:    0.000  (Animation off)
File: C:\Documents and Settings\cchang\Desktop\test.pov  Line: 5
File Context (5 lines):
      color_map {
        [ 0.5  color CornflowerBlue
Parse Error: Expected ']', undeclared identifier 'CornflowerBlue' found instead
Total Scene Processing Times
  Parse Time:    0 hours  0 minutes  0 seconds (0 seconds)
  Photon Time:   0 hours  0 minutes  0 seconds (0 seconds)
  Render Time:   0 hours  0 minutes  0 seconds (0 seconds)
  Total Time:    0 hours  0 minutes  0 seconds (0 seconds)
CPU time used: kernel 0.01 seconds, user 0.01 seconds, total 0.02 seconds

POV-Ray finished


Post a reply to this message

From: jhu
Subject: Re: POV-Ray not parsing
Date: 18 Jun 2009 18:30:00
Message: <web.4a3abea0aac246fec64c67c0@news.povray.org>
> Parse Error: Expected ']', undeclared identifier 'CornflowerBlue' found instead

There's your problem. CornflowerBlue is not declared. Did you put

#include "colors.inc"

at the beginning (assuming CornflowerBlue is declared in colors.inc)?


Post a reply to this message

From: Zeger Knaepen
Subject: Re: POV-Ray not parsing
Date: 18 Jun 2009 18:30:06
Message: <4a3abfee$1@news.povray.org>
Assuming you included colors.inc, I can only suggest reinstalling POV-Ray 
(maybe your colors.inc is corrupted in some weird way)

cu!
-- 
#macro G(b,e)b+(e-b)*C/50#end#macro _(b,e,k,l)#local C=0;#while(C<50)
sphere{G(b,e)+3*z.1pigment{rgb G(k,l)}finish{ambient 1}}#local C=C+1;
#end#end _(y-x,y,x,x+y)_(y,-x-y,x+y,y)_(-x-y,-y,y,y+z)_(-y,y,y+z,x+y)
_(0x+y.5+y/2x)_(0x-y.5+y/2x)            // ZK http://www.povplace.com


Post a reply to this message

From: clipka
Subject: Re: POV-Ray not parsing
Date: 19 Jun 2009 13:15:01
Message: <web.4a3bc688aac246fe7080f32a0@news.povray.org>
"Chris" <nomail@nomail> wrote:
>    I have often had the problem that POV-Ray for Windows does not succeed in
> parsing what seems to be correct code. For example, with the latest Windows
> version, if I copy verbatim (cut-and-paste) the sky sphere example from the
> docs (section 2.3.2.4),
>
>   sky_sphere {
>     pigment {
>       gradient y
>       color_map {
>         [ 0.5  color CornflowerBlue ]
>         [ 1.0  color MidnightBlue ]
>       }
>       scale 2
>       translate -1
>     }
>   }
>
> with nothing else in the file, I get the messages below.

(I guess you mean section 3.3.2.4.)

The docs sometimes don't mention the use of standard include files, such as
"colors.inc" in this case.

This typically leads to "Parse Error: Expected <WhatEver>, undeclared identifier
'<WhatElse>' found instead" messages.


Post a reply to this message

From: Chris B
Subject: Re: POV-Ray not parsing
Date: 19 Jun 2009 14:58:01
Message: <4a3bdfb9$1@news.povray.org>
"clipka" <nomail@nomail> wrote in message 
news:web.4a3bc688aac246fe7080f32a0@news.povray.org...
> "Chris" <nomail@nomail> wrote:
>> For example, with the latest Windows
>> version, if I copy verbatim (cut-and-paste) the sky sphere example from 
>> the
>> docs (section 2.3.2.4),
>
> (I guess you mean section 3.3.2.4.)
>

The numbering in the online documentation and the Windows documentation 
differs by one at the top level, so it's 2.3.2.4 in the online version and 
3.3.2.4 in Windows.

So you're both right :-)

Regards,
Chris B.


Post a reply to this message

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