POV-Ray : Newsgroups : povray.newusers : #declare/Object coloring question : Re: #declare/Object coloring question Server Time
30 Jul 2024 20:17:54 EDT (-0400)
  Re: #declare/Object coloring question  
From: Tim Nikias v2 0
Date: 17 Sep 2003 15:09:37
Message: <3f68b171@news.povray.org>
I'm not quiet sure what you're after. The rgb in the
lightsource-brackets describes the Red, Green
and Blue componentes of the lightsource's color.
rgb <1,1,1> is white, rgb<0,0,0> is black.
The rgb in in the pigment-brackets belongs to
all torii, so changing that will change the color
of the torii.

Aside of that, it might be better to take the lightsource
out of the union and place it into the scene by itself,
unless you're after something specific.

-- 
Tim Nikias v2.0
Homepage: http://www.digitaltwilight.de/no_lights
Email: no_lights (@) digitaltwilight.de


> Here's what I have:
> //start
> #declare MyTorus = union {
>          #while (I<N)
>                  torus {2,0.1 rotate <90,0,0> rotate<0, I*360/N,0>}
>                  #declare I=I+1;
>          #end
>          light_source{<0,1,1> rgb <1,0.75,0>}
>          texture {
>                  pigment {
>                          color rgb <0.8,0.8,1.0>
>                  }
>                  finish{
>                          diffuse 0.3
>                          ambient 0.0
>                          specular 0.6
>                          reflection {
>                                  0.8
>                                  metallic
>                          }
>                          conserve_energy
>                  }
>          }
> }
>
> object{ MyTorus scale<.5,.5,.5> translate<0,1.25,0> }
> //end
>
>
> Is there anyway to chage the MyTorus (yes almost directly from the
> examples :)) to allow me to specify what color I want the lightsource in
> the object declaration?
>


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.518 / Virus Database: 316 - Release Date: 11.09.2003


Post a reply to this message

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