POV-Ray : Newsgroups : povray.general : White *IS* Green! Server Time
12 Aug 2024 03:27:25 EDT (-0400)
  White *IS* Green! (Message 11 to 20 of 27)  
<<< Previous 10 Messages Goto Latest 10 Messages Next 7 Messages >>>
From: Andrew Cocker
Subject: Re: White *IS* Green!
Date: 20 Apr 1999 22:41:58
Message: <371d2ce6.0@news.povray.org>
Bob Hughes <inv### [at] aolcom> wrote in message news:371D2B03.453AC4C5@aol.com...
> Try using the keyword 'color' ahead of each color entry.
>

Actually, I just realised that aside from the problem I was having, it's a little
embarrasing to publicly admit to rendering a black and white checkered plane.  ;-)

I have deleted the offending scene file, and promise never to do it again. Sorry.

Andy


Post a reply to this message

From: Ken
Subject: Re: White *IS* Green!
Date: 20 Apr 1999 22:49:15
Message: <371D2EE0.DD15206D@pacbell.net>
Andrew Cocker wrote:
> 
> Hi,
> 
> Can anyone explain why the following code gives me a black and *GREEN* checkered
plane?
> 
> plane {y,-1
> texture {
> pigment {checker White Black}
> finish {ambient .4}
> }
> hollow
> }

> Andy

 Since you now have your solutin I will simply tell you why.
Without the comma between the two colors in the list, as in
your example, Pov does not know that it should use them
seperatly for the two areas of the pattern. It instead adds
them together. The black is a more dominant color so wins the
war for the first color in the list. Since the second color
for the list appears to be missing Pov defaults to the white/
green colors it is programed to use when no colors are
specified for the pattern. Obviously you need to either use
the color keyword seperator of as was mentioned make sure you
have the comma in place if you expect it to perform correctly.

-- 
Ken Tyler

mailto://tylereng@pacbell.net


Post a reply to this message

From: Spider
Subject: Re: White *IS* Green!
Date: 20 Apr 1999 23:20:23
Message: <371D34C0.472A74A0@bahnhof.se>
it doesn't.
but if you use checker Black White, you MUST use a checker Black, White instead.
(note the  ,)

Andrew Cocker wrote:
> 
> Spider <spi### [at] bahnhofse> wrote in message news:371D2967.ADBA7CC3@bahnhof.se...
> > This works:
> >
> >
> >
> > #include "colors.inc"
> > #include "textures.inc"
> > #include "metals.inc"
> >
> > // camera
> > camera {
> >     location <0,0,-5>
> >     direction 2.0*z
> >     up        y
> >     right     4/3*x
> >     look_at <0,0,0>
> > }
> > //
> > // lights
> > light_source {
> >     0*x
> >     rgb <1,1,1>
> >     translate <10,10,-10>
> > }
> > //
> >
> > plane {y,-1
> >     texture {
> >     pigment {checker
> >     colour rgb 1
> >     colour rgb 0}
> >     finish {ambient .4}
> >     }
> > hollow
> > }
> >
> >
> > Note that I have added the colour keyword, and broken the lines.
> >
> 
> Yeah, thanks. I tried using
> 
> pigment { checker rgb 1 rgb 0}
> 
> but got an error..didn't think to use color/colour. The seperate lines shouldn't
make a
> difference though, should they. Doesn't POV ignore them?
> 
> Andy

-- 
//Spider
        [ spi### [at] bahnhofse ]-[ http://www.bahnhof.se/~spider/ ]
What I can do and what I could do, I just don't know anymore
                "Marian"
        By: "Sisters Of Mercy"


Post a reply to this message

From: Gail Shaw
Subject: Re: White *IS* Green!
Date: 21 Apr 1999 03:33:50
Message: <371d714e.0@news.povray.org>
Andrew Cocker wrote in message <371d29c1.0@news.povray.org>...
>Chris Capel <chr### [at] hotmailcom> wrote in message
news:371d1313.0@news.povray.org...
>> Perhaps you should make sure all your light sources are white.
>>
>> Chris Capel
>


<snip code>

>
>I've noticed this happening for a while..just not mentioned it. I'm sure it
never used to
>happen. Someone please confirm my sanity.
>

I'll confirm it. I had the same problem. I was doing a quick scene with
multiple
reflective spheres over multiple checkered squares. All were  fine til I
added
a checkered square (red/blue). That plane rendered green and blue. I played
with it for  a few days then left it. (Was pov 3.0 for win 95). I'll post
the sorce if
anyone's interested.

Gail
*******************************************************************
* gsh### [at] monotixcoza              * ERROR: COFFEE.COM not found  *
* http://www.rucus.ru.ac.za/~gail/ * Insert cup and press any key *
*******************************************************************
   My Software never has bugs, It just develops random features
*******************************************************************


Post a reply to this message

From: Ken
Subject: Re: White *IS* Green!
Date: 21 Apr 1999 03:57:39
Message: <371D7729.78C6FFB9@pacbell.net>
Gail Shaw wrote:

> >I've noticed this happening for a while..just not mentioned it. I'm sure it
> never used to
> >happen. Someone please confirm my sanity.
> >
> 
> I'll confirm it. I had the same problem. I was doing a quick scene with
> multiple
> reflective spheres over multiple checkered squares. All were  fine til I
> added
> a checkered square (red/blue). That plane rendered green and blue. I played
> with it for  a few days then left it. (Was pov 3.0 for win 95).
> Gail

  The reason you people are seeing this now and perhaps not on
older versions of Pov is because unknown to you the Pov team has
silently been working in the back ground to fix annoying little
things the program does like stopping to inform a user that they
are stupid and misplaced a comma.
  More specificaly they have started assigning a default pigment
colors to patterns that none specified by you. This helps because
if you forget to specify a color for the pattern Pov will render
the scene with the default color instead of stopping to issue a
warning message suggesting you fix your work before you try again.
  It manifests it's self when you improperly specify color list
patterns like the missing comma seperator in the example today.
It is mentioned in the docs in several catagories concerning
list patterns that a comma seperator is needed or unexpected
results can be expected.

 If you want to see ugly attach a bozo pigment pattern to an object
and leave the color specification empty.

 The three color list pattern types that the comma seperators are
required for are the Brick, Checker, and Hexagon patterns.



-- 
Ken Tyler

mailto://tylereng@pacbell.net


Post a reply to this message

From: Remco de Korte
Subject: Re: White *IS* Green!
Date: 21 Apr 1999 09:28:04
Message: <371D8850.CFC2F52F@xs4all.nl>
Ken wrote:
> 
>  Since you now have your solutin I will simply tell you why.
> Without the comma between the two colors in the list, as in
> your example, Pov does not know that it should use them
> seperatly for the two areas of the pattern. It instead adds
> them together. The black is a more dominant color so wins the
> war for the first color in the list. 

If you add black and white you'll get white. It's just a matter of what POV
finds as a last value for the (first) color. If you turn them around you'll get
a white/green checkered plane. That is, if you still forget the comma.

Remco


Post a reply to this message

From: Fabien Mosen
Subject: Re: White *IS* Green!
Date: 21 Apr 1999 13:20:03
Message: <3641DDF3.C6C86BF9@compuserve.com>
It seems to be a slight bug (?) that appeared in POV 3.0;
In Pov 2.2, you _had_ to write "color" before every color specification.
In Pov 3, the program automatically understands when the vector is a
color.

I quickly noticed that the checker pattern had a slight problem with
that, if you write :

pigment {checker Raspberry Ivory}
 Pov seems to ignore these and use the default Green/White colors.
(as some noted, most "genuine" pigments have default colors : bozo,
wood, marble,... the most recent ones have a default grayscale map)

you must thus write :

pigment {checker color Raspberry color Ivory}

and it works perfectly...

Cheers,
Fabien.


Post a reply to this message

From: Fabien Mosen
Subject: Re: White *IS* Green!
Date: 21 Apr 1999 13:49:07
Message: <371E012D.60AD409A@compuserve.com>
before correcting his ever-wrong computer date,
Fabien Mosen wrote:
> 
> It seems to be a slight bug (?) that appeared in POV 3.0;
> In Pov 2.2, you _had_ to write "color" before every color specification.
> In Pov 3, the program automatically understands when the vector is a
> color.
> 
> I quickly noticed that the checker pattern had a slight problem with
> that, if you write :
> 
> pigment {checker Raspberry Ivory}
>  Pov seems to ignore these and use the default Green/White colors.
> (as some noted, most "genuine" pigments have default colors : bozo,
> wood, marble,... the most recent ones have a default grayscale map)
> 
> you must thus write :
> 
> pigment {checker color Raspberry color Ivory}
> 
> and it works perfectly...
> 
> Cheers,
> Fabien.

I'll confirm that.

Fabien.


Post a reply to this message

From: Ross Smith
Subject: Re: White *IS* Green!
Date: 21 Apr 1999 18:20:42
Message: <371e412a.0@news.povray.org>
Ken wrote in message <371D7729.78C6FFB9@pacbell.net>...
>
>  The reason you people are seeing this now and perhaps not on
>older versions of Pov is because unknown to you the Pov team has
>silently been working in the back ground to fix annoying little
>things the program does like stopping to inform a user that they
>are stupid and misplaced a comma.
>  More specificaly they have started assigning a default pigment
>colors to patterns that none specified by you. This helps because
>if you forget to specify a color for the pattern Pov will render
>the scene with the default color instead of stopping to issue a
>warning message suggesting you fix your work before you try again.
>  It manifests it's self when you improperly specify color list
>patterns like the missing comma seperator in the example today.
>It is mentioned in the docs in several catagories concerning
>list patterns that a comma seperator is needed or unexpected
>results can be expected.

Is this really true? If I make a mistake I want the interpreter to warn
me, not silently go off and do the Wrong Thing. Why would the authors
put in such a horrible misfeature?

--
Ross Smith ................................... mailto:ros### [at] ihugconz
.............. The Internet Group, Auckland, New Zealand ..............
    "Perl is the Unix way. 500 million ways of doing the same thing,
    and 500 million monster egos all insisting on their way being
    the Proper way of doing it." -- David Parsons


Post a reply to this message

From: Dale
Subject: Re: White *IS* Green!
Date: 21 Apr 1999 20:33:00
Message: <371E5FFA.F791358E@execpc.com>
Andrew Cocker wrote:

>  The seperate lines shouldn't make a
> difference though, should they. Doesn't POV ignore them?
>
> Andy

Correct.  You could put the entire scene on one line and, as long as you did not have
any
comments ( // ) in it, it would parse just fine.


Dale
POV-Team


Post a reply to this message

<<< Previous 10 Messages Goto Latest 10 Messages Next 7 Messages >>>

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