POV-Ray : Newsgroups : povray.newusers : Adding color to a wall Server Time
5 Nov 2024 03:18:56 EST (-0500)
  Adding color to a wall (Message 1 to 3 of 3)  
From: Wade
Subject: Adding color to a wall
Date: 5 Aug 2002 19:23:26
Message: <3d4f08ee@news.povray.org>
well I'm using povray 3.5 and I'm having a lot of trouble with making the
wall's color show up.  here's the code:

camera {
  right x*image_width/image_height
  location  <0,.55,-4>
  look_at   <0,1,0>
}

light_source {
  <500,500,-500>       // light's position
  color rgb <1, 1, 1>  // light's color
}

sky_sphere {
  pigment {
    gradient y
    color_map {
      [0.0 rgb <0.6,0.7,1.0>]
      [0.7 rgb <0.0,0.1,0.8>]
    }
  }
}

// ----------------------------------------

plane {
  y, 0
  texture {
    pigment {
      checker
      color rgb <1.0, 0.8, 0.6>
      color rgb <1.0, 0.0, 0.0>
      scale 0.5
    }
  }
}
// An area light (creates soft shadows)
// WARNING: This special light can significantly slow down rendering times!
light_source {
  0*x                 // light's position (translated below)
  color rgb 1.0       // light's color
  area_light
  <8, 0, 0> <0, 0, 8> // lights spread out across this distance (x * z)
  4, 4                // total number of lights in grid (4x*4z = 16 lights)
  adaptive 0          // 0,1,2,3...
  jitter              // adds random softening of light
  circular            // make the shape of the light circular
  orient              // orient light
  translate <40, 80, -40>   // <x y z> position of light
}



// create a box that extends between the 2 specified points
box {
  <-5, -5, 0>  // one corner position <X1 Y1 Z1>
  < 5,  5,  0>  // other corner position <X2 Y2 Z2>
  color Khaki

}
__________________________________________________________________ Wade
Markham ICQ#: 44258048 Current ICQ status: + More ways to contact me i See
more about me:
__________________________________________________________________


Post a reply to this message

From: Christopher James Huff
Subject: Re: Adding color to a wall
Date: 5 Aug 2002 19:28:12
Message: <chrishuff-0549C3.18180705082002@netplex.aussie.org>
In article <3d4f08ee@news.povray.org>, "Wade" <Zav### [at] aolcom> wrote:

> box {
>   <-5, -5, 0>  // one corner position <X1 Y1 Z1>
>   < 5,  5,  0>  // other corner position <X2 Y2 Z2>
>   color Khaki
> 
> }

box {
  <-5, -5, 0>  // one corner position <X1 Y1 Z1>
  < 5,  5,  0>  // other corner position <X2 Y2 Z2>
  pigment {color Khaki}
}

-- 
Christopher James Huff <chr### [at] maccom>
POV-Ray TAG e-mail: chr### [at] tagpovrayorg
TAG web site: http://tag.povray.org/


Post a reply to this message

From: Philippe Lhoste
Subject: Re: Adding color to a wall
Date: 6 Aug 2002 09:06:01
Message: <3d4fc9b9@news.povray.org>
"Christopher James Huff" <chr### [at] maccom> wrote:
> In article <3d4f08ee@news.povray.org>, "Wade" <Zav### [at] aolcom> wrote:
>
> > box {
> >   <-5, -5, 0>  // one corner position <X1 Y1 Z1>
> >   < 5,  5,  0>  // other corner position <X2 Y2 Z2>
> >   color Khaki
> >
> > }
>
> box {
>   <-5, -5, 0>  // one corner position <X1 Y1 Z1>
>   < 5,  5,  0>  // other corner position <X2 Y2 Z2>
>   pigment {color Khaki}
> }

And don't forget:
#include "colors.inc"

I didn't saw it in your code... :-)

Regards.

-- #=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--=# --
Philippe Lhoste (Paris -- France)
Professional programmer and amateur artist
http://jove.prohosting.com/~philho/


Post a reply to this message

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