POV-Ray : Newsgroups : povray.general : parse warning Server Time
25 Nov 2024 21:34:09 EST (-0500)
  parse warning (Message 1 to 9 of 9)  
From: Thomas de Groot
Subject: parse warning
Date: 2 Jan 2013 07:02:57
Message: <50e421f1$1@news.povray.org>
For some time now I have been wondering about the meaning of:

Parse warning: Suspicious expression after rgb.

There is no reference to any file in which this may happen, nor to the 
suspicious place. I have been browsing different potential issues 
without finding anything /suspicious/.

Any smart idea?

Thomas


Post a reply to this message

From: Le Forgeron
Subject: Re: parse warning
Date: 2 Jan 2013 07:43:37
Message: <50e42b79$1@news.povray.org>
Le 02/01/2013 13:02, Thomas de Groot nous fit lire :
> For some time now I have been wondering about the meaning of:
> 
> Parse warning: Suspicious expression after rgb.
> 
> There is no reference to any file in which this may happen, nor to the
> suspicious place. I have been browsing different potential issues
> without finding anything /suspicious/.
> 
> Any smart idea?

Code analysis: warning due to number of terms in expression not equal to 3.

Lack of file location means that Token.FileHandle is NULL.


Post a reply to this message

From: James Holsenback
Subject: Re: parse warning
Date: 2 Jan 2013 09:07:12
Message: <50e43f10$1@news.povray.org>
On 01/02/2013 07:02 AM, Thomas de Groot wrote:
> For some time now I have been wondering about the meaning of:
>
> Parse warning: Suspicious expression after rgb.
>
> There is no reference to any file in which this may happen, nor to the
> suspicious place. I have been browsing different potential issues
> without finding anything /suspicious/.
>
> Any smart idea?
>
> Thomas

seen this before as well, iirc: look for pigment statements that have 
rgb followed a predefined color like Yellow ... effectively it's seeing 
it as pigment { rgb rgb <1,1,0> }


Post a reply to this message

From: Jaime Vives Piqueres
Subject: Re: parse warning
Date: 2 Jan 2013 09:16:38
Message: <50e44146$1@news.povray.org>

> For some time now I have been wondering about the meaning of:
>
> Parse warning: Suspicious expression after rgb.

   That warning is the one I most see... due to my tendency to mix 
colors by arithmetic operations (i.e.: Red*.5+Yellow*.3). I learned to 
just ignore it... ;)

--
Jaime


Post a reply to this message

From: James Holsenback
Subject: Re: parse warning
Date: 2 Jan 2013 09:22:09
Message: <50e44291$1@news.povray.org>
On 01/02/2013 09:16 AM, Jaime Vives Piqueres wrote:

>> For some time now I have been wondering about the meaning of:
>>
>> Parse warning: Suspicious expression after rgb.
>
>    That warning is the one I most see... due to my tendency to mix
> colors by arithmetic operations (i.e.: Red*.5+Yellow*.3). I learned to
> just ignore it... ;)
>
> --
> Jaime

LOL that's where I'd seen that before, thanks for the nudge ... perhaps 
my other recollection was incorrect then


Post a reply to this message

From: Thomas de Groot
Subject: Re: parse warning
Date: 2 Jan 2013 10:36:55
Message: <50e45417$1@news.povray.org>
On 2-1-2013 15:16, Jaime Vives Piqueres wrote:

>> For some time now I have been wondering about the meaning of:
>>
>> Parse warning: Suspicious expression after rgb.
>
>    That warning is the one I most see... due to my tendency to mix
> colors by arithmetic operations (i.e.: Red*.5+Yellow*.3). I learned to
> just ignore it... ;)

I also do that a lot (mixing and... ignoring) ;-)

I just got curious because sometimes it seems not to make sense, 
everything loud an clear, so to speak, but I probably have some hidden 
things I overlook in the process.

Thanks all for the clarification.

Thomas


Post a reply to this message

From: Kenneth
Subject: Re: parse warning
Date: 2 Jan 2013 13:40:01
Message: <web.50e47e19f2830532c2d977c20@news.povray.org>
Whenever I see that warning, I almost automatically go to section 3.2.1.5.5
"Common Color Pitfalls" in the docs, to 'refresh' my memory of the odd behavior
of dot operators re: colors. If some insight there doesn't solve it, then I
usually ignore it.

BTW, another irritation for me is seeing the warning about 'no pigment type
given' for an object when it's in a lightgroup. That *always* seems to happen
(in v3.6.2), for no apparent reason. Again, I just ignore it.


Post a reply to this message

From: MichaelJF
Subject: Re: parse warning
Date: 2 Jan 2013 13:50:00
Message: <web.50e48126f283053278ca74630@news.povray.org>
Thomas de Groot <tho### [at] degrootorg> wrote:
> On 2-1-2013 15:16, Jaime Vives Piqueres wrote:

> >> For some time now I have been wondering about the meaning of:
> >>
> >> Parse warning: Suspicious expression after rgb.
> >
> >    That warning is the one I most see... due to my tendency to mix
> > colors by arithmetic operations (i.e.: Red*.5+Yellow*.3). I learned to
> > just ignore it... ;)
>
> I also do that a lot (mixing and... ignoring) ;-)
>
> I just got curious because sometimes it seems not to make sense,
> everything loud an clear, so to speak, but I probably have some hidden
> things I overlook in the process.
>
> Thanks all for the clarification.
>
> Thomas

I'm not sure completelly but I see his warning often when I add a forth or fifth
component to a color vector (e.g. something like this: color Red +
<0,0,0,0.5,0.5>) to get filtered or general transmittance. Mainly within color
maps and the like.

Best regards,
Michael


Post a reply to this message

From: MichaelJF
Subject: Re: parse warning
Date: 2 Jan 2013 14:00:01
Message: <web.50e48364f283053278ca74630@news.povray.org>
"MichaelJF" <mi-### [at] t-onlinede> wrote:
> Thomas de Groot <tho### [at] degrootorg> wrote:
> > On 2-1-2013 15:16, Jaime Vives Piqueres wrote:

> > >> For some time now I have been wondering about the meaning of:
> > >>
> > >> Parse warning: Suspicious expression after rgb.
> > >
> > >    That warning is the one I most see... due to my tendency to mix
> > > colors by arithmetic operations (i.e.: Red*.5+Yellow*.3). I learned to
> > > just ignore it... ;)
> >
> > I also do that a lot (mixing and... ignoring) ;-)
> >
> > I just got curious because sometimes it seems not to make sense,
> > everything loud an clear, so to speak, but I probably have some hidden
> > things I overlook in the process.
> >
> > Thanks all for the clarification.
> >
> > Thomas
>
> I'm not sure completelly but I see his warning often when I add a forth or fifth
> component to a color vector (e.g. something like this: color Red +
> <0,0,0,0.5,0.5>) to get filtered or general transmittance. Mainly within color
> maps and the like.
>
> Best regards,
> Michael

My solution is like Kenneth's: ignore the warning.

Michael


Post a reply to this message

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