POV-Ray : Newsgroups : povray.general : checkered passed Server Time
8 Aug 2024 22:14:33 EDT (-0400)
  checkered passed (Message 21 to 27 of 27)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Chris Huff
Subject: Re: checkered passed
Date: 17 Nov 2000 21:28:12
Message: <chrishuff-68A4A4.21283017112000@news.povray.org>
In article <3A15BCBE.762D9840@faricy.net>, David Fontaine 
<dav### [at] faricynet> wrote:

> Rick Mabry wrote:
> 
> > ABCABCABCABC
> > BCABCABCABCA
> > CABCABCABCAB
> > ABCABCABCABC
> > BCABCABCABCA
> 
> Eww, this is striped! If ya want three colors I'd say go with hexagon.

Umm, hexagon is, well, hexagonal. And both hexagon and the ordinary 
checkers are "striped". It is very possible he *wants* a striped pattern 
of squares with more than one color.
BTW, I have been thinking about some possible new patterns: 
random_checkers, random_hexagons, etc...they would take a list of any 
number of items and choose one of them for each tile. Also, replace the 
old "tiles" pattern(which isn't used any more) with a new one that lets 
you specify any number of items and the offset for each row.
What do you think?

-- 
Christopher James Huff
Personal: chr### [at] maccom, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tagpovrayorg, http://tag.povray.org/

<><


Post a reply to this message

From: David Fontaine
Subject: Re: checkered passed
Date: 17 Nov 2000 23:47:14
Message: <3A160967.130FC54@faricy.net>
Chris Huff wrote:

> Umm, hexagon is, well, hexagonal. And both hexagon and the ordinary
> checkers are "striped". It is very possible he *wants* a striped pattern
> of squares with more than one color.

Yes it is. I was just saying eww IMHO. :)
Hexagon has no two cells of the same color touching, even just by a corner.
As for regular checker, it sort of has diagonal stripes, but those stripes
are not isolated so they don't stick out. :)

> BTW, I have been thinking about some possible new patterns:
> random_checkers, random_hexagons, etc...they would take a list of any
> number of items and choose one of them for each tile. Also, replace the
> old "tiles" pattern(which isn't used any more) with a new one that lets
> you specify any number of items and the offset for each row.
> What do you think?

Sure

--
David Fontaine  <dav### [at] faricynet>  ICQ 55354965
My raytracing gallery:  http://davidf.faricy.net/


Post a reply to this message

From: Wlodzimierz ABX Skiba
Subject: Re: checkered passed
Date: 19 Nov 2000 10:01:21
Message: <3a17eb41@news.povray.org>
Chris Huff wrote in message ...
> > [ grayscale problem ]
> I have changed this to use (R+G+B)/3 in my version.
> > [ function request ]
> And just finished doing it.
> > [ discusion from p.u-p ]
> You could also use the convert_color()

thanks for your effort :-)

ABX


Post a reply to this message

From: Peter J  Holzer
Subject: Re: checkered passed
Date: 19 Nov 2000 16:02:12
Message: <slrn91gb0n.4b3.hjp-usenet@teal.h.hjp.at>
On Fri, 17 Nov 2000 18:40:42 -0500, Chris Huff wrote:
>In article <chrishuff-9268FA.17205617112000@news.povray.org>, Chris 
>Huff <chr### [at] maccom> wrote:
>
>> I'm not sure which conversion is used... I will check this out later...
>
>The GREY_SCALE() macro is used, which uses the function:
>Gray = 0.297*R + 0.589*G + 0.114*B
>I have changed this to use (R+G+B)/3 in my version.

For pure grayscale values (R==G==B) the results are identical.

E.g.: 

0.33*0.297 + 0.33*0.589 + 0.33*0.114 == 0.33
(0.33+0.33+0.33)/3 = 0.33

I suggest leaving GREY_SCALE() as it is.

	hp

-- 


| |   | hjp### [at] wsracat      |    -- Lutz Donnerhacke in dasr.
__/   | http://www.hjp.at/ |


Post a reply to this message

From: Chris Huff
Subject: Re: checkered passed
Date: 19 Nov 2000 17:59:59
Message: <chrishuff-200939.18002019112000@news.povray.org>
In article <slr### [at] tealhhjpat>, 
hjp### [at] SiKituwsracat (Peter J. Holzer) wrote:

> For pure grayscale values (R==G==B) the results are identical.
> E.g.: 
> 
> 0.33*0.297 + 0.33*0.589 + 0.33*0.114 == 0.33

Correct, but I think people will expect rgb < 0.5, 0, 0> to have the 
same effect as rgb < 0, 0.5, 0>...
However, I will change it back and just leave my code in there in case 
someone wants to use it later.


> I suggest leaving GREY_SCALE() as it is.

GREY_SCALE() was not modified, only the pigment_pattern() function.

-- 
Christopher James Huff
Personal: chr### [at] maccom, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tagpovrayorg, http://tag.povray.org/

<><


Post a reply to this message

From: Peter J  Holzer
Subject: Re: checkered passed
Date: 19 Nov 2000 20:01:13
Message: <slrn91gs3h.6a8.hjp-usenet@teal.h.hjp.at>
On Sun, 19 Nov 2000 18:00:20 -0500, Chris Huff wrote:
>In article <slr### [at] tealhhjpat>, 
>hjp### [at] SiKituwsracat (Peter J. Holzer) wrote:
>
>> For pure grayscale values (R==G==B) the results are identical.
>> E.g.: 
>> 
>> 0.33*0.297 + 0.33*0.589 + 0.33*0.114 == 0.33
>
>Correct, but I think people will expect rgb < 0.5, 0, 0> to have the 
>same effect as rgb < 0, 0.5, 0>...

I wouldn't. But maybe I have used a greyscale monitor too long.

	hp

-- 


| |   | hjp### [at] wsracat      |    -- Lutz Donnerhacke in dasr.
__/   | http://www.hjp.at/ |


Post a reply to this message

From: Geoff Wedig
Subject: Re: checkered passed
Date: 20 Nov 2000 08:15:28
Message: <3a1923f0@news.povray.org>
Peter J. Holzer <hjp### [at] sikituwsracat> wrote:

> On Fri, 17 Nov 2000 18:40:42 -0500, Chris Huff wrote:
>>In article <chrishuff-9268FA.17205617112000@news.povray.org>, Chris 
>>Huff <chr### [at] maccom> wrote:
>>
>>> I'm not sure which conversion is used... I will check this out later...
>>
>>The GREY_SCALE() macro is used, which uses the function:
>>Gray = 0.297*R + 0.589*G + 0.114*B
>>I have changed this to use (R+G+B)/3 in my version.

> For pure grayscale values (R==G==B) the results are identical.

> E.g.: 

> 0.33*0.297 + 0.33*0.589 + 0.33*0.114 == 0.33
> (0.33+0.33+0.33)/3 = 0.33

This is because the coefficients sum to 1.  Any set of coefficients that sum
to 1 will work if you're using the same value for R, G, and B.  It's when
they're not that you need something else.  Consider colors <1,1,0> and
<1,0,1>  By 1/3rds these are the same grey (.667), but by the GREY_SCALE()
macro, they're not.  I prefer the latter, because Yellow (the first color)
and Magenta (the second) aren't quite the same in Grey (Yellow is brighter. 
This is because of how our eyes perceive colors and light)

I'm assuming the values of the macro were chosen based on some real world
testing, but I could be wrong.  In any case, they give good results.

Geoff


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

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