POV-Ray : Newsgroups : povray.general : White *IS* Green! Server Time
12 Aug 2024 07:19:45 EDT (-0400)
  White *IS* Green! (Message 1 to 10 of 27)  
Goto Latest 10 Messages Next 10 Messages >>>
From: Andrew Cocker
Subject: White *IS* Green!
Date: 20 Apr 1999 20:25:31
Message: <371d0ceb.0@news.povray.org>
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
------------------------------------------------------------------------------------------
-
--The Home Of Lunaland--
--visit my POV-Ray gallery--
--listen to my music--
www.acocker.freeserve.co.uk


Post a reply to this message

From: Spider
Subject: Re: White *IS* Green!
Date: 20 Apr 1999 20:28:10
Message: <371D0C63.2573D6E@bahnhof.se>
because you haven't included colours.inc ??


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
>
------------------------------------------------------------------------------------------
> -
> --The Home Of Lunaland--
> --visit my POV-Ray gallery--
> --listen to my music--
> www.acocker.freeserve.co.uk

-- 
//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: Andrew Cocker
Subject: Re: White *IS* Green!
Date: 20 Apr 1999 20:46:58
Message: <371d11f2.0@news.povray.org>
Spider <spi### [at] bahnhofse> wrote in message news:371### [at] bahnhofse...
> because you haven't included colours.inc ??
>

...is the wrong answer ;-)

I should have written:

<snip>
plane {y,-1
texture {
pigment {checker White Black}
finish {ambient .4}
}
hollow
}

both colors.inc and textures.inc are loaded.

Andy


Post a reply to this message

From: Chris Capel
Subject: Re: White *IS* Green!
Date: 20 Apr 1999 20:51:47
Message: <371d1313.0@news.povray.org>
Perhaps you should make sure all your light sources are white.

Chris Capel


Post a reply to this message

From: Steve
Subject: Re: White *IS* Green!
Date: 20 Apr 1999 22:04:43
Message: <371D23F8.580209BF@ndirect.co.uk>
Andy 

You need a comma between the white and the black, then it'll be
ok.

I rendered it and got the green and black, don't know what causes
that, but the comma will sort it out. 

Cheers
Steve

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
>
------------------------------------------------------------------------------------------
> -
> --The Home Of Lunaland--
> --visit my POV-Ray gallery--
> --listen to my music--
> www.acocker.freeserve.co.uk


Post a reply to this message

From: Andrew Cocker
Subject: Re: White *IS* Green!
Date: 20 Apr 1999 22:28:33
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

Oh, c'mon now. I'm not that daft. Here's the entire code. It renders as green and
black.
I'm running 3.1e on Win95.


#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 rgb 1 rgb 0}
    finish {ambient .4}
    }
hollow
}

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.

Andy


Post a reply to this message

From: Andrew Cocker
Subject: Re: White *IS* Green!
Date: 20 Apr 1999 22:30:35
Message: <371d2a3b.0@news.povray.org>
Steve <sjl### [at] ndirectcouk> wrote in message news:371D23F8.580209BF@ndirect.co.uk...
> Andy
>
> You need a comma between the white and the black, then it'll be
> ok.
>
> I rendered it and got the green and black, don't know what causes
> that, but the comma will sort it out.
>
> Cheers
> Steve

Thanks Steve. It did used to work, right? I'm not insane...I'm not!

Andy


Post a reply to this message

From: Spider
Subject: Re: White *IS* Green!
Date: 20 Apr 1999 22:31:57
Message: <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.


-- 
//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: Bob Hughes
Subject: Re: White *IS* Green!
Date: 20 Apr 1999 22:34:43
Message: <371D2B03.453AC4C5@aol.com>
Try using the keyword 'color' ahead of each color entry.


Steve wrote:
> 
> Andy
> 
> You need a comma between the white and the black, then it'll be
> ok.
> 
> I rendered it and got the green and black, don't know what causes
> that, but the comma will sort it out.
> 
> Cheers
> Steve
> 
> 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
> >
------------------------------------------------------------------------------------------
> > -
> > --The Home Of Lunaland--
> > --visit my POV-Ray gallery--
> > --listen to my music--
> > www.acocker.freeserve.co.uk

-- 
 omniVERSE: beyond the universe
  http://members.aol.com/inversez/homepage.htm
 mailto:inv### [at] aolcom?Subject=PoV-News


Post a reply to this message

From: Andrew Cocker
Subject: Re: White *IS* Green!
Date: 20 Apr 1999 22:35:11
Message: <371d2b4f.0@news.povray.org>
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


Post a reply to this message

Goto Latest 10 Messages Next 10 Messages >>>

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