POV-Ray : Newsgroups : povray.unofficial.patches : Is this a known bug? Server Time
2 Sep 2024 06:20:20 EDT (-0400)
  Is this a known bug? (Message 1 to 9 of 9)  
From: Chris Howlett
Subject: Is this a known bug?
Date: 31 May 2000 13:47:53
Message: <39355049@news.povray.org>
Using version 3.1g, I can't seem to create checker textures properly, at
least for planes. If I specify

pigment {checker X White}

where X is any pre-defined colour, I always get a plane which appears to
have

pigment {checker Green White}

Is this a known bug, as I've only just started using POV-Ray and am not up
to speed yet? Thanks

Chris


Post a reply to this message

From: Ken
Subject: Re: Is this a known bug?
Date: 31 May 2000 13:54:34
Message: <39355178.666933C6@pacbell.net>
Chris Howlett wrote:
> 
> Using version 3.1g, I can't seem to create checker textures properly, at
> least for planes. If I specify
> 
> pigment {checker X White}
> 
> where X is any pre-defined colour, I always get a plane which appears to
> have
> 
> pigment {checker Green White}
> 
> Is this a known bug, as I've only just started using POV-Ray and am not up
> to speed yet? Thanks
> 
> Chris

It is not a bug. You MUST specify both colors with a comma seperating
them.

In your case it should be pigment { checker X, White }

-- 
Ken Tyler - 1400+ POV-Ray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/


Post a reply to this message

From: Ron Parker
Subject: Re: Is this a known bug?
Date: 1 Jun 2000 00:22:36
Message: <slrn8jbpul.2er.ron.parker@linux.parkerr.fwi.com>
On Wed, 31 May 2000 10:52:56 -0700, Ken wrote:
>It is not a bug. You MUST specify both colors with a comma seperating
>them.

Though I consider the fact that a comma is necessary a bug.  I think
I posted the fix to bugreports, but it was a long time ago.  Basically,
POV sees "Puce Chartreuse" as just "Chartreuse".

-- 
Ron Parker   http://www2.fwi.com/~parkerr/traces.html
My opinions.  Mine.  Not anyone else's.


Post a reply to this message

From: Warp
Subject: Re: Is this a known bug?
Date: 1 Jun 2000 13:33:27
Message: <39369e66@news.povray.org>
Ron Parker <ron### [at] povrayorg> wrote:
: Though I consider the fact that a comma is necessary a bug.

  I would consider not throwing a syntax error when there isn't a comma a bug.
If you see "comma expected but blah blah found instead" you will probably
see quite fast what is the problem.

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

From: Ron Parker
Subject: Re: Is this a known bug?
Date: 1 Jun 2000 14:40:01
Message: <slrn8jdc5t.2pn.ron.parker@linux.parkerr.fwi.com>
On 1 Jun 2000 13:33:27 -0400, Warp wrote:
>Ron Parker <ron### [at] povrayorg> wrote:
>: Though I consider the fact that a comma is necessary a bug.
>
>  I would consider not throwing a syntax error when there isn't a comma a bug.
>If you see "comma expected but blah blah found instead" you will probably
>see quite fast what is the problem.

That would be true if commas were required anywhere else in the language.
As it is, they're only required when it's necessary to disambiguate the
elements of a vector ( <1,-2,3> vs. <1 -2 3>, one of which is a 3-vector
and one of which is a 2-vector.)

Besides, the problem stems from the fact that POV doesn't recognize a
difference between 

  Puce Chartreuse

and
  
  red 1 green .7 blue .1 green 1

If the latter followed "checker", where would you expect to find the comma?

-- 
Ron Parker   http://www2.fwi.com/~parkerr/traces.html
My opinions.  Mine.  Not anyone else's.


Post a reply to this message

From: Warp
Subject: Re: Is this a known bug?
Date: 2 Jun 2000 04:54:24
Message: <3937763f@news.povray.org>
Ron Parker <ron### [at] povrayorg> wrote:
:   red 1 green .7 blue .1 green 1

: If the latter followed "checker", where would you expect to find the comma?

  Well, that's why I think comma should be required. That is, support for
a checker statement with only one parameter instead of two should be
removed. It will only do good.

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

From: Ron Parker
Subject: Re: Is this a known bug?
Date: 2 Jun 2000 10:24:32
Message: <slrn8jfhip.3vs.ron.parker@linux.parkerr.fwi.com>
On 2 Jun 2000 04:54:24 -0400, Warp wrote:
>Ron Parker <ron### [at] povrayorg> wrote:
>:   red 1 green .7 blue .1 green 1
>
>: If the latter followed "checker", where would you expect to find the comma?
>
>  Well, that's why I think comma should be required. That is, support for
>a checker statement with only one parameter instead of two should be
>removed. It will only do good.

I suggested a transparent (i.e. doesn't break most existing scenes) workaround 
in .bugreports when I originally posted the problem:

|Unfortunately, you can also say "color Red Green" and get green.  This
|is not documented, and is probably a bug (the docs do say COLOUR_IDs
|should come first.)  Parse_Colour should probably UNGET and EXIT when
|it gets a second instance of any of COLOUR_ID, rgb, rgbt, rgbf, rgbft,
|or a bare vector expression.  This would make rgb 1 red 0 legal as a
|shortcut for cyan, but make rgb 1 rgb 0 become two separate colors,
|suitable for use in checkers or bricks or hexagons.

-- 
Ron Parker   http://www2.fwi.com/~parkerr/traces.html
My opinions.  Mine.  Not anyone else's.


Post a reply to this message

From: Chris Howlett
Subject: Re: Is this a known bug?
Date: 2 Jun 2000 13:14:24
Message: <3937eb70@news.povray.org>
Ok, thanks for that. Just one remaining question - why the hell does it
replace the "unspecified" colour with Green?


Post a reply to this message

From: Ron Parker
Subject: Re: Is this a known bug?
Date: 2 Jun 2000 14:43:56
Message: <slrn8jg0p9.432.ron.parker@linux.parkerr.fwi.com>
On Fri, 2 Jun 2000 18:16:54 +0100, Chris Howlett wrote:
>Ok, thanks for that. Just one remaining question - why the hell does it
>replace the "unspecified" colour with Green?

Because the rather unintuitive defaults for checker are, IIRC, yellow and
green.

-- 
Ron Parker   http://www2.fwi.com/~parkerr/traces.html
My opinions.  Mine.  Not anyone else's.


Post a reply to this message

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